Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

INIFileEditorWindow Class Reference

#include <OpenMS/APPLICATIONS/INIFileEditorWindow.h>

Inheritance diagram for INIFileEditorWindow:

QMainWindow

List of all members.


Detailed Description

shows the ParamEditor widget in a QMainWindow with a toolbar

Public Slots

bool openFile (const String &filename="")
 loads the xml-file into a Param object and loads Param into ParamEditor
bool saveFile ()
 saves the users changes in a xml-file if the Param object is valid
bool saveFileAs ()
 like saveFile but with a file dialog to choose a filename
void updateWindowTitle (bool)
 if the user changes data in ParamEditor the title shows a '*'

Public Member Functions

 INIFileEditorWindow (QWidget *parent=0)
 menu is created here
void closeEvent (QCloseEvent *event)
 when user closes window a message box asks the user if he wants to save

Private Attributes

ParamEditoreditor_
 ParamEditor object for visualization.
Param param_
 Param object for storing data.
QString filename_
 filename of xml-file to store the Param object

Constructor & Destructor Documentation

INIFileEditorWindow ( QWidget parent = 0  ) 

menu is created here


Member Function Documentation

void closeEvent ( QCloseEvent *  event  ) 

when user closes window a message box asks the user if he wants to save

bool openFile ( const String filename = ""  )  [slot]

loads the xml-file into a Param object and loads Param into ParamEditor

bool saveFile (  )  [slot]

saves the users changes in a xml-file if the Param object is valid

bool saveFileAs (  )  [slot]

like saveFile but with a file dialog to choose a filename

void updateWindowTitle ( bool   )  [slot]

if the user changes data in ParamEditor the title shows a '*'


Member Data Documentation

ParamEditor* editor_ [private]

ParamEditor object for visualization.

Param param_ [private]

Param object for storing data.

QString filename_ [private]

filename of xml-file to store the Param object


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:42 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1