68 void CoreWidget::statusMessage(QString _message,
int _timeout) {
69 statusBar_->showMessage(_message,_timeout);
76 void CoreWidget::setupStatusBar()
80 setStatusBar( statusBar_ );
83 pix.load(OpenFlipper::Options::iconDirStr() +
84 OpenFlipper::Options::dirSeparator() +
88 statusIcon_ =
new QLabel();
89 statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
91 statusBar_->addPermanentWidget(statusIcon_);
101 void CoreWidget::clearStatusMessage()
103 statusBar_->clearMessage();
114 pix.load(OpenFlipper::Options::iconDirStr() +
115 OpenFlipper::Options::dirSeparator() +
119 pix.load(OpenFlipper::Options::iconDirStr() +
120 OpenFlipper::Options::dirSeparator() +
121 "status_yellow.png");
124 pix.load(OpenFlipper::Options::iconDirStr() +
125 OpenFlipper::Options::dirSeparator() +
130 statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
134 void CoreWidget::addWidgetToStatusbar(QWidget* _widget){
136 statusBar_->addPermanentWidget(_widget);
138 statusBar_->removeWidget(statusIcon_);
139 statusBar_->addPermanentWidget(statusIcon_);
167 statusBar_->setVisible(
false);
169 statusBar_->setVisible(
true);
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
applicationStatus
Enum for the statusBar Status Icon.
void statusBarVisChanged(bool _state)
will be emitted if the visibility of the statusbar is changed
Status is processing and blocked system will not allow interaction (red light)
void showStatusBar(bool _state)
Show or hide status bar.
Status is processing but system will allow interaction (yellow light)
void toggleStatusBar()
Change visibility of the Status Bar.
Status is ready (green light)
void setValue(const QString &key, const QVariant &value)
Wrapper function which makes it possible to enable Debugging output with -DOPENFLIPPER_SETTINGS_DEBUG...