20#ifndef LIBREPCB_EDITOR_STATUSBAR_H
21#define LIBREPCB_EDITOR_STATUSBAR_H
54 Q_DECLARE_FLAGS(Fields,
Field)
57 explicit StatusBar(QWidget* parent =
nullptr) noexcept;
78 void resizeEvent(QResizeEvent* e) noexcept override;
The LengthUnit class represents a length unit (millimeters, inches,...) and provides some useful meth...
Definition: lengthunit.h:60
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The StatusBar class extends QStatusBar for some commonly used fields.
Definition: statusbar.h:45
void updatePermanentMessage() noexcept
Definition: statusbar.cpp:149
QScopedPointer< QLabel > mAbsPosYLabel
Definition: statusbar.h:91
Field
Definition: statusbar.h:50
@ AbsolutePosition
Definition: statusbar.h:51
@ ProgressBar
Definition: statusbar.h:52
void clearPermanentMessage() noexcept
Definition: statusbar.cpp:93
Point mAbsoluteCursorPosition
Definition: statusbar.h:88
QScopedPointer< QLabel > mAbsPosXLabel
Definition: statusbar.h:90
LengthUnit mLengthUnit
Definition: statusbar.h:87
void setProgressBarTextFormat(const QString &format) noexcept
Definition: statusbar.cpp:121
QScopedPointer< QLabel > mMessageLabel
Definition: statusbar.h:89
Fields mFields
Definition: statusbar.h:85
void setLengthUnit(const LengthUnit &unit) noexcept
Definition: statusbar.cpp:111
void setPermanentMessage(const QString &message) noexcept
Definition: statusbar.cpp:88
QScopedPointer< QProgressBar > mProgressBar
Definition: statusbar.h:92
QScopedPointer< QWidget > mProgressBarPlaceHolder
Definition: statusbar.h:93
QString mPermanentMessage
Definition: statusbar.h:86
Fields getFields() const noexcept
Definition: statusbar.h:62
StatusBar(QWidget *parent=nullptr) noexcept
Definition: statusbar.cpp:38
void setFields(Fields fields) noexcept
Definition: statusbar.cpp:97
void setField(Field field, bool enable) noexcept
Definition: statusbar.cpp:102
void setAbsoluteCursorPosition(const Point &pos) noexcept
Definition: statusbar.cpp:116
void resizeEvent(QResizeEvent *e) noexcept override
Definition: statusbar.cpp:140
void setProgressBarPercent(int percent) noexcept
Definition: statusbar.cpp:125
void updateAbsoluteCursorPosition() noexcept
Definition: statusbar.cpp:158
Definition: occmodel.cpp:77