customizedialog.h

00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Mike Polan                                      *
00003  *   kanadakid@gmail.com                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 // customizedialog.h: the CustomizeDialog class
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                 // text box custom image check button clicks
00060                 void on_text_box_custom_image_toggled();
00061                 
00062                 // text box customize check button clicks
00063                 void on_text_box_customize_toggled();
00064                 
00065                 // text box image combo box changes
00066                 void on_text_box_image_changed();
00067                 
00068                 // text box alpha value changed
00069                 void on_text_box_alpha_changed();
00070                 
00071                 // title screen customize toggled
00072                 void on_title_screen_customize_toggled();
00073                 
00074                 // title screen image changed
00075                 void on_title_screen_image_changed();
00076                 
00077                 // build the text box page
00078                 Gtk::Widget* build_text_box_page();
00079                 
00080                 // build the title screen page
00081                 Gtk::Widget* build_title_screen_page();
00082                 
00083                 // main notebook
00084                 Gtk::Notebook *m_NB;
00085                 
00086                 // labels
00087                 Gtk::Label *m_TextBoxAlphaLabel;
00088                 Gtk::Label *m_TitleScreenLabel;
00089                 
00090                 // images
00091                 Gtk::Image *m_TitleScreenPreview;
00092                 AlphaImage *m_TextBoxPreview;
00093                 
00094                 // combo box boxes
00095                 ImgComboBox *m_TextBoxImgCB;
00096                 ImgComboBox *m_TitleScreenImgCB;
00097                 
00098                 // spin buttons
00099                 Gtk::SpinButton *m_TextBoxAlphaSB;
00100                 
00101                 // check buttons
00102                 Gtk::CheckButton *m_TextBoxCB;
00103                 Gtk::CheckButton *m_TitleScreenCB;
00104                 Gtk::CheckButton *m_CustomImageCB;
00105 };
00106 
00107 #endif

Generated on Fri Feb 22 22:34:17 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3