git-svn-id: svn://db.shs.com.ru/libs@242 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -35,6 +35,7 @@ action_show_all_docks(this), action_hide_all_docks(this), first_show(true) {
|
||||
action_hide_all_docks.setIcon(QIcon(":/icons/layer-visible-off.png"));
|
||||
setChanged(false);
|
||||
initMenus();
|
||||
initSession();
|
||||
tid = startTimer(200);
|
||||
}
|
||||
|
||||
@@ -200,7 +201,6 @@ void EMainWindow::initMenus() {
|
||||
void EMainWindow::initSession() {
|
||||
connect(&session, SIGNAL(loading(QPIConfig & )), this, SLOT(sessionLoading(QPIConfig & )));
|
||||
connect(&session, SIGNAL(saving(QPIConfig & )), this, SLOT(sessionSaving(QPIConfig & )));
|
||||
session.addEntry("EMainWindow", this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -68,17 +68,20 @@ protected:
|
||||
void timerEvent(QTimerEvent * e);
|
||||
QMenu * createPopupMenu();
|
||||
|
||||
void init(const QString & config) {session.setFile(config); initMenus(); initSession(); loadSession();}
|
||||
void initMenus();
|
||||
void initSession();
|
||||
virtual void saveSession();
|
||||
virtual void loadSession();
|
||||
void init(const QString & config) {session.setFile(config); initMenus(); initSession(); loadSession();} // unusable
|
||||
void saveSession();
|
||||
void loadSession();
|
||||
virtual void savingSession(QPIConfig & conf) {}
|
||||
virtual void loadingSession(QPIConfig & conf) {}
|
||||
virtual QSize dockTabsIconSIze() const {return iconSize();}
|
||||
virtual QString loadFilter() {return "All files(*)";}
|
||||
virtual QString saveFilter() {return "All files(*)";}
|
||||
|
||||
bool checkSave();
|
||||
void setChanged(bool yes = true) {isChanged = yes; setWindowModified(yes);}
|
||||
|
||||
void initMenus();
|
||||
void initSession();
|
||||
|
||||
QAction action_show_all_tools, action_hide_all_tools, action_show_all_docks, action_hide_all_docks;
|
||||
QString file_name, title_src;
|
||||
@@ -90,10 +93,10 @@ protected:
|
||||
|
||||
private slots:
|
||||
void changedDock();
|
||||
void sessionLoading(QPIConfig & conf) {loadingSession(conf);}
|
||||
void sessionSaving(QPIConfig & conf) {savingSession(conf);}
|
||||
// void changedDockClose(QObject * dock);
|
||||
void closeDock(int index);
|
||||
virtual void sessionLoading(QPIConfig & conf) {}
|
||||
virtual void sessionSaving(QPIConfig & conf) {}
|
||||
|
||||
public slots:
|
||||
void changed() {setChanged(true);}
|
||||
|
||||
Reference in New Issue
Block a user