![]() |
Diana Software
|
Class to handle saving and opening sessions. More...
Public Member Functions | |
| QGSessionHandler () | |
| Constructor. More... | |
| virtual | ~QGSessionHandler () |
| Destructor. More... | |
| void | OpenSession (QGCanvasWindow *window=0) |
| Open session. More... | |
| void | OpenSession (std::string filename, QGCanvasWindow *window=0) |
| Open session. More... | |
| void | SaveSession () |
| Save session. More... | |
| void | SaveSession (std::string filename) |
| Save session. More... | |
Private Attributes | |
| std::map< std::string, QGCanvasWindow * > | fCanvasWindowsMap |
| Collection of canvas windows created by OpenSession. More... | |
| QGCalibrationWindow * | fCurrentCalibrationWindow |
| Current calibration window being created by OpenSession. More... | |
| QGCanvasWindow * | fCurrentCanvasWindow |
| Current canvas window being created by OpenSession. More... | |
| QGPlot * | fCurrentPlot |
| Current plot being created by OpenSession. More... | |
Class to handle saving and opening sessions.
Definition at line 20 of file QGSessionHandler.hh.
| QGSessionHandler::QGSessionHandler | ( | ) |
Constructor.
Definition at line 33 of file QGSessionHandler.cc.
|
virtual |
Destructor.
Definition at line 38 of file QGSessionHandler.cc.
| void QGSessionHandler::OpenSession | ( | QGCanvasWindow * | window = 0 | ) |
Open session.
Definition at line 42 of file QGSessionHandler.cc.
References QGDefaultsHandler::GetSessionDirectory(), QGDefaultsHandler::Instance(), and QGDefaultsHandler::SetSessionDirectory().
Referenced by QGCanvasSetupFrame::OpenSession().
| void QGSessionHandler::OpenSession | ( | std::string | filename, |
| QGCanvasWindow * | window = 0 |
||
| ) |
Open session.
| void QGSessionHandler::SaveSession | ( | ) |
Save session.
Definition at line 132 of file QGSessionHandler.cc.
References QGDefaultsHandler::GetSessionDirectory(), QGDefaultsHandler::Instance(), and QGDefaultsHandler::SetSessionDirectory().
Referenced by QGCanvasSetupFrame::HandleSaveSessionButton().
| void QGSessionHandler::SaveSession | ( | std::string | filename | ) |
Save session.
|
private |
Collection of canvas windows created by OpenSession.
Definition at line 42 of file QGSessionHandler.hh.
|
private |
Current calibration window being created by OpenSession.
Definition at line 45 of file QGSessionHandler.hh.
|
private |
Current canvas window being created by OpenSession.
Definition at line 48 of file QGSessionHandler.hh.
|
private |
Current plot being created by OpenSession.
Definition at line 51 of file QGSessionHandler.hh.