Merge remote-tracking branch 'origin/master' into beta-NMR
This commit is contained in:
commit
375031b46b
36
src/external/MusrRoot/MusrRoot.xsd
vendored
36
src/external/MusrRoot/MusrRoot.xsd
vendored
@ -7,7 +7,7 @@
|
|||||||
It is currently the default standard for writting muSR data files at the
|
It is currently the default standard for writting muSR data files at the
|
||||||
Paul Scherrer Institute.
|
Paul Scherrer Institute.
|
||||||
|
|
||||||
Author: Andreas Suter, andreas.suter@psi.ch
|
Author: Andreas Suter, andreas.suter@psi.ch
|
||||||
</xs:documentation>
|
</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
|
|
||||||
@ -100,24 +100,26 @@
|
|||||||
<xs:element name="Generic_Validator_URL" type="TString"/>
|
<xs:element name="Generic_Validator_URL" type="TString"/>
|
||||||
<xs:element name="Specific_Validator_URL" type="TString"/>
|
<xs:element name="Specific_Validator_URL" type="TString"/>
|
||||||
<xs:element name="Generator" type="TString"/>
|
<xs:element name="Generator" type="TString"/>
|
||||||
|
<xs:element name="Proposal Number" type="Int_t" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Main Proposer" type="TString" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
<xs:element name="File_Name" type="TString"/>
|
<xs:element name="File_Name" type="TString"/>
|
||||||
<xs:element name="Run_Title" type="TString"/>
|
<xs:element name="Run_Title" type="TString"/>
|
||||||
<xs:element name="Run_Number" type="Int_t"/>
|
<xs:element name="Run_Number" type="Int_t"/>
|
||||||
<xs:element name="Run_Start_Time" type="TString"/>
|
<xs:element name="Run_Start_Time" type="TString"/>
|
||||||
<xs:element name="Run_Stop_Time" type="TString"/>
|
<xs:element name="Run_Stop_Time" type="TString"/>
|
||||||
<xs:element name="Run_Duration" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Run_Duration" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Laboratory" type="TString"/>
|
<xs:element name="Laboratory" type="TString"/>
|
||||||
<xs:element name="Instrument" type="TString"/>
|
<xs:element name="Instrument" type="TString"/>
|
||||||
<xs:element name="Muon_Beam_Momentum" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Muon_Beam_Momentum" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Muon_Species" type="TString"/>
|
<xs:element name="Muon_Species" type="TString"/>
|
||||||
<xs:element name="Muon_Source" type="TString"/>
|
<xs:element name="Muon_Source" type="TString"/>
|
||||||
<xs:element name="Setup" type="TString"/>
|
<xs:element name="Setup" type="TString"/>
|
||||||
<xs:element name="Comment" type="TString"/>
|
<xs:element name="Comment" type="TString"/>
|
||||||
<xs:element name="Sample_Name" type="TString"/>
|
<xs:element name="Sample_Name" type="TString"/>
|
||||||
<xs:element name="Sample_Temperature" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Sample_Temperature" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Sample_Magnetic_Field" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Sample_Magnetic_Field" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="No_of_Histos" type="Int_t"/>
|
<xs:element name="No_of_Histos" type="Int_t"/>
|
||||||
<xs:element name="Time_Resolution" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Time_Resolution" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="RedGreen_Offsets" type="TIntVector"/>
|
<xs:element name="RedGreen_Offsets" type="TIntVector"/>
|
||||||
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/> <!-- here can go any additional stuff you like -->
|
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/> <!-- here can go any additional stuff you like -->
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
|
36
src/external/MusrRoot/MusrRootLEM.xsd
vendored
36
src/external/MusrRoot/MusrRootLEM.xsd
vendored
@ -6,7 +6,7 @@
|
|||||||
In the following it will be called MusrRootLEM.
|
In the following it will be called MusrRootLEM.
|
||||||
It is an extension of MusrRoot.xsd and describes the additional LEM specific entries.
|
It is an extension of MusrRoot.xsd and describes the additional LEM specific entries.
|
||||||
|
|
||||||
Author: Andreas Suter, andreas.suter@psi.ch
|
Author: Andreas Suter, andreas.suter@psi.ch
|
||||||
</xs:documentation>
|
</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
|
|
||||||
@ -101,24 +101,26 @@
|
|||||||
<xs:element name="Generic_Validator_URL" type="TString"/>
|
<xs:element name="Generic_Validator_URL" type="TString"/>
|
||||||
<xs:element name="Specific_Validator_URL" type="TString"/>
|
<xs:element name="Specific_Validator_URL" type="TString"/>
|
||||||
<xs:element name="Generator" type="TString"/>
|
<xs:element name="Generator" type="TString"/>
|
||||||
|
<xs:element name="Proposal Number" type="Int_t" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="Main Proposer" type="TString" minOccurs="0" maxOccurs="unbounded"/>
|
||||||
<xs:element name="File_Name" type="TString"/>
|
<xs:element name="File_Name" type="TString"/>
|
||||||
<xs:element name="Run_Title" type="TString"/>
|
<xs:element name="Run_Title" type="TString"/>
|
||||||
<xs:element name="Run_Number" type="Int_t"/>
|
<xs:element name="Run_Number" type="Int_t"/>
|
||||||
<xs:element name="Run_Start_Time" type="TString"/>
|
<xs:element name="Run_Start_Time" type="TString"/>
|
||||||
<xs:element name="Run_Stop_Time" type="TString"/>
|
<xs:element name="Run_Stop_Time" type="TString"/>
|
||||||
<xs:element name="Run_Duration" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Run_Duration" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Laboratory" type="TString"/>
|
<xs:element name="Laboratory" type="TString"/>
|
||||||
<xs:element name="Instrument" type="TString"/>
|
<xs:element name="Instrument" type="TString"/>
|
||||||
<xs:element name="Muon_Beam_Momentum" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Muon_Beam_Momentum" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Muon_Species" type="TString"/>
|
<xs:element name="Muon_Species" type="TString"/>
|
||||||
<xs:element name="Muon_Source" type="TString"/>
|
<xs:element name="Muon_Source" type="TString"/>
|
||||||
<xs:element name="Setup" type="TString"/>
|
<xs:element name="Setup" type="TString"/>
|
||||||
<xs:element name="Comment" type="TString"/>
|
<xs:element name="Comment" type="TString"/>
|
||||||
<xs:element name="Sample_Name" type="TString"/>
|
<xs:element name="Sample_Name" type="TString"/>
|
||||||
<xs:element name="Sample_Temperature" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Sample_Temperature" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="Sample_Magnetic_Field" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Sample_Magnetic_Field" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="No_of_Histos" type="Int_t"/>
|
<xs:element name="No_of_Histos" type="Int_t"/>
|
||||||
<xs:element name="Time_Resolution" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Time_Resolution" type="TMusrRunPhysicalQuantity"/>
|
||||||
<xs:element name="RedGreen_Offsets" type="TIntVector"/>
|
<xs:element name="RedGreen_Offsets" type="TIntVector"/>
|
||||||
<xs:element name="Moderator" type="TString"/>
|
<xs:element name="Moderator" type="TString"/>
|
||||||
<xs:element name="Moderator_HV" type="TMusrRunPhysicalQuantity"/>
|
<xs:element name="Moderator_HV" type="TMusrRunPhysicalQuantity"/>
|
||||||
|
4
src/external/MusrRoot/TMusrRunHeader.cpp
vendored
4
src/external/MusrRoot/TMusrRunHeader.cpp
vendored
@ -246,11 +246,13 @@ void TMusrRunHeader::Init(TString fileName)
|
|||||||
TMusrRunPhysicalQuantity prop;
|
TMusrRunPhysicalQuantity prop;
|
||||||
|
|
||||||
fFileName = fileName;
|
fFileName = fileName;
|
||||||
fVersion = TString("$Id: TMusrRunHeader.cpp 5092 2012-03-13 07:47:00Z nemu $");
|
fVersion = TString("git-sha: dae9ef0ffba4");
|
||||||
Set("RunInfo/Version", fVersion);
|
Set("RunInfo/Version", fVersion);
|
||||||
Set("RunInfo/Generic Validator URL", "http://lmu.web.psi.ch/facilities/software/MusrRoot/validation/MusrRoot.xsd");
|
Set("RunInfo/Generic Validator URL", "http://lmu.web.psi.ch/facilities/software/MusrRoot/validation/MusrRoot.xsd");
|
||||||
Set("RunInfo/Specific Validator URL", "n/a");
|
Set("RunInfo/Specific Validator URL", "n/a");
|
||||||
Set("RunInfo/Generator", "n/a");
|
Set("RunInfo/Generator", "n/a");
|
||||||
|
Set("RunInfo/Proposal Number", -1);
|
||||||
|
Set("RunInfo/Main Proposer", "n/a");
|
||||||
Set("RunInfo/File Name", "n/a");
|
Set("RunInfo/File Name", "n/a");
|
||||||
Set("RunInfo/Run Title", "n/a");
|
Set("RunInfo/Run Title", "n/a");
|
||||||
Set("RunInfo/Run Number", -1);
|
Set("RunInfo/Run Number", -1);
|
||||||
|
BIN
src/external/MusrRoot/doc/MusrRootDefinition.pdf
vendored
Normal file
BIN
src/external/MusrRoot/doc/MusrRootDefinition.pdf
vendored
Normal file
Binary file not shown.
1031
src/external/MusrRoot/doc/MusrRootDefinition.tex
vendored
Normal file
1031
src/external/MusrRoot/doc/MusrRootDefinition.tex
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
src/external/MusrRoot/doc/MusrRootRunHeaderCartoon.jpg
vendored
Normal file
BIN
src/external/MusrRoot/doc/MusrRootRunHeaderCartoon.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
BIN
src/external/MusrRoot/doc/MusrRootValidationScheme.pdf
vendored
Normal file
BIN
src/external/MusrRoot/doc/MusrRootValidationScheme.pdf
vendored
Normal file
Binary file not shown.
BIN
src/external/MusrRoot/doc/PSI-Logo_narrow_blau.jpg
vendored
Normal file
BIN
src/external/MusrRoot/doc/PSI-Logo_narrow_blau.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
BIN
src/external/MusrRoot/doc/root-class-browser.jpg
vendored
Normal file
BIN
src/external/MusrRoot/doc/root-class-browser.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
@ -127,6 +127,7 @@ class PAdmin : public QObject
|
|||||||
bool getDumpRootFlag() { return fDumpRoot; }
|
bool getDumpRootFlag() { return fDumpRoot; }
|
||||||
bool getEstimateN0Flag() { return fEstimateN0; }
|
bool getEstimateN0Flag() { return fEstimateN0; }
|
||||||
bool getChisqPerRunBlockFlag() { return fChisqPreRunBlock; }
|
bool getChisqPerRunBlockFlag() { return fChisqPreRunBlock; }
|
||||||
|
bool getDarkThemeIconsFlag() { return fDarkThemeIcons; }
|
||||||
QString getBeamline() { return fBeamline; }
|
QString getBeamline() { return fBeamline; }
|
||||||
QString getInstitute() { return fInstitute; }
|
QString getInstitute() { return fInstitute; }
|
||||||
QString getFileFormat() { return fFileFormat; }
|
QString getFileFormat() { return fFileFormat; }
|
||||||
@ -150,6 +151,7 @@ class PAdmin : public QObject
|
|||||||
void setDumpRootFlag(const bool flag) { fDumpRoot = flag; }
|
void setDumpRootFlag(const bool flag) { fDumpRoot = flag; }
|
||||||
void setEstimateN0Flag(const bool flag) { fEstimateN0 = flag; }
|
void setEstimateN0Flag(const bool flag) { fEstimateN0 = flag; }
|
||||||
void setChisqPerRunBlockFlag(const bool flag) { fChisqPreRunBlock = flag; }
|
void setChisqPerRunBlockFlag(const bool flag) { fChisqPreRunBlock = flag; }
|
||||||
|
void setDarkThemeIconsFlag(const bool flag) { fDarkThemeIcons = flag; }
|
||||||
|
|
||||||
void setFontName(const QString str) { fFontName = str; }
|
void setFontName(const QString str) { fFontName = str; }
|
||||||
void setFontSize(const int ival) { fFontSize = ival; }
|
void setFontSize(const int ival) { fFontSize = ival; }
|
||||||
@ -193,6 +195,7 @@ class PAdmin : public QObject
|
|||||||
bool fChisqPreRunBlock; ///< flag indicating if musrfit shall write 'per run block' chisq to the msr-file (default: no).
|
bool fChisqPreRunBlock; ///< flag indicating if musrfit shall write 'per run block' chisq to the msr-file (default: no).
|
||||||
bool fEstimateN0; ///< flag indicating if musrfit shall estimate N0 for single histogram fits (default: yes).
|
bool fEstimateN0; ///< flag indicating if musrfit shall estimate N0 for single histogram fits (default: yes).
|
||||||
bool fEnableMusrT0; ///< flag indicating if musrT0 shall be enabled at startup from within musredit (default: yes).
|
bool fEnableMusrT0; ///< flag indicating if musrT0 shall be enabled at startup from within musredit (default: yes).
|
||||||
|
bool fDarkThemeIcons; ///< flag indicating if dark theme icons shall be used (default: no)
|
||||||
|
|
||||||
QString fBeamline; ///< name of the beamline. Used to generate default run header lines.
|
QString fBeamline; ///< name of the beamline. Used to generate default run header lines.
|
||||||
QString fInstitute; ///< name of the institute. Used to generate default run header lines.
|
QString fInstitute; ///< name of the institute. Used to generate default run header lines.
|
||||||
|
@ -45,6 +45,12 @@ PPrefsDialog::PPrefsDialog(PAdmin *admin) : fAdmin(admin)
|
|||||||
|
|
||||||
setModal(true);
|
setModal(true);
|
||||||
|
|
||||||
|
if (fAdmin->getDarkThemeIconsFlag()) {
|
||||||
|
fDarkThemeIcons_checkBox->setCheckState(Qt::Checked);
|
||||||
|
} else {
|
||||||
|
fDarkThemeIcons_checkBox->setCheckState(Qt::Unchecked);
|
||||||
|
}
|
||||||
|
|
||||||
fKeepMn2Output_checkBox->setChecked(fAdmin->getKeepMinuit2OutputFlag());
|
fKeepMn2Output_checkBox->setChecked(fAdmin->getKeepMinuit2OutputFlag());
|
||||||
|
|
||||||
if (fAdmin->getDumpAsciiFlag() && !fAdmin->getDumpRootFlag()) {
|
if (fAdmin->getDumpAsciiFlag() && !fAdmin->getDumpRootFlag()) {
|
||||||
|
@ -53,6 +53,7 @@ class PPrefsDialog : public QDialog, private Ui::PPrefsDialog
|
|||||||
bool getEnableMusrT0Flag() { return fEnableMusrT0_checkBox->isChecked(); }
|
bool getEnableMusrT0Flag() { return fEnableMusrT0_checkBox->isChecked(); }
|
||||||
bool getKeepRunPerBlockChisqFlag() { return fPerRunBlockChisq_checkBox->isChecked(); }
|
bool getKeepRunPerBlockChisqFlag() { return fPerRunBlockChisq_checkBox->isChecked(); }
|
||||||
bool getEstimateN0Flag() { return fEstimateN0_checkBox->isChecked(); }
|
bool getEstimateN0Flag() { return fEstimateN0_checkBox->isChecked(); }
|
||||||
|
bool getDarkThemeIconsFlag() { return fDarkThemeIcons_checkBox->isChecked(); }
|
||||||
int getDump();
|
int getDump();
|
||||||
int getTimeout() { return fTimeout_lineEdit->text().toInt(); }
|
int getTimeout() { return fTimeout_lineEdit->text().toInt(); }
|
||||||
|
|
||||||
|
@ -90,6 +90,9 @@ PTextEdit::PTextEdit( QWidget *parent, Qt::WindowFlags f )
|
|||||||
// reads and manages the conents of the xml-startup (musredit_startup.xml) file
|
// reads and manages the conents of the xml-startup (musredit_startup.xml) file
|
||||||
fAdmin = new PAdmin();
|
fAdmin = new PAdmin();
|
||||||
|
|
||||||
|
// set default setting of the fDarkThemeIcons
|
||||||
|
fAdmin->setDarkThemeIconsFlag(fDarkToolBarIcon);
|
||||||
|
|
||||||
// enable file system watcher. Needed to get notification if the msr-file is changed outside of musrfit at runtime
|
// enable file system watcher. Needed to get notification if the msr-file is changed outside of musrfit at runtime
|
||||||
fFileSystemWatcherActive = true;
|
fFileSystemWatcherActive = true;
|
||||||
fFileSystemWatcher = new QFileSystemWatcher();
|
fFileSystemWatcher = new QFileSystemWatcher();
|
||||||
@ -179,8 +182,9 @@ void PTextEdit::setupFileActions()
|
|||||||
menuBar()->addMenu( menu );
|
menuBar()->addMenu( menu );
|
||||||
|
|
||||||
QAction *a;
|
QAction *a;
|
||||||
|
|
||||||
QString iconName("");
|
QString iconName("");
|
||||||
|
|
||||||
|
// New
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/document-new-dark.svg");
|
iconName = QString(":/icons/document-new-dark.svg");
|
||||||
else
|
else
|
||||||
@ -190,6 +194,8 @@ void PTextEdit::setupFileActions()
|
|||||||
a->setStatusTip( tr("Create a new msr-file") );
|
a->setStatusTip( tr("Create a new msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileNew() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileNew() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["New"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/document-new-plain.svg");
|
iconName = QString(":/icons/document-new-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&New..." ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&New..." ), this );
|
||||||
@ -197,6 +203,7 @@ void PTextEdit::setupFileActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Open
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/document-open-dark.svg");
|
iconName = QString(":/icons/document-open-dark.svg");
|
||||||
else
|
else
|
||||||
@ -206,6 +213,8 @@ void PTextEdit::setupFileActions()
|
|||||||
a->setStatusTip( tr("Opens a msr-file") );
|
a->setStatusTip( tr("Opens a msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileOpen() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileOpen() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Open"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/document-open-plain.svg");
|
iconName = QString(":/icons/document-open-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Open..." ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Open..." ), this );
|
||||||
@ -213,6 +222,7 @@ void PTextEdit::setupFileActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Recent Files
|
||||||
fRecentFilesMenu = menu->addMenu( tr("Recent Files") );
|
fRecentFilesMenu = menu->addMenu( tr("Recent Files") );
|
||||||
for (int i=0; i<MAX_RECENT_FILES; i++) {
|
for (int i=0; i<MAX_RECENT_FILES; i++) {
|
||||||
fRecentFilesAction[i] = new QAction(fRecentFilesMenu);
|
fRecentFilesAction[i] = new QAction(fRecentFilesMenu);
|
||||||
@ -222,6 +232,7 @@ void PTextEdit::setupFileActions()
|
|||||||
}
|
}
|
||||||
fillRecentFiles();
|
fillRecentFiles();
|
||||||
|
|
||||||
|
// Reload
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/view-refresh-dark.svg");
|
iconName = QString(":/icons/view-refresh-dark.svg");
|
||||||
else
|
else
|
||||||
@ -231,6 +242,8 @@ void PTextEdit::setupFileActions()
|
|||||||
a->setStatusTip( tr("Reload msr-file") );
|
a->setStatusTip( tr("Reload msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileReload() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileReload() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Reload"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/view-refresh-plain.svg");
|
iconName = QString(":/icons/view-refresh-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Reload..." ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Reload..." ), this );
|
||||||
@ -244,6 +257,7 @@ void PTextEdit::setupFileActions()
|
|||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
// Save
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/document-save-dark.svg");
|
iconName = QString(":/icons/document-save-dark.svg");
|
||||||
else
|
else
|
||||||
@ -253,6 +267,8 @@ void PTextEdit::setupFileActions()
|
|||||||
a->setStatusTip( tr("Save msr-file") );
|
a->setStatusTip( tr("Save msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileSave() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileSave() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Save"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/document-save-plain.svg");
|
iconName = QString(":/icons/document-save-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Save..." ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Save..." ), this );
|
||||||
@ -260,17 +276,20 @@ void PTextEdit::setupFileActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Save As
|
||||||
a = new QAction( tr( "Save &As..." ), this );
|
a = new QAction( tr( "Save &As..." ), this );
|
||||||
a->setStatusTip( tr("Save msr-file As") );
|
a->setStatusTip( tr("Save msr-file As") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileSaveAs() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileSaveAs() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
|
// Save Prefs
|
||||||
a = new QAction( tr( "Save Prefs..." ), this );
|
a = new QAction( tr( "Save Prefs..." ), this );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileSavePrefs() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
// Print
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/document-print-dark.svg");
|
iconName = QString(":/icons/document-print-dark.svg");
|
||||||
else
|
else
|
||||||
@ -280,6 +299,8 @@ void PTextEdit::setupFileActions()
|
|||||||
a->setStatusTip( tr("Print msr-file") );
|
a->setStatusTip( tr("Print msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( filePrint() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( filePrint() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Print"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/document-print-plain.svg");
|
iconName = QString(":/icons/document-print-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Print..." ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Print..." ), this );
|
||||||
@ -289,16 +310,19 @@ void PTextEdit::setupFileActions()
|
|||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
// Close
|
||||||
a = new QAction( tr( "&Close" ), this );
|
a = new QAction( tr( "&Close" ), this );
|
||||||
a->setShortcut( tr("Ctrl+W") );
|
a->setShortcut( tr("Ctrl+W") );
|
||||||
a->setStatusTip( tr("Close msr-file") );
|
a->setStatusTip( tr("Close msr-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileClose() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileClose() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
|
// Close All
|
||||||
a = new QAction( tr( "Close &All" ), this );
|
a = new QAction( tr( "Close &All" ), this );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( fileCloseAll() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( fileCloseAll() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
|
||||||
|
// Close All Others
|
||||||
a = new QAction( tr( "Clo&se All Others" ), this );
|
a = new QAction( tr( "Clo&se All Others" ), this );
|
||||||
a->setShortcut( tr("Ctrl+Shift+W") );
|
a->setShortcut( tr("Ctrl+Shift+W") );
|
||||||
a->setStatusTip( tr("Close All Other Tabs") );
|
a->setStatusTip( tr("Close All Other Tabs") );
|
||||||
@ -307,6 +331,7 @@ void PTextEdit::setupFileActions()
|
|||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
// Exit
|
||||||
a = new QAction( tr( "E&xit" ), this );
|
a = new QAction( tr( "E&xit" ), this );
|
||||||
a->setShortcut( tr("Ctrl+Q") );
|
a->setShortcut( tr("Ctrl+Q") );
|
||||||
a->setStatusTip( tr("Exit Program") );
|
a->setStatusTip( tr("Exit Program") );
|
||||||
@ -330,6 +355,7 @@ void PTextEdit::setupEditActions()
|
|||||||
QAction *a;
|
QAction *a;
|
||||||
QString iconName("");
|
QString iconName("");
|
||||||
|
|
||||||
|
// Undo
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-undo-dark.svg");
|
iconName = QString(":/icons/edit-undo-dark.svg");
|
||||||
else
|
else
|
||||||
@ -339,6 +365,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Undo") );
|
a->setStatusTip( tr("Edit Undo") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editUndo() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editUndo() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Undo"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-undo-plain.svg");
|
iconName = QString(":/icons/edit-undo-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Undo" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Undo" ), this );
|
||||||
@ -346,6 +374,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Redo
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-redo-dark.svg");
|
iconName = QString(":/icons/edit-redo-dark.svg");
|
||||||
else
|
else
|
||||||
@ -355,6 +384,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Redo") );
|
a->setStatusTip( tr("Edit Redo") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editRedo() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editRedo() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Redo"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-redo-plain.svg");
|
iconName = QString(":/icons/edit-redo-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Redo" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Redo" ), this );
|
||||||
@ -364,6 +395,7 @@ void PTextEdit::setupEditActions()
|
|||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
|
// Select All
|
||||||
a = new QAction( tr( "Select &All" ), this );
|
a = new QAction( tr( "Select &All" ), this );
|
||||||
a->setShortcut( tr("Ctrl+A") );
|
a->setShortcut( tr("Ctrl+A") );
|
||||||
a->setStatusTip( tr("Edit Select All") );
|
a->setStatusTip( tr("Edit Select All") );
|
||||||
@ -373,6 +405,7 @@ void PTextEdit::setupEditActions()
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
tb->addSeparator();
|
tb->addSeparator();
|
||||||
|
|
||||||
|
// Copy
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-copy-dark.svg");
|
iconName = QString(":/icons/edit-copy-dark.svg");
|
||||||
else
|
else
|
||||||
@ -382,6 +415,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Copy") );
|
a->setStatusTip( tr("Edit Copy") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editCopy() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editCopy() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Copy"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-copy-plain.svg");
|
iconName = QString(":/icons/edit-copy-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Copy" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Copy" ), this );
|
||||||
@ -389,6 +424,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Cut
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-cut-dark.svg");
|
iconName = QString(":/icons/edit-cut-dark.svg");
|
||||||
else
|
else
|
||||||
@ -398,6 +434,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Cut") );
|
a->setStatusTip( tr("Edit Cut") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editCut() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editCut() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Cut"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-cut-plain.svg");
|
iconName = QString(":/icons/edit-cut-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Cu&t" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Cu&t" ), this );
|
||||||
@ -405,6 +443,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Paste
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-paste-dark.svg");
|
iconName = QString(":/icons/edit-paste-dark.svg");
|
||||||
else
|
else
|
||||||
@ -414,6 +453,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Paste") );
|
a->setStatusTip( tr("Edit Paste") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editPaste() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editPaste() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Paste"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-paste-plain.svg");
|
iconName = QString(":/icons/edit-paste-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Paste" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Paste" ), this );
|
||||||
@ -424,6 +465,7 @@ void PTextEdit::setupEditActions()
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
tb->addSeparator();
|
tb->addSeparator();
|
||||||
|
|
||||||
|
// Find
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/edit-find-dark.svg");
|
iconName = QString(":/icons/edit-find-dark.svg");
|
||||||
else
|
else
|
||||||
@ -433,6 +475,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Find") );
|
a->setStatusTip( tr("Edit Find") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editFind() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editFind() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Find"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/edit-find-plain.svg");
|
iconName = QString(":/icons/edit-find-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Find" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Find" ), this );
|
||||||
@ -440,6 +484,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Find Next
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/go-next-use-dark.svg");
|
iconName = QString(":/icons/go-next-use-dark.svg");
|
||||||
else
|
else
|
||||||
@ -449,6 +494,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Find Next") );
|
a->setStatusTip( tr("Edit Find Next") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editFindNext() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editFindNext() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Find Next"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/go-next-use-plain.svg");
|
iconName = QString(":/icons/go-next-use-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Find &Next" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Find &Next" ), this );
|
||||||
@ -456,6 +503,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Find Previous
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/go-previous-use-dark.svg");
|
iconName = QString(":/icons/go-previous-use-dark.svg");
|
||||||
else
|
else
|
||||||
@ -465,6 +513,8 @@ void PTextEdit::setupEditActions()
|
|||||||
a->setStatusTip( tr("Edit Find Previous") );
|
a->setStatusTip( tr("Edit Find Previous") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( editFindPrevious() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( editFindPrevious() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Find Previous"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/go-previous-use-plain.svg");
|
iconName = QString(":/icons/go-previous-use-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Find Pre&vious" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Find Pre&vious" ), this );
|
||||||
@ -472,6 +522,7 @@ void PTextEdit::setupEditActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Replace
|
||||||
a = new QAction( tr( "Replace..." ), this );
|
a = new QAction( tr( "Replace..." ), this );
|
||||||
a->setShortcut( tr("Ctrl+R") );
|
a->setShortcut( tr("Ctrl+R") );
|
||||||
a->setStatusTip( tr("Edit Replace") );
|
a->setStatusTip( tr("Edit Replace") );
|
||||||
@ -618,6 +669,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
|
|
||||||
QAction *a;
|
QAction *a;
|
||||||
QString iconName("");
|
QString iconName("");
|
||||||
|
|
||||||
|
// musrWiz
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrWiz-32x32-dark.svg");
|
iconName = QString(":/icons/musrWiz-32x32-dark.svg");
|
||||||
else
|
else
|
||||||
@ -627,6 +680,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Call musrWiz which helps to create msr-files") );
|
a->setStatusTip( tr("Call musrWiz which helps to create msr-files") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrWiz() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrWiz"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
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 );
|
||||||
@ -637,6 +692,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
tb->addSeparator();
|
tb->addSeparator();
|
||||||
|
|
||||||
|
// Calculate Chisq
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrchisq-dark.svg");
|
iconName = QString(":/icons/musrchisq-dark.svg");
|
||||||
else
|
else
|
||||||
@ -646,6 +702,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Calculate Chi Square (Log Max Likelihood)") );
|
a->setStatusTip( tr("Calculate Chi Square (Log Max Likelihood)") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrCalcChisq() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrCalcChisq() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["calcChisq"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrchisq-plain.svg");
|
iconName = QString(":/icons/musrchisq-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Calculate &Chisq" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Calculate &Chisq" ), this );
|
||||||
@ -653,6 +711,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// musrfit
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrfit-dark.svg");
|
iconName = QString(":/icons/musrfit-dark.svg");
|
||||||
else
|
else
|
||||||
@ -662,6 +721,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Fit") );
|
a->setStatusTip( tr("Fit") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrFit() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrFit() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrfit"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrfit-plain.svg");
|
iconName = QString(":/icons/musrfit-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Fit" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Fit" ), this );
|
||||||
@ -669,6 +730,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// Swap Msr/Mlog
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrswap-dark.svg");
|
iconName = QString(":/icons/musrswap-dark.svg");
|
||||||
else
|
else
|
||||||
@ -678,6 +740,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Swap msr-file <-> mlog-file") );
|
a->setStatusTip( tr("Swap msr-file <-> mlog-file") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrSwapMsrMlog() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrSwapMsrMlog() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["Swap Msr/Mlog"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrswap-plain.svg");
|
iconName = QString(":/icons/musrswap-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Swap Msr <-> Mlog" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Swap Msr <-> Mlog" ), this );
|
||||||
@ -685,6 +749,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// musrStep
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrStep-32x32-dark.svg");
|
iconName = QString(":/icons/musrStep-32x32-dark.svg");
|
||||||
else
|
else
|
||||||
@ -694,6 +759,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Set Steps") );
|
a->setStatusTip( tr("Set Steps") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrSetSteps() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrSetSteps() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrStep"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrStep-32x32.svg");
|
iconName = QString(":/icons/musrStep-32x32.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Set Ste&ps" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Set Ste&ps" ), this );
|
||||||
@ -701,6 +768,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// msr2data
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/msr2data-dark.svg");
|
iconName = QString(":/icons/msr2data-dark.svg");
|
||||||
else
|
else
|
||||||
@ -710,6 +778,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Start msr2data interface") );
|
a->setStatusTip( tr("Start msr2data interface") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrMsr2Data() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrMsr2Data() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["msr2data"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/msr2data-plain.svg");
|
iconName = QString(":/icons/msr2data-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Msr2Data" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Msr2Data" ), this );
|
||||||
@ -717,6 +787,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// mupp
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/mupp-dark.svg");
|
iconName = QString(":/icons/mupp-dark.svg");
|
||||||
else
|
else
|
||||||
@ -726,6 +797,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Start mupp, the muSR parameter plotter") );
|
a->setStatusTip( tr("Start mupp, the muSR parameter plotter") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( mupp() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( mupp() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["mupp"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/mupp-plain.svg");
|
iconName = QString(":/icons/mupp-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "m&upp" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "m&upp" ), this );
|
||||||
@ -736,6 +809,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
tb->addSeparator();
|
tb->addSeparator();
|
||||||
|
|
||||||
|
// musrview
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrview-dark.svg");
|
iconName = QString(":/icons/musrview-dark.svg");
|
||||||
else
|
else
|
||||||
@ -745,6 +819,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Start musrview") );
|
a->setStatusTip( tr("Start musrview") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrView() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrView() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrview"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrview-plain.svg");
|
iconName = QString(":/icons/musrview-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&View" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&View" ), this );
|
||||||
@ -752,6 +828,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// musrt0
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrt0-dark.svg");
|
iconName = QString(":/icons/musrt0-dark.svg");
|
||||||
else
|
else
|
||||||
@ -760,6 +837,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
fMusrT0Action->setStatusTip( tr("Start musrt0") );
|
fMusrT0Action->setStatusTip( tr("Start musrt0") );
|
||||||
connect( fMusrT0Action, SIGNAL( triggered() ), this, SLOT( musrT0() ) );
|
connect( fMusrT0Action, SIGNAL( triggered() ), this, SLOT( musrT0() ) );
|
||||||
menu->addAction(fMusrT0Action);
|
menu->addAction(fMusrT0Action);
|
||||||
|
fActions["musrt0"] = fMusrT0Action;
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrt0-plain.svg");
|
iconName = QString(":/icons/musrt0-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&T0" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&T0" ), this );
|
||||||
@ -768,6 +846,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
tb->addAction(fMusrT0Action);
|
tb->addAction(fMusrT0Action);
|
||||||
fMusrT0Action->setEnabled(fAdmin->getEnableMusrT0Flag());
|
fMusrT0Action->setEnabled(fAdmin->getEnableMusrT0Flag());
|
||||||
|
|
||||||
|
// musrFT
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrFT-dark.svg");
|
iconName = QString(":/icons/musrFT-dark.svg");
|
||||||
else
|
else
|
||||||
@ -776,6 +855,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Start musrFT") );
|
a->setStatusTip( tr("Start musrFT") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrFT() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrFT() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrFT"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrFT-plain.svg");
|
iconName = QString(":/icons/musrFT-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Raw Fourier" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "Raw Fourier" ), this );
|
||||||
@ -783,6 +864,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
}
|
}
|
||||||
tb->addAction(a);
|
tb->addAction(a);
|
||||||
|
|
||||||
|
// musrprefs
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrprefs-dark.svg");
|
iconName = QString(":/icons/musrprefs-dark.svg");
|
||||||
else
|
else
|
||||||
@ -791,6 +873,8 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Show Preferences") );
|
a->setStatusTip( tr("Show Preferences") );
|
||||||
connect( a, SIGNAL( triggered() ), this, SLOT( musrPrefs() ) );
|
connect( a, SIGNAL( triggered() ), this, SLOT( musrPrefs() ) );
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrprefs"] = a;
|
||||||
|
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrprefs-plain.svg");
|
iconName = QString(":/icons/musrprefs-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Preferences" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Preferences" ), this );
|
||||||
@ -801,6 +885,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
tb->addSeparator();
|
tb->addSeparator();
|
||||||
|
|
||||||
|
// musrdump
|
||||||
if (fDarkTheme)
|
if (fDarkTheme)
|
||||||
iconName = QString(":/icons/musrdump-dark.svg");
|
iconName = QString(":/icons/musrdump-dark.svg");
|
||||||
else
|
else
|
||||||
@ -809,6 +894,7 @@ void PTextEdit::setupMusrActions()
|
|||||||
a->setStatusTip( tr("Dumps muSR File Header Information") );
|
a->setStatusTip( tr("Dumps muSR File Header Information") );
|
||||||
connect( a, SIGNAL(triggered()), this, SLOT(musrDump()));
|
connect( a, SIGNAL(triggered()), this, SLOT(musrDump()));
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
|
fActions["musrdump"] = a;
|
||||||
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
if (!fDarkToolBarIcon) { // tool bar icon is not dark, even though the theme is (ubuntu)
|
||||||
iconName = QString(":/icons/musrdump-plain.svg");
|
iconName = QString(":/icons/musrdump-plain.svg");
|
||||||
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Dump Header" ), this );
|
a = new QAction( QIcon( QPixmap(iconName) ), tr( "&Dump Header" ), this );
|
||||||
@ -2553,6 +2639,7 @@ void PTextEdit::musrPrefs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dlg->exec() == QDialog::Accepted) {
|
if (dlg->exec() == QDialog::Accepted) {
|
||||||
|
fAdmin->setDarkThemeIconsFlag(dlg->getDarkThemeIconsFlag());
|
||||||
fAdmin->setMusrviewShowFourierFlag(dlg->getMusrviewShowFourierFlag());
|
fAdmin->setMusrviewShowFourierFlag(dlg->getMusrviewShowFourierFlag());
|
||||||
fAdmin->setMusrviewShowAvgFlag(dlg->getMusrviewShowAvgFlag());
|
fAdmin->setMusrviewShowAvgFlag(dlg->getMusrviewShowAvgFlag());
|
||||||
fAdmin->setKeepMinuit2OutputFlag(dlg->getKeepMinuit2OutputFlag());
|
fAdmin->setKeepMinuit2OutputFlag(dlg->getKeepMinuit2OutputFlag());
|
||||||
@ -2576,6 +2663,13 @@ void PTextEdit::musrPrefs()
|
|||||||
|
|
||||||
delete dlg;
|
delete dlg;
|
||||||
dlg = nullptr;
|
dlg = nullptr;
|
||||||
|
|
||||||
|
// check if the dark theme icons flag has changed
|
||||||
|
if (fAdmin->getDarkThemeIconsFlag() != fDarkToolBarIcon) {
|
||||||
|
fDarkTheme = !fDarkTheme;
|
||||||
|
fDarkToolBarIcon = !fDarkToolBarIcon;
|
||||||
|
switchIcons();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -3254,6 +3348,67 @@ bool PTextEdit::fileAlreadyOpen(QFileInfo &finfo, int &idx)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>Switch icons according to the fAdmin settings
|
||||||
|
*/
|
||||||
|
void PTextEdit::switchIcons()
|
||||||
|
{
|
||||||
|
if (fAdmin->getDarkThemeIconsFlag()) { // dark theme icons
|
||||||
|
fActions["New"]->setIcon(QIcon(":/icons/document-new-dark.svg"));
|
||||||
|
fActions["Open"]->setIcon(QIcon(":/icons/document-open-dark.svg"));
|
||||||
|
fActions["Reload"]->setIcon(QIcon(":/icons/view-refresh-dark.svg"));
|
||||||
|
fActions["Save"]->setIcon(QIcon(":/icons/document-save-dark.svg"));
|
||||||
|
fActions["Print"]->setIcon(QIcon(":/icons/document-print-dark.svg"));
|
||||||
|
fActions["Undo"]->setIcon(QIcon(":/icons/edit-undo-dark.svg"));
|
||||||
|
fActions["Redo"]->setIcon(QIcon(":/icons/edit-redo-dark.svg"));
|
||||||
|
fActions["Copy"]->setIcon(QIcon(":/icons/edit-copy-dark.svg"));
|
||||||
|
fActions["Cut"]->setIcon(QIcon(":/icons/edit-cut-dark.svg"));
|
||||||
|
fActions["Paste"]->setIcon(QIcon(":/icons/edit-paste-dark.svg"));
|
||||||
|
fActions["Find"]->setIcon(QIcon(":/icons/edit-find-dark.svg"));
|
||||||
|
fActions["Find Next"]->setIcon(QIcon(":/icons/go-next-use-dark.svg"));
|
||||||
|
fActions["Find Previous"]->setIcon(QIcon(":/icons/go-previous-use-dark.svg"));
|
||||||
|
fActions["musrWiz"]->setIcon(QIcon(":/icons/musrWiz-32x32-dark.svg"));
|
||||||
|
fActions["calcChisq"]->setIcon(QIcon(":/icons/musrchisq-dark.svg"));
|
||||||
|
fActions["musrfit"]->setIcon(QIcon(":/icons/musrfit-dark.svg"));
|
||||||
|
fActions["Swap Msr/Mlog"]->setIcon(QIcon(":/icons/musrswap-dark.svg"));
|
||||||
|
fActions["musrStep"]->setIcon(QIcon(":/icons/musrStep-32x32-dark.svg"));
|
||||||
|
fActions["msr2data"]->setIcon(QIcon(":/icons/msr2data-dark.svg"));
|
||||||
|
fActions["mupp"]->setIcon(QIcon(":/icons/mupp-dark.svg"));
|
||||||
|
fActions["musrview"]->setIcon(QIcon(":/icons/musrview-dark.svg"));
|
||||||
|
fActions["musrt0"]->setIcon(QIcon(":/icons/musrt0-dark.svg"));
|
||||||
|
fActions["musrFT"]->setIcon(QIcon(":/icons/musrFT-dark.svg"));
|
||||||
|
fActions["musrprefs"]->setIcon(QIcon(":/icons/musrprefs-dark.svg"));
|
||||||
|
fActions["musrdump"]->setIcon(QIcon(":/icons/musrdump-dark.svg"));
|
||||||
|
} else { // plain theme icons
|
||||||
|
fActions["New"]->setIcon(QIcon(":/icons/document-new-plain.svg"));
|
||||||
|
fActions["Open"]->setIcon(QIcon(":/icons/document-open-plain.svg"));
|
||||||
|
fActions["Reload"]->setIcon(QIcon(":/icons/view-refresh-plain.svg"));
|
||||||
|
fActions["Save"]->setIcon(QIcon(":/icons/document-save-plain.svg"));
|
||||||
|
fActions["Print"]->setIcon(QIcon(":/icons/document-print-plain.svg"));
|
||||||
|
fActions["Undo"]->setIcon(QIcon(":/icons/edit-undo-plain.svg"));
|
||||||
|
fActions["Redo"]->setIcon(QIcon(":/icons/edit-redo-plain.svg"));
|
||||||
|
fActions["Copy"]->setIcon(QIcon(":/icons/edit-copy-plain.svg"));
|
||||||
|
fActions["Cut"]->setIcon(QIcon(":/icons/edit-cut-plain.svg"));
|
||||||
|
fActions["Paste"]->setIcon(QIcon(":/icons/edit-paste-plain.svg"));
|
||||||
|
fActions["Find"]->setIcon(QIcon(":/icons/edit-find-plain.svg"));
|
||||||
|
fActions["Find Next"]->setIcon(QIcon(":/icons/go-next-use-plain.svg"));
|
||||||
|
fActions["Find Previous"]->setIcon(QIcon(":/icons/go-previous-use-plain.svg"));
|
||||||
|
fActions["musrWiz"]->setIcon(QIcon(":/icons/musrWiz-32x32.svg"));
|
||||||
|
fActions["calcChisq"]->setIcon(QIcon(":/icons/musrchisq-plain.svg"));
|
||||||
|
fActions["musrfit"]->setIcon(QIcon(":/icons/musrfit-plain.svg"));
|
||||||
|
fActions["Swap Msr/Mlog"]->setIcon(QIcon(":/icons/musrswap-plain.svg"));
|
||||||
|
fActions["musrStep"]->setIcon(QIcon(":/icons/musrStep-32x32.svg"));
|
||||||
|
fActions["msr2data"]->setIcon(QIcon(":/icons/msr2data-plain.svg"));
|
||||||
|
fActions["mupp"]->setIcon(QIcon(":/icons/mupp-plain.svg"));
|
||||||
|
fActions["musrview"]->setIcon(QIcon(":/icons/musrview-plain.svg"));
|
||||||
|
fActions["musrt0"]->setIcon(QIcon(":/icons/musrt0-plain.svg"));
|
||||||
|
fActions["musrFT"]->setIcon(QIcon(":/icons/musrFT-plain.svg"));
|
||||||
|
fActions["musrprefs"]->setIcon(QIcon(":/icons/musrprefs-plain.svg"));
|
||||||
|
fActions["musrdump"]->setIcon(QIcon(":/icons/musrdump-plain.svg"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
// END
|
// END
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -171,6 +171,7 @@ private:
|
|||||||
QString fLastDirInUse; ///< string holding the path from where the last file was loaded.
|
QString fLastDirInUse; ///< string holding the path from where the last file was loaded.
|
||||||
QStringList fMusrFTPrevCmd;
|
QStringList fMusrFTPrevCmd;
|
||||||
|
|
||||||
|
QMap<QString, QAction*> fActions;
|
||||||
QAction *fMusrT0Action;
|
QAction *fMusrT0Action;
|
||||||
|
|
||||||
PMsr2DataParam *fMsr2DataParam; ///< structure holding the necessary input information for msr2data
|
PMsr2DataParam *fMsr2DataParam; ///< structure holding the necessary input information for msr2data
|
||||||
@ -190,6 +191,8 @@ private:
|
|||||||
void fillRecentFiles();
|
void fillRecentFiles();
|
||||||
QStringList getRunList(QString runListStr, bool &ok);
|
QStringList getRunList(QString runListStr, bool &ok);
|
||||||
bool fileAlreadyOpen(QFileInfo &finfo, int &idx);
|
bool fileAlreadyOpen(QFileInfo &finfo, int &idx);
|
||||||
|
|
||||||
|
void switchIcons();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>455</width>
|
<width>452</width>
|
||||||
<height>168</height>
|
<height>168</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -39,13 +39,26 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>general</string>
|
<string>general</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<widget class="QWidget" name="layoutWidget_1">
|
<widget class="QPushButton" name="fDefaultPath_pushButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>50</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>35</height>
|
<height>31</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Change Default Search Paths</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="layoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>11</x>
|
||||||
|
<y>11</y>
|
||||||
|
<width>421</width>
|
||||||
|
<height>33</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
@ -66,27 +79,21 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>208</width>
|
<width>38</width>
|
||||||
<height>20</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="fDarkThemeIcons_checkBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Dark Theme Icons</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QPushButton" name="fDefaultPath_pushButton">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>50</y>
|
|
||||||
<width>421</width>
|
|
||||||
<height>31</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Change Default Search Paths</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="fMusrfit_tab">
|
<widget class="QWidget" name="fMusrfit_tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user