00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CUSTOMIZEDIALOG_H
00023 #define CUSTOMIZEDIALOG_H
00024
00025 #include <gtkmm/checkbutton.h>
00026 #include <gtkmm/dialog.h>
00027 #include <gtkmm/image.h>
00028 #include <gtkmm/label.h>
00029 #include <gtkmm/notebook.h>
00030 #include <gtkmm/spinbutton.h>
00031
00032 #include "alphaimage.h"
00033 #include "casecombobox.h"
00034
00040 class CustomizeDialog: public Gtk::Dialog {
00041 public:
00046 CustomizeDialog(const Case::Overrides &overrides, const ImageMap &images);
00047
00051 Case::Overrides get_data();
00052
00053 protected:
00057 void construct(const ImageMap &images);
00058
00059
00060 void on_text_box_custom_image_toggled();
00061
00062
00063 void on_text_box_customize_toggled();
00064
00065
00066 void on_text_box_image_changed();
00067
00068
00069 void on_text_box_alpha_changed();
00070
00071
00072 void on_title_screen_customize_toggled();
00073
00074
00075 void on_title_screen_image_changed();
00076
00077
00078 Gtk::Widget* build_text_box_page();
00079
00080
00081 Gtk::Widget* build_title_screen_page();
00082
00083
00084 Gtk::Notebook *m_NB;
00085
00086
00087 Gtk::Label *m_TextBoxAlphaLabel;
00088 Gtk::Label *m_TitleScreenLabel;
00089
00090
00091 Gtk::Image *m_TitleScreenPreview;
00092 AlphaImage *m_TextBoxPreview;
00093
00094
00095 ImgComboBox *m_TextBoxImgCB;
00096 ImgComboBox *m_TitleScreenImgCB;
00097
00098
00099 Gtk::SpinButton *m_TextBoxAlphaSB;
00100
00101
00102 Gtk::CheckButton *m_TextBoxCB;
00103 Gtk::CheckButton *m_TitleScreenCB;
00104 Gtk::CheckButton *m_CustomImageCB;
00105 };
00106
00107 #endif