Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Slots | Public Member Functions | Private Attributes | List of all members
INIFileEditorWindow Class Reference

shows the ParamEditor widget in a QMainWindow with a toolbar More...

#include <OpenMS/VISUAL/APPLICATIONS/INIFileEditorWindow.h>

Inheritance diagram for INIFileEditorWindow:
QMainWindow

Public Slots

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

Public Member Functions

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

Private Attributes

ParamEditoreditor_
 ParamEditor object for visualization. More...
 
Param param_
 Param object for storing data. More...
 
QString filename_
 filename of xml-file to store the Param object More...
 
String current_path_
 path used as next default location of the load/store dialogs More...
 

Detailed Description

shows the ParamEditor widget in a QMainWindow with a toolbar

Constructor & Destructor Documentation

◆ INIFileEditorWindow()

INIFileEditorWindow ( QWidget parent = 0)

Member Function Documentation

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)

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

References INIFileEditorWindow::editor_, ParamEditor::isModified(), and INIFileEditorWindow::saveFile().

◆ openFile

bool openFile ( const String filename = "")
slot

◆ saveFile

bool saveFile ( )
slot

◆ saveFileAs

bool saveFileAs ( )
slot

◆ updateWindowTitle

void updateWindowTitle ( bool  update)
slot

Member Data Documentation

◆ current_path_

String current_path_
private

path used as next default location of the load/store dialogs

Referenced by INIFileEditorWindow::openFile(), INIFileEditorWindow::saveFileAs(), and INIFileEditorWindow::updateWindowTitle().

◆ editor_

ParamEditor* editor_
private

◆ filename_

QString filename_
private

◆ param_

Param param_
private

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:09 using doxygen 1.8.13