| 1 |
+ |
/***************************************************************************\ |
| 2 |
+ |
| Project: AE Installer | |
| 3 |
+ |
| By: Gumby & Iritscen | |
| 4 |
+ |
| File: Main_Window.h | |
| 5 |
+ |
| Function: Handles GUI. | |
| 6 |
+ |
| Created: 07/05/2009 20:38:25 | |
| 7 |
+ |
\***************************************************************************/ |
| 8 |
|
|
| 9 |
|
|
| 3 |
– |
///////////////////////////////////////////////////////////////////////////// |
| 4 |
– |
// Name: main_window.h |
| 5 |
– |
// Purpose: |
| 6 |
– |
// Author: |
| 7 |
– |
// Modified by: |
| 8 |
– |
// Created: 07/05/2009 20:38:25 |
| 9 |
– |
// RCS-ID: |
| 10 |
– |
// Copyright: |
| 11 |
– |
// Licence: |
| 12 |
– |
///////////////////////////////////////////////////////////////////////////// |
| 13 |
– |
|
| 10 |
|
#ifndef _MAINWINDOW_H_ |
| 11 |
|
#define _MAINWINDOW_H_ |
| 12 |
|
|
| 17 |
– |
|
| 13 |
|
/*! |
| 14 |
|
* Includes |
| 15 |
|
*/ |
| 16 |
< |
|
| 16 |
> |
#pragma mark INCLUDES |
| 17 |
|
////@begin includes |
| 18 |
+ |
#include "wx/bmpbuttn.h" |
| 19 |
+ |
#include "wx/checkbox.h" |
| 20 |
+ |
#include "wx/checklst.h" |
| 21 |
|
#include "wx/frame.h" |
| 22 |
+ |
#include "wx/gauge.h" |
| 23 |
+ |
#include "wx/generic/panelg.h" |
| 24 |
+ |
#include "wx/radiobut.h" |
| 25 |
|
#include "wx/splitter.h" |
| 26 |
|
#include "wx/statline.h" |
| 27 |
|
#include "wx/statusbr.h" |
| 28 |
+ |
#include "wx/textctrl.h" |
| 29 |
+ |
#include <vector> |
| 30 |
+ |
using namespace std; |
| 31 |
|
////@end includes |
| 32 |
|
|
| 33 |
|
/*! |
| 42 |
|
/*! |
| 43 |
|
* Control identifiers |
| 44 |
|
*/ |
| 45 |
< |
|
| 45 |
> |
#pragma mark DEFINES |
| 46 |
|
////@begin control identifiers |
| 47 |
|
#define ID_MAINWINDOW 10000 |
| 48 |
|
#define ID_SPLITTERWINDOW 10001 |
| 65 |
|
#define ReGlobalize_Button 10018 |
| 66 |
|
#define wxID_LOAD 10006 |
| 67 |
|
#define wxID_OPTIONS 10017 |
| 68 |
+ |
#define Dir_Button 10100 |
| 69 |
|
#define SYMBOL_MAINWINDOW_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxSIMPLE_BORDER |
| 70 |
|
#define SYMBOL_MAINWINDOW_TITLE _("Installer") |
| 71 |
|
#define SYMBOL_MAINWINDOW_IDNAME ID_MAINWINDOW |
| 72 |
< |
#define SYMBOL_MAINWINDOW_SIZE wxSize(400, 500) |
| 72 |
> |
#define SYMBOL_MAINWINDOW_SIZE wxSize(540, 500) |
| 73 |
|
#define SYMBOL_MAINWINDOW_POSITION wxDefaultPosition |
| 74 |
|
////@end control identifiers |
| 75 |
|
|
| 71 |
– |
|
| 76 |
|
/*! |
| 77 |
|
* MainWindow class declaration |
| 78 |
|
*/ |
| 79 |
|
|
| 80 |
< |
using namespace std; |
| 77 |
< |
|
| 78 |
< |
#include <vector> |
| 79 |
< |
|
| 80 |
> |
#pragma mark CLASS DECLARATIONS |
| 81 |
|
class MainWindow: public wxFrame |
| 82 |
|
{ |
| 83 |
|
DECLARE_CLASS( MainWindow ) |
| 86 |
|
public: |
| 87 |
|
/// Constructors |
| 88 |
|
MainWindow(); |
| 89 |
< |
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 ); |
| 89 |
> |
MainWindow( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, |
| 90 |
> |
const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); |
| 91 |
|
|
| 92 |
< |
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 ); |
| 92 |
> |
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, |
| 93 |
> |
const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE ); |
| 94 |
|
|
| 95 |
|
/// Destructor |
| 96 |
|
~MainWindow(); |
| 154 |
|
/// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT |
| 155 |
|
void OnAboutClick( wxCommandEvent& event ); |
| 156 |
|
|
| 157 |
+ |
/// change currently directory |
| 158 |
+ |
void OnDirButtonClick( wxCommandEvent& event ); |
| 159 |
|
////@end MainWindow event handler declarations |
| 160 |
|
|
| 161 |
|
////@begin MainWindow member function declarations |
| 187 |
|
wxRadioButton* SeperatedRadio; |
| 188 |
|
wxRadioButton* CompleteRadio; |
| 189 |
|
wxButton* ReglobalizeButton; |
| 190 |
+ |
wxButton* ChangeDirectoryButton; |
| 191 |
|
////@end MainWindow member variables |
| 192 |
|
|
| 193 |
|
void refreshMods( vector<string> ); |