git-svn-id: svn://db.shs.com.ru/libs@533 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -96,8 +96,8 @@ void SessionManager::save() {
|
||||
sr.setValue(o->objectName(), value, false);
|
||||
}
|
||||
//qDebug() << mcl.size();
|
||||
sr.writeAll();
|
||||
emit saving(sr);
|
||||
sr.writeAll();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -66,10 +66,6 @@ public:
|
||||
void addEntry(const QString & name, float * e) {floats.push_back(QPair<QString, float * >(name, e));}
|
||||
void addMainWidget(const QString & name, QWidget * e) {widgets.push_back(QPair<QString, QWidget * >(name, e));}
|
||||
|
||||
void save();
|
||||
void load(bool onlyMainwindow = false);
|
||||
void clear(bool with_filename = true);
|
||||
|
||||
private:
|
||||
QMap<const QMetaObject*, QByteArray> metaFunctions(const QSet<QObject*> & objects, QByteArray fname);
|
||||
|
||||
@@ -94,6 +90,11 @@ private:
|
||||
QVector<QPair<QString, float * > > floats;
|
||||
QString file_;
|
||||
|
||||
public slots:
|
||||
void save();
|
||||
void load(bool onlyMainwindow = false);
|
||||
void clear(bool with_filename = true);
|
||||
|
||||
signals:
|
||||
void loading(QPIConfig & );
|
||||
void saving(QPIConfig & );
|
||||
|
||||
Reference in New Issue
Block a user