![]() |
Diana Software
|
Window used to manage writing cuts to a file. More...
Public Member Functions | |
| QGCutsEditorWindow (const TGWindow *p=0, UInt_t w=600, UInt_t h=600) | |
| Constructor. More... | |
| virtual | ~QGCutsEditorWindow () |
| Destructor. More... | |
| void | HandlePasteButton () |
| Handle paste button. More... | |
| void | HandleSaveButton () |
| Handle save button. More... | |
| void | Save (const std::string &filename) |
| Save cuts to file. More... | |
Public Member Functions inherited from QGWindow | |
| QGWindow (const TGWindow *p=0, UInt_t w=100, UInt_t h=100) | |
| Constructor. More... | |
| virtual | ~QGWindow () |
| Destructor. More... | |
| virtual void | SetWindowName (const char *name=0) |
| Set name of window. More... | |
Private Member Functions | |
| ClassDef (QGCutsEditorWindow, 0) | |
Private Attributes | |
| TGHorizontalFrame * | fButtonsFrame |
| Buttons frame. More... | |
| TGPictureButton * | fPasteButton |
| Paste button. More... | |
| TGPictureButton * | fSaveButton |
| Save button. More... | |
| TGTextEdit * | fTextEditor |
| Text editor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from QGWindow | |
| static QGWindow * | GetWindowByName (const std::string &name) |
| Get pointer to window with a given name. More... | |
| static const std::list< QGWindow * > & | GetWindows () |
| Get collection of windows. More... | |
| static bool | IsNameInUse (std::string name) |
| Check whether string is the name of any window. More... | |
| static std::string | GenerateWindowName (std::string baseName) |
| Generate a name for the window. More... | |
| static void | UpdateWindowDropDownBoxes () |
| Update window drop down boxes. More... | |
Protected Attributes inherited from QGWindow | |
| UInt_t | fWidth |
| Width of window. More... | |
| UInt_t | fHeight |
| Height of window. More... | |
Static Protected Attributes inherited from QGWindow | |
| static std::list< QGWindow * > | fWindows |
| Collection of pointers to all open QGWindows. More... | |
Window used to manage writing cuts to a file.
Definition at line 18 of file QGCutsEditorWindow.hh.
| QGCutsEditorWindow::QGCutsEditorWindow | ( | const TGWindow * | p = 0, |
| UInt_t | w = 600, |
||
| UInt_t | h = 600 |
||
| ) |
Constructor.
Definition at line 29 of file QGCutsEditorWindow.cc.
References fButtonsFrame, fPasteButton, fSaveButton, fTextEditor, QStringHandler::Resize(), and QGWindow::SetWindowName().
|
virtual |
Destructor.
Definition at line 56 of file QGCutsEditorWindow.cc.
|
private |
| void QGCutsEditorWindow::HandlePasteButton | ( | ) |
Handle paste button.
Definition at line 60 of file QGCutsEditorWindow.cc.
References fTextEditor, and QGCutsFrame::GetCopiedCuts().
| void QGCutsEditorWindow::HandleSaveButton | ( | ) |
Handle save button.
Definition at line 83 of file QGCutsEditorWindow.cc.
References QGDefaultsHandler::GetCutsDirectory(), QGDefaultsHandler::Instance(), Save(), and QGDefaultsHandler::SetCutsDirectory().
| void QGCutsEditorWindow::Save | ( | const std::string & | filename | ) |
Save cuts to file.
Definition at line 109 of file QGCutsEditorWindow.cc.
References QGTextFileHandler::AppendLine(), CUTS_STRING_KEY, fTextEditor, QGPlot::GetPlots(), GRAPHICAL_CUT_KEY, NAME_KEY, VERTEX_KEY, QGTextFileHandler::WriteFile(), X_VARIABLE_KEY, and Y_VARIABLE_KEY.
Referenced by HandleSaveButton().
|
private |
Buttons frame.
Definition at line 37 of file QGCutsEditorWindow.hh.
Referenced by QGCutsEditorWindow().
|
private |
Paste button.
Definition at line 40 of file QGCutsEditorWindow.hh.
Referenced by QGCutsEditorWindow().
|
private |
Save button.
Definition at line 43 of file QGCutsEditorWindow.hh.
Referenced by QGCutsEditorWindow().
|
private |
Text editor.
Definition at line 46 of file QGCutsEditorWindow.hh.
Referenced by HandlePasteButton(), QGCutsEditorWindow(), and Save().