|
OpenMS
2.6.0
|
Go to the documentation of this file.
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
43 #include <QtWidgets/QMdiArea>
44 #include <QtWidgets/QMainWindow>
65 void closeEvent(QCloseEvent * event)
override;
69 bool openFile(
const String & filename =
"");
75 void updateWindowTitle(
bool);
void updateWindowTitle(bool)
if the user changes data in ParamEditor the title shows a '*'
Definition: INIFileEditorWindow.cpp:187
Param param_
Param object for storing data.
Definition: INIFileEditorWindow.h:81
void closeEvent(QCloseEvent *event) override
when user closes window a message box asks the user if he wants to save
Definition: INIFileEditorWindow.cpp:156
static String basename(const String &file)
Returns the basename of the file (without the path).
A more convenient string class.
Definition: String.h:59
bool saveFile()
saves the users changes in a xml-file if the Param object is valid
Definition: INIFileEditorWindow.cpp:123
Extension to the QApplication for running TOPPs GUI tools.
Definition: QApplicationTOPP.h:50
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
void clear()
Deletes all entries.
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
Forward const iterator for the Param class.
Definition: Param.h:197
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool exists(const String &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
void parseCommandLine(const int argc, const char **argv, const String &prefix="")
Parses command line arguments.
void store()
store edited data in Param object
String current_path_
path used as next default location of the load/store dialogs
Definition: INIFileEditorWindow.h:85
bool isModified() const
Indicates if the data changed since last save.
bool openFile(const String &filename="")
loads the xml-file into a Param object and loads Param into ParamEditor
Definition: INIFileEditorWindow.cpp:86
bool saveFileAs()
like saveFile but with a file dialog to choose a filename
Definition: INIFileEditorWindow.cpp:138
Exception base class.
Definition: Exception.h:89
QString toQString() const
Conversion to Qt QString.
static String path(const String &file)
Returns the path of the file (without the file name).
QString filename_
filename of xml-file to store the Param object
Definition: INIFileEditorWindow.h:83
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
ParamIterator end() const
End iterator for the internal tree.
#define OPENMS_LOG_ERROR
Macro to be used if non-fatal error are reported (processing continues)
Definition: LogStream.h:455
ParamIterator begin() const
Begin iterator for the internal tree.
ParamEditor * editor_
ParamEditor object for visualization.
Definition: INIFileEditorWindow.h:79
static bool readable(const String &file)
Return true if the file exists and is readable.
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:176
Management and storage of parameters / INI files.
Definition: Param.h:73
void store(const String &filename, const Param ¶m) const
Write XML file.
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
void load(const String &filename, Param ¶m)
Read XML file.
shows the ParamEditor widget in a QMainWindow with a toolbar
Definition: INIFileEditorWindow.h:56
void load(Param ¶m)
load method for Param object