changes" and "Save all changes" actions.
sr->saveUserDataToJSON();
}
+void DataManager::onSaveAllChanges()
+{
+ SingleRunsMap::iterator it;
+
+ if (m_activeSequence == nullptr)
+ return;
+
+ it = m_activeSequence->begin();
+ while (it != m_activeSequence->end()) {
+ it->second->saveUserDataToJSON();
+ it++;
+ }
+}
+
void DataManager::onSequenceSelected(const QString& key)
{
if (m_sequenceRejected) {
void onLoadSequence(const QString& dir);
void onLoadSingleRun(const QString& dir);
void onSaveChanges();
+ void onSaveAllChanges();
void onSequenceSelected(const QString& key);
void onSingleRunSelected(const QString& key);
connect(ui->actionLoad_single_run, SIGNAL(triggered()), this, SLOT(onLoadSingleRun()));
connect(ui->actionLoad_sequence, SIGNAL(triggered()), this, SLOT(onLoadSequence()));
connect(ui->actionSave_changes, SIGNAL(triggered()), this, SLOT(onSaveChanges()));
+ connect(ui->actionSave_all_changes, SIGNAL(triggered()), this, SLOT(onSaveAllChanges()));
/* EXPORT menu */
connect(ui->actionRaw_values, SIGNAL(triggered()), this, SLOT(onExportRawData()));
connect(ui->actionIntegration_results, SIGNAL(triggered()), this, SLOT(onExportPeaks()));
void onLoadSequence();
void onLoadSingleRun();
void onSaveChanges() { emit saveChanges(); }
+ void onSaveAllChanges() { emit saveAllChanges(); }
void onSequenceSelected(const QString& str);
void onSingleRunSelected(const QString& str);
void onSWFullSizeToggle();
void loadSequence(const QString& dir);
void loadSingleRun(const QString& dir);
void saveChanges();
+ void saveAllChanges();
void sequenceSelected(const QString& str);
void singleRunSelected(const QString& str);
void zoomMode();
<rect>
<x>0</x>
<y>0</y>
- <width>780</width>
- <height>336</height>
+ <width>782</width>
+ <height>309</height>
</rect>
</property>
<property name="sizePolicy">
<x>0</x>
<y>0</y>
<width>800</width>
- <height>19</height>
+ <height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuData">
<addaction name="actionLoad_sequence"/>
<addaction name="separator"/>
<addaction name="actionSave_changes"/>
+ <addaction name="actionSave_all_changes"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<property name="text">
<string>Save changes</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+S</string>
+ </property>
+ </action>
+ <action name="actionSave_all_changes">
+ <property name="text">
+ <string>Save all changes</string>
+ </property>
+ <property name="shortcut">
+ <string>Ctrl+Shift+S</string>
+ </property>
</action>
</widget>
<resources/>
QObject::connect(mWin.get(), SIGNAL(exportPeaks()), dMgr.get(), SLOT(onExportPeaks()));
QObject::connect(mWin.get(), SIGNAL(exportRawData()), dMgr.get(), SLOT(onExportRawData()));
QObject::connect(mWin.get(), SIGNAL(saveChanges()), dMgr.get(), SLOT(onSaveChanges()));
+ QObject::connect(mWin.get(), SIGNAL(saveAllChanges()), dMgr.get(), SLOT(onSaveAllChanges()));
QObject::connect(mWin.get(), SIGNAL(loadSingleRun(QString)), dMgr.get(), SLOT(onLoadSingleRun(QString)));
QObject::connect(mWin.get(), SIGNAL(loadSequence(QString)), dMgr.get(), SLOT(onLoadSequence(QString)));
QObject::connect(mWin.get(), SIGNAL(sequenceSelected(QString)), dMgr.get(), SLOT(onSequenceSelected(QString)));
private:
std::string m_selectedRunKey;
- std::map<std::string, std::shared_ptr<SingleRunData>> m_singleRuns;
+ SingleRunsMap m_singleRuns;
signals: