CycloBranch
cPreferencesDialog.h
Go to the documentation of this file.
1
7#ifndef _CPREFERENCESDIALOG_H
8#define _CPREFERENCESDIALOG_H
9
11
12#include <QDialog>
13#include <QDesktopServices>
14#include <QUrl>
15#include <QKeyEvent>
16#include <QDialogButtonBox>
17#include <QTabWidget>
18#include <QVBoxLayout>
19
20
25
26
30class cPreferencesDialog : public QDialog
31{
32 Q_OBJECT
33
34public:
35
36
42 explicit cPreferencesDialog(cGlobalPreferences& globalpreferences, QWidget *parent = 0);
43
44
49 void setPreferences(cGlobalPreferences& globalpreferences);
50
51
56 void resetPreferences(cGlobalPreferences& globalpreferences);
57
58
63
64
65protected:
66
67
72 void keyPressEvent(QKeyEvent *event);
73
74
75private:
76
77 cPreferencesTabIonTypes* tabiontypes;
78 cPreferencesTabDataProcessing* tabdataprocessing;
79 cPreferencesTabDirectories* tabdirectories;
80 cPreferencesTabURLs* taburls;
81
82 QTabWidget *tabwidget;
83 QDialogButtonBox *buttonbox;
84
85 QVBoxLayout *mainlayout;
86
87};
88
89
90#endif
91
The representation of a set of peptide sequence candidates.
The class storing global preferences.
Definition: cGlobalPreferences.h:104
Preferences dialog.
Definition: cPreferencesDialog.h:31
~cPreferencesDialog()
The destructor.
Definition: cPreferencesDialog.cpp:57
cPreferencesDialog(cGlobalPreferences &globalpreferences, QWidget *parent=0)
The constructor.
Definition: cPreferencesDialog.cpp:10
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cPreferencesDialog.cpp:70
void resetPreferences(cGlobalPreferences &globalpreferences)
Reset preferences.
Definition: cPreferencesDialog.cpp:49
void setPreferences(cGlobalPreferences &globalpreferences)
Set preferences.
Definition: cPreferencesDialog.cpp:41
The class representing a tab used to define the data processing parameters.
Definition: cPreferencesTabDataProcessing.h:26
The class representing a tab of default directories.
Definition: cPreferencesTabDirectories.h:26
The class representing a tab of ion types.
Definition: cPreferencesTabIonTypes.h:25
The class representing a tab of URLs.
Definition: cPreferencesTabURLs.h:26