![]() |
Reference documentation for deal.II version 8.1.0
|
#include <mainwindow.h>
Public Member Functions | |
MainWindow (const QString &filename="") | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | open () |
bool | save () |
bool | save_as () |
void | about () |
void | tree_was_modified () |
Private Member Functions | |
void | show_message () |
void | create_actions () |
void | create_menus () |
bool | maybe_save () |
bool | save_file (const QString &filename) |
void | load_file (const QString &filename) |
void | set_current_file (const QString &filename) |
Private Attributes | |
QTreeWidget * | tree_widget |
QMenu * | file_menu |
QMenu * | help_menu |
QAction * | open_act |
QAction * | save_act |
QAction * | save_as_act |
QAction * | exit_act |
QAction * | about_act |
QAction * | about_qt_act |
QString | current_file |
InfoMessage * | info_message |
QSettings * | gui_settings |
The MainWindow class of the the parameterGUI. The parameterGUI is a graphical user interface for editing parameter files based on the XML format, created by the ParameterHandler::print_parameters() function with ParameterHandler::XML as second argument. Please see Representation of Parameters
in the documentation of the ParameterHandler class for more details. The MainWindow class provides the basic functionality of the GUI as save- and load-file-actions and documentation. The parameterGUI provides special editors for the different types of parameters defined in the ParameterHandler class.
Definition at line 50 of file mainwindow.h.
dealii::ParameterGui::MainWindow::MainWindow | ( | const QString & | filename = "" | ) |
Constructor. If a filename
is given, the MainWindow tries to open and parse the file.
|
protected |
Reimplemented from QMainWindow. We ask, if changes should be saved.
|
privateslot |
Open a parameter file.
|
privateslot |
Save the parameter file.
|
privateslot |
Open a file dialog to save the parameter file.
|
privateslot |
Show some information on the parameterGUI
|
privateslot |
A slot
that should be always called, if parameter values were changed.
|
private |
Show an information dialog, how parameters can be edited.
|
private |
This function creates all actions.
|
private |
This function creates all menus.
|
private |
This function checks, if parameters were changed and show a dialog, if changes should be saved. This function should be always called, before open a new parameter file or before closing the GUI
|
private |
Save parameters to filename
in XML format.
|
private |
Load parameters from filename
in XML format.
|
private |
This functions writes the current filename
to the window title.
|
private |
This is the tree structure in which we store all parameters.
Definition at line 131 of file mainwindow.h.
|
private |
This menu provides all file actions as open
, save
, save as
and exit
Definition at line 136 of file mainwindow.h.
|
private |
This menu provides some informations about
the parameterGUI and about Qt
Definition at line 141 of file mainwindow.h.
|
private |
QAction open
a file.
Definition at line 145 of file mainwindow.h.
|
private |
QAction save
a file.
Definition at line 149 of file mainwindow.h.
|
private |
QAction save as
a file.
Definition at line 153 of file mainwindow.h.
|
private |
QAction exit
the GUI.
Definition at line 157 of file mainwindow.h.
|
private |
QAction about
the parameterGUI.
Definition at line 161 of file mainwindow.h.
|
private |
QAction about
Qt.
Definition at line 165 of file mainwindow.h.
|
private |
This value stores the current filename
we work on.
Definition at line 169 of file mainwindow.h.
|
private |
This dialog shows a short information message after loading a file.
Definition at line 173 of file mainwindow.h.
|
private |
An object for storing user settings.
Definition at line 177 of file mainwindow.h.