Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
ui
settingsdialog.h
Go to the documentation of this file.
1
8
#ifndef MIDISETUPDIALOG_H_
9
#define MIDISETUPDIALOG_H_
10
11
#include <QWidget>
12
#include <QPoint>
13
#include <QColorDialog>
14
15
#include "
ui_settingsdialog.h
"
16
17
class
CASheet
;
18
19
class
CASettingsDialog
:
public
QDialog
,
private
Ui::uiSettingsDialog
{
20
Q_OBJECT
21
22
public
:
23
enum
CASettingsPage
{
24
UndefinedSettings
= -1,
25
EditorSettings
= 0,
26
AppearanceSettings
= 1,
27
LoadSaveSettings
= 2,
28
PlaybackSettings
= 3
29
};
30
31
CASettingsDialog
(
CASettingsPage
currentPage,
QWidget
*parent=0 );
32
~CASettingsDialog
();
33
34
private
slots:
35
void
on_uiButtonBox_clicked
( QAbstractButton* );
36
void
on_uiSettingsList_currentItemChanged
( QListWidgetItem*, QListWidgetItem* );
37
38
void
on_uiDocumentsDirectoryBrowse_clicked
(
bool
);
39
void
on_uiDocumentsDirectoryRevert_clicked
(
bool
);
40
41
void
on_uiBackgroundColor_clicked
(
bool
);
42
void
on_uiBackgroundRevert_clicked
(
bool
);
43
void
on_uiForegroundColor_clicked
(
bool
);
44
void
on_uiForegroundRevert_clicked
(
bool
);
45
void
on_uiSelectionColor_clicked
(
bool
);
46
void
on_uiSelectionRevert_clicked
(
bool
);
47
void
on_uiSelectionAreaColor_clicked
(
bool
);
48
void
on_uiSelectionAreaRevert_clicked
(
bool
);
49
void
on_uiSelectedContextColor_clicked
(
bool
);
50
void
on_uiSelectedContextRevert_clicked
(
bool
);
51
void
on_uiHiddenElementsColor_clicked
(
bool
);
52
void
on_uiHiddenElementsRevert_clicked
(
bool
);
53
void
on_uiDisabledElementsColor_clicked
(
bool
);
54
void
on_uiDisabledElementsRevert_clicked
(
bool
);
55
56
void
on_uiTypesetterBrowse_clicked
(
bool
);
57
void
on_uiPdfViewerBrowse_clicked
(
bool
);
58
void
on_uiTypesetterDefault_toggled
(
bool
);
59
void
on_uiPdfViewerDefault_toggled
(
bool
);
60
61
private
:
62
void
setupPages
(
CASettingsPage
currentPage=
EditorSettings
);
63
void
buildPreviewSheet
();
64
void
applySettings
();
65
66
// Pages temporary variables
67
CASheet
*
_previewSheet
;
68
QMap<int, QString>
_midiInPorts
;
69
QMap<int, QString>
_midiOutPorts
;
70
};
71
#endif
/* MIDISETUPDIALOG_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3