23#include "elidedlabel.h"
24#include "layermanager.h"
25#include "scribblearea.h"
26#include "toolmanager.h"
27#include "viewmanager.h"
65#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
75 mZoomBox->removeItem(mZoomBox->maxCount() - 1);
98 mToolLabel->
setText(
tr(
"Click to draw. Hold Ctrl and Shift to erase or Alt to select a color from the canvas."));
104 mToolLabel->
setText(
tr(
"Click and drag to create or modify a selection. Hold Alt to modify its contents or press Backspace to clear them."));
110 mToolLabel->
setText(
tr(
"Click and drag to move the camera. While on in-between frames, drag handle to change interpolation."));
116 mToolLabel->
setText(
tr(
"Click to liquefy pixels or modify a vector line. Hold Alt to smooth."));
119 mToolLabel->
setText(
tr(
"Click to draw. Hold Ctrl and Shift to erase or Alt to select a color from the canvas."));
124 mToolLabel->
setText(
tr(
"Click to continue the polyline. Double-click or press enter to complete the line or press Escape to discard it."));
132 mToolLabel->
setText(
tr(
"Click to fill an area with the current color. Hold Alt to select a color from the canvas."));
138 mToolLabel->
setText(
tr(
"Click to paint. Hold Ctrl and Shift to erase or Alt to select a color from the canvas."));
144 static QPixmap toolIcons[TOOL_TYPE_COUNT]{
145 {
":icons/themes/playful/tools/tool-pencil.svg"},
146 {
":icons/themes/playful/tools/tool-eraser.svg"},
147 {
":icons/themes/playful/tools/tool-select.svg"},
148 {
":icons/themes/playful/tools/tool-move.svg"},
149 {
":icons/themes/playful/tools/tool-hand.svg"},
150 {
":icons/themes/playful/tools/tool-smudge.svg"},
152 {
":icons/themes/playful/tools/tool-pen.svg"},
153 {
":icons/themes/playful/tools/tool-polyline.svg"},
154 {
":icons/themes/playful/tools/tool-bucket.svg"},
155 {
":icons/themes/playful/tools/tool-eyedropper.svg"},
156 {
":icons/themes/playful/tools/tool-brush.svg"}
void setText(const QString &text)
[0]
StatusBar(QWidget *parent=nullptr)
Constructs a new status bar.
ElidedLabel * mToolLabel
Label used to display a short help text for the current tool.
void updateModifiedStatus(bool modified)
Updates the file modification status.
QComboBox * mZoomBox
Combo box for choosing pre-defined or custom zoom levels.
QLabel * mToolIcon
Label used to display the icon of the current tool.
void updateToolStatus(ToolType tool)
Updates the status bar with information about the current tool.
Editor * mEditor
The editor associated with this status bar.
void zoomChanged(double scale)
This signal is sent when the user chooses a new zoom level through the status bar.
QLabel * mModifiedLabel
Label indicating that the current file contains unsaved changes.
QSlider * mZoomSlider
Slider for adjusting the zoom level.
void updateZoomStatus()
Updates the zoom level displayed in the status bar.
void setRange(int min, int max)
void valueChanged(int value)
void activated(int index)
void addItems(const QStringList &texts)
void setCurrentText(const QString &text)
void setEditable(bool editable)
QLineEdit * lineEdit() const const
void setMaxCount(int max)
void textActivated(const QString &text)
void setPixmap(const QPixmap &)
void setAlignment(Qt::Alignment flag)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString tr(const char *sourceText, const char *disambiguation, int n)
void setTickInterval(int ti)
void setTickPosition(QSlider::TickPosition position)
void setContentsMargins(int left, int top, int right, int bottom)