Some documentation and reformatting
Originally committed to SVN as r4696.
This commit is contained in:
parent
9def56b61c
commit
c3881ea772
1 changed files with 19 additions and 8 deletions
|
@ -62,10 +62,6 @@ public:
|
||||||
|
|
||||||
wxSizer *sizer;
|
wxSizer *sizer;
|
||||||
|
|
||||||
void CellSkip(wxFlexGridSizer *&flex) {
|
|
||||||
flex->Add(new wxStaticText(this, wxID_ANY , wxEmptyString), 0, wxALL, 5);
|
|
||||||
}
|
|
||||||
|
|
||||||
OptionPage(wxTreebook *book, wxString name, int style = PAGE_DEFAULT):
|
OptionPage(wxTreebook *book, wxString name, int style = PAGE_DEFAULT):
|
||||||
wxScrolled<wxPanel>(book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL) {
|
wxScrolled<wxPanel>(book, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL) {
|
||||||
|
|
||||||
|
@ -84,9 +80,12 @@ public:
|
||||||
sizer = new wxBoxSizer(wxVERTICAL);
|
sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
~OptionPage() {}
|
~OptionPage() {}
|
||||||
|
|
||||||
|
void CellSkip(wxFlexGridSizer *&flex) {
|
||||||
|
flex->Add(new wxStaticText(this, wxID_ANY , wxEmptyString), 0, wxALL, 5);
|
||||||
|
}
|
||||||
|
|
||||||
void OptionAdd(wxFlexGridSizer *&flex, const wxString &name, const char *opt_name, double min=0, double max=100, double inc=1) {
|
void OptionAdd(wxFlexGridSizer *&flex, const wxString &name, const char *opt_name, double min=0, double max=100, double inc=1) {
|
||||||
|
|
||||||
agi::OptionValue *opt = OPT_GET(opt_name);
|
agi::OptionValue *opt = OPT_GET(opt_name);
|
||||||
|
@ -186,8 +185,6 @@ public:
|
||||||
browse->Bind(text);
|
browse->Bind(text);
|
||||||
button_flex->Add(browse, 1, wxEXPAND);
|
button_flex->Add(browse, 1, wxEXPAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -205,6 +202,7 @@ void Preferences::OnCancel(wxCommandEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// General preferences page
|
||||||
class General: public OptionPage {
|
class General: public OptionPage {
|
||||||
public:
|
public:
|
||||||
General(wxTreebook *book): OptionPage(book, _("General")) {
|
General(wxTreebook *book): OptionPage(book, _("General")) {
|
||||||
|
@ -226,6 +224,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Subtitles preferences page
|
||||||
class Subtitles: public OptionPage {
|
class Subtitles: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Subtitles(wxTreebook *book): OptionPage(book, _("Subtitles")) {
|
Subtitles(wxTreebook *book): OptionPage(book, _("Subtitles")) {
|
||||||
|
@ -245,6 +244,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Audio preferences page
|
||||||
class Audio: public OptionPage {
|
class Audio: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Audio(wxTreebook *book): OptionPage(book, _("Audio")) {
|
Audio(wxTreebook *book): OptionPage(book, _("Audio")) {
|
||||||
|
@ -280,6 +280,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Video preferences page
|
||||||
class Video: public OptionPage {
|
class Video: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Video(wxTreebook *book): OptionPage(book, _("Video")) {
|
Video(wxTreebook *book): OptionPage(book, _("Video")) {
|
||||||
|
@ -307,6 +308,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Interface preferences page
|
||||||
class Interface: public OptionPage {
|
class Interface: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Interface(wxTreebook *book): OptionPage(book, _("Interface")) {
|
Interface(wxTreebook *book): OptionPage(book, _("Interface")) {
|
||||||
|
@ -322,6 +324,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Interface Colours preferences subpage
|
||||||
class Interface_Colours: public OptionPage {
|
class Interface_Colours: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Interface_Colours(wxTreebook *book): OptionPage(book, _("Colours"), PAGE_SCROLL|PAGE_SUB) {
|
Interface_Colours(wxTreebook *book): OptionPage(book, _("Colours"), PAGE_SCROLL|PAGE_SUB) {
|
||||||
|
@ -372,6 +375,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Interface Hotkeys preferences subpage
|
||||||
class Interface_Hotkeys: public OptionPage {
|
class Interface_Hotkeys: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Interface_Hotkeys(wxTreebook *book): OptionPage(book, _("Hotkeys"), PAGE_SUB) {
|
Interface_Hotkeys(wxTreebook *book): OptionPage(book, _("Hotkeys"), PAGE_SUB) {
|
||||||
|
@ -383,6 +387,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Paths preferences page
|
||||||
class Paths: public OptionPage {
|
class Paths: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Paths(wxTreebook *book): OptionPage(book, _("Paths")) {
|
Paths(wxTreebook *book): OptionPage(book, _("Paths")) {
|
||||||
|
@ -395,6 +400,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// File Associations preferences page
|
||||||
class File_Associations: public OptionPage {
|
class File_Associations: public OptionPage {
|
||||||
public:
|
public:
|
||||||
File_Associations(wxTreebook *book): OptionPage(book, _("File Associations")) {
|
File_Associations(wxTreebook *book): OptionPage(book, _("File Associations")) {
|
||||||
|
@ -407,6 +413,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Backup preferences page
|
||||||
class Backup: public OptionPage {
|
class Backup: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Backup(wxTreebook *book): OptionPage(book, _("Backup")) {
|
Backup(wxTreebook *book): OptionPage(book, _("Backup")) {
|
||||||
|
@ -427,6 +434,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// Automation preferences page
|
||||||
class Automation: public OptionPage {
|
class Automation: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Automation(wxTreebook *book): OptionPage(book, _("Automation")) {
|
Automation(wxTreebook *book): OptionPage(book, _("Automation")) {
|
||||||
|
@ -453,6 +461,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Advanced preferences page
|
||||||
class Advanced: public OptionPage {
|
class Advanced: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Advanced(wxTreebook *book): OptionPage(book, _("Advanced")) {
|
Advanced(wxTreebook *book): OptionPage(book, _("Advanced")) {
|
||||||
|
@ -469,6 +478,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Advanced Interface preferences subpage
|
||||||
class Advanced_Interface: public OptionPage {
|
class Advanced_Interface: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Advanced_Interface(wxTreebook *book): OptionPage(book, _("Backup"), PAGE_SUB) {
|
Advanced_Interface(wxTreebook *book): OptionPage(book, _("Backup"), PAGE_SUB) {
|
||||||
|
@ -481,6 +491,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Advanced Audio preferences subpage
|
||||||
class Advanced_Audio: public OptionPage {
|
class Advanced_Audio: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Advanced_Audio(wxTreebook *book): OptionPage(book, _("Audio"), PAGE_SUB) {
|
Advanced_Audio(wxTreebook *book): OptionPage(book, _("Audio"), PAGE_SUB) {
|
||||||
|
@ -522,6 +533,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// Advanced Video preferences subpage
|
||||||
class Advanced_Video: public OptionPage {
|
class Advanced_Video: public OptionPage {
|
||||||
public:
|
public:
|
||||||
Advanced_Video(wxTreebook *book): OptionPage(book, _("Video")) {
|
Advanced_Video(wxTreebook *book): OptionPage(book, _("Video")) {
|
||||||
|
@ -598,7 +610,6 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"
|
||||||
}
|
}
|
||||||
|
|
||||||
Preferences::~Preferences() {
|
Preferences::~Preferences() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue