--- AE/Installer/trunk/source/main_window.h 2009/06/01 02:04:33 328 +++ AE/Installer/trunk/source/main_window.h 2010/03/24 07:12:25 503 @@ -1,29 +1,33 @@ +/***************************************************************************\ +| Project: AE Installer | +| By: Gumby & Iritscen | +| File: Main_Window.h | +| Function: Handles GUI. | +| Created: 07/05/2009 20:38:25 | +\***************************************************************************/ -///////////////////////////////////////////////////////////////////////////// -// Name: main_window.h -// Purpose: -// Author: -// Modified by: -// Created: 07/05/2009 20:38:25 -// RCS-ID: -// Copyright: -// Licence: -///////////////////////////////////////////////////////////////////////////// - #ifndef _MAINWINDOW_H_ #define _MAINWINDOW_H_ - /*! * Includes */ - +#pragma mark INCLUDES ////@begin includes +#include "wx/bmpbuttn.h" +#include "wx/checkbox.h" +#include "wx/checklst.h" #include "wx/frame.h" +#include "wx/gauge.h" +#include "wx/generic/panelg.h" +#include "wx/radiobut.h" #include "wx/splitter.h" #include "wx/statline.h" #include "wx/statusbr.h" +#include "wx/textctrl.h" +#include +using namespace std; ////@end includes /*! @@ -38,7 +42,7 @@ class wxStatusBar; /*! * Control identifiers */ - +#pragma mark DEFINES ////@begin control identifiers #define ID_MAINWINDOW 10000 #define ID_SPLITTERWINDOW 10001 @@ -61,22 +65,19 @@ class wxStatusBar; #define ReGlobalize_Button 10018 #define wxID_LOAD 10006 #define wxID_OPTIONS 10017 +#define Dir_Button 10100 #define SYMBOL_MAINWINDOW_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxSIMPLE_BORDER #define SYMBOL_MAINWINDOW_TITLE _("Installer") #define SYMBOL_MAINWINDOW_IDNAME ID_MAINWINDOW -#define SYMBOL_MAINWINDOW_SIZE wxSize(400, 500) +#define SYMBOL_MAINWINDOW_SIZE wxSize(540, 500) #define SYMBOL_MAINWINDOW_POSITION wxDefaultPosition ////@end control identifiers - /*! * MainWindow class declaration */ -using namespace std; - -#include - +#pragma mark CLASS DECLARATIONS class MainWindow: public wxFrame { DECLARE_CLASS( MainWindow ) @@ -85,9 +86,11 @@ class MainWindow: public wxFrame public: /// Constructors MainWindow(); - MainWindow( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); + MainWindow( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, + const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); - bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); + bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, + const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); /// Destructor ~MainWindow(); @@ -151,6 +154,8 @@ public: /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT void OnAboutClick( wxCommandEvent& event ); + /// change currently directory + void OnDirButtonClick( wxCommandEvent& event ); ////@end MainWindow event handler declarations ////@begin MainWindow member function declarations @@ -182,6 +187,7 @@ public: wxRadioButton* SeperatedRadio; wxRadioButton* CompleteRadio; wxButton* ReglobalizeButton; + wxButton* ChangeDirectoryButton; ////@end MainWindow member variables void refreshMods( vector );