activate the status bar.
This commit is contained in:
parent
bb99482461
commit
d5343a0073
@ -155,6 +155,8 @@ PTextEdit::PTextEdit( QWidget *parent )
|
|||||||
connect( fTabWidget.get(), SIGNAL( currentChanged(int) ), this, SLOT( applyFontSettings(int) ));
|
connect( fTabWidget.get(), SIGNAL( currentChanged(int) ), this, SLOT( applyFontSettings(int) ));
|
||||||
|
|
||||||
fLastDirInUse = fAdmin->getDefaultSavePath();
|
fLastDirInUse = fAdmin->getDefaultSavePath();
|
||||||
|
|
||||||
|
fStatusBar = this->statusBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -294,6 +296,7 @@ void PTextEdit::setupFileActions()
|
|||||||
|
|
||||||
// Save Prefs
|
// Save Prefs
|
||||||
a = new QAction( tr( "Save Prefs..." ), this );
|
a = new QAction( tr( "Save Prefs..." ), this );
|
||||||
|
a->setStatusTip( tr("Save the preferences") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
@ -696,7 +699,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
iconName = QString(":/icons/musrWiz-32x32.svg");
|
iconName = QString(":/icons/musrWiz-32x32.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "musr&Wiz" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "musr&Wiz" ), this );
|
||||||
a->setShortcut( tr("Alt+W") );
|
a->setShortcut( tr("Alt+W") );
|
||||||
a->setStatusTip( tr("Call musrWiz which helps to create msr-files") );
|
a->setStatusTip( tr("Call musrWiz which helps to create msr-files - currently still very limited") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
fActions["musrWiz"] = a;
|
fActions["musrWiz"] = a;
|
||||||
@ -838,7 +841,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
else
|
else
|
||||||
iconName = QString(":/icons/musrview2dat-plain.svg");
|
iconName = QString(":/icons/musrview2dat-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "View2Dat" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "View2Dat" ), this );
|
||||||
a->setStatusTip( tr("export musrview data") );
|
a->setStatusTip( tr("Export musrview data from a collection of msr-files.") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrView2Dat() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrView2Dat() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
fActions["musrview2dat"] = a;
|
fActions["musrview2dat"] = a;
|
||||||
|
@ -181,6 +181,7 @@ private:
|
|||||||
QString fLastDirInUse{QString("")}; ///< string holding the path from where the last file was loaded.
|
QString fLastDirInUse{QString("")}; ///< string holding the path from where the last file was loaded.
|
||||||
QStringList fMusrFTPrevCmd;
|
QStringList fMusrFTPrevCmd;
|
||||||
int fEditW{900}, fEditH{800};
|
int fEditW{900}, fEditH{800};
|
||||||
|
QStatusBar *fStatusBar{nullptr};
|
||||||
|
|
||||||
QMap<QString, QAction*> fActions;
|
QMap<QString, QAction*> fActions;
|
||||||
std::unique_ptr<QAction> fMusrT0Action;
|
std::unique_ptr<QAction> fMusrT0Action;
|
||||||
|
@ -155,6 +155,8 @@ PTextEdit::PTextEdit( QWidget *parent )
|
|||||||
connect( fTabWidget.get(), SIGNAL( currentChanged(int) ), this, SLOT( applyFontSettings(int) ));
|
connect( fTabWidget.get(), SIGNAL( currentChanged(int) ), this, SLOT( applyFontSettings(int) ));
|
||||||
|
|
||||||
fLastDirInUse = fAdmin->getDefaultSavePath();
|
fLastDirInUse = fAdmin->getDefaultSavePath();
|
||||||
|
|
||||||
|
fStatusBar = this->statusBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -294,6 +296,7 @@ void PTextEdit::setupFileActions()
|
|||||||
|
|
||||||
// Save Prefs
|
// Save Prefs
|
||||||
a = new QAction( tr( "Save Prefs..." ), this );
|
a = new QAction( tr( "Save Prefs..." ), this );
|
||||||
|
a->setStatusTip( tr("Save the preferences") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
@ -695,7 +698,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
iconName = QString(":/icons/musrWiz-32x32.svg");
|
iconName = QString(":/icons/musrWiz-32x32.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "musr&Wiz" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "musr&Wiz" ), this );
|
||||||
a->setShortcut( tr("Alt+W") );
|
a->setShortcut( tr("Alt+W") );
|
||||||
a->setStatusTip( tr("Call musrWiz which helps to create msr-files") );
|
a->setStatusTip( tr("Call musrWiz which helps to create msr-files - currently still very limited") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
fActions["musrWiz"] = a;
|
fActions["musrWiz"] = a;
|
||||||
@ -837,7 +840,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
else
|
else
|
||||||
iconName = QString(":/icons/musrview2dat-plain.svg");
|
iconName = QString(":/icons/musrview2dat-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "View2Dat" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "View2Dat" ), this );
|
||||||
a->setStatusTip( tr("export musrview data") );
|
a->setStatusTip( tr("Export musrview data from a collection of msr-files.") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrView2Dat() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrView2Dat() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
fActions["musrview2dat"] = a;
|
fActions["musrview2dat"] = a;
|
||||||
|
@ -181,6 +181,7 @@ private:
|
|||||||
QString fLastDirInUse{QString("")}; ///< string holding the path from where the last file was loaded.
|
QString fLastDirInUse{QString("")}; ///< string holding the path from where the last file was loaded.
|
||||||
QStringList fMusrFTPrevCmd;
|
QStringList fMusrFTPrevCmd;
|
||||||
int fEditW{900}, fEditH{800};
|
int fEditW{900}, fEditH{800};
|
||||||
|
QStatusBar *fStatusBar{nullptr};
|
||||||
|
|
||||||
QMap<QString, QAction*> fActions;
|
QMap<QString, QAction*> fActions;
|
||||||
std::unique_ptr<QAction> fMusrT0Action;
|
std::unique_ptr<QAction> fMusrT0Action;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user