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