62 void CoreWidget::statusMessage(QString _message,
int _timeout) {
63 statusBar_->showMessage(_message,_timeout);
70 void CoreWidget::setupStatusBar()
74 setStatusBar( statusBar_ );
77 pix.load(OpenFlipper::Options::iconDirStr() +
78 OpenFlipper::Options::dirSeparator() +
82 statusIcon_ =
new QLabel();
83 statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
85 statusBar_->addPermanentWidget(statusIcon_);
95 void CoreWidget::clearStatusMessage()
97 statusBar_->clearMessage();
108 pix.load(OpenFlipper::Options::iconDirStr() +
109 OpenFlipper::Options::dirSeparator() +
113 pix.load(OpenFlipper::Options::iconDirStr() +
114 OpenFlipper::Options::dirSeparator() +
115 "status_yellow.png");
118 pix.load(OpenFlipper::Options::iconDirStr() +
119 OpenFlipper::Options::dirSeparator() +
124 statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
128 void CoreWidget::addWidgetToStatusbar(QWidget* _widget){
130 statusBar_->addPermanentWidget(_widget);
132 statusBar_->removeWidget(statusIcon_);
133 statusBar_->addPermanentWidget(statusIcon_);
161 statusBar_->setVisible(
false);
163 statusBar_->setVisible(
true);
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
Status is ready (green light)
Status is processing and blocked system will not allow interaction (red light)
void toggleStatusBar()
Change visibility of the Status Bar.
void setValue(const QString &key, const QVariant &value)
Wrapper function which makes it possible to enable Debugging output with -DOPENFLIPPER_SETTINGS_DEBUG...
void showStatusBar(bool _state)
Show or hide status bar.
applicationStatus
Enum for the statusBar Status Icon.
Status is processing but system will allow interaction (yellow light)
void statusBarVisChanged(bool _state)
will be emitted if the visibility of the statusbar is changed