Changeset 385 for AE/Installer/trunk/source
- Timestamp:
- Jul 6, 2009, 2:59:40 AM (15 years ago)
- Location:
- AE/Installer/trunk/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/aeinstallerapp.cpp
r382 r385 138 138 139 139 //anything after this is done after the window appears... 140 140 141 if ( !exists("../GameDataFolder") ) 141 142 { -
AE/Installer/trunk/source/main_window.cpp
r379 r385 288 288 //printf(Step_x_x,"Step %d/%d: reimporting level", parts_done + 1, 7 + 2 * num_levels); setStatusArea((string)Step_x_x + levels[i] + (string)"_Final.dat"); 289 289 setStatusArea("Step " + lexical_cast<std::string>(parts_done + 1) + "/" + lexical_cast<std::string>(total_steps) + " reimporting level" + levels[i]+"_Final.oni"); 290 system( (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level" 291 + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log").c_str()); 290 logfile << (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level" 291 + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log").c_str() << '\n'; 292 string sys_str = (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final packages/VanillaDats/level" + levels[i] + "_Final/level" 293 + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize2.log"); 294 system(sys_str.c_str() ); 292 295 setProgressBar( (int)(1000 * (float)(parts_done) / (float)(total_steps) )); 293 296 parts_done++; … … 636 639 if ( is_directory( dir_itr->status() ) ) 637 640 { 638 importCommand = strOniSplit + " " + strImportOption + " " + vanilla_dir.string() + dir_itr->path().filename() + " " + "../GameDataFolder/" + dir_itr->path().filename() 639 + ".dat"; 641 importCommand = strOniSplit + " " + strImportOption + " " + vanilla_dir.string() + dir_itr->path().filename() + " "; 640 642 for (int i = 0; i < installedMods.size(); ++i) { 641 643 if (exists("packages/" + installedMods[i] + "/oni/" + dir_itr->path().filename() )) … … 798 800 799 801 ////@begin includes 800 #include "about _window.h"802 #include "about.h" 801 803 ////@end includes 802 804 … … 804 806 805 807 ////@begin XPM images 806 #include "redo.xpm" 808 #include "aelogosmall.xpm" 809 #include "undo.xpm" 807 810 #include "fileopen.xpm" 808 811 #include "filesaveas.xpm" … … 827 830 828 831 ////@begin MainWindow event table entries 829 EVT_CHECKBOX( SelectAll_Checkbox, MainWindow::OnSelectAllCheckboxClick )830 831 EVT_BUTTON( Refresh_Button, MainWindow::OnRefreshButtonClick )832 833 EVT_LISTBOX( Mods_CheckboxList1, MainWindow::OnModsCheckboxList1Selected )834 EVT_CHECKLISTBOX( Mods_CheckboxList1, MainWindow::OnModsCheckboxList1Toggled )835 836 EVT_UPDATE_UI( ID_STATUSBAR, MainWindow::OnStatusbarUpdate )837 838 EVT_BUTTON( Install_Button, MainWindow::OnInstallButtonClick )839 840 EVT_RADIOBUTTON( Sep_RadioButton, MainWindow::OnSepRadioButtonSelected )841 842 EVT_RADIOBUTTON( NoSep_RadioButton, MainWindow::OnNoSepRadioButtonSelected )843 844 EVT_RADIOBUTTON( Separated_RadioButton, MainWindow::OnSeparatedRadioButtonSelected )845 846 EVT_RADIOBUTTON( Complete_RadioButton, MainWindow::OnCompleteRadioButtonSelected )847 848 EVT_BUTTON( ReGlobalize_Button, MainWindow::OnReGlobalizeButtonClick )849 850 EVT_MENU( wxID_LOAD, MainWindow::OnLoadClick )851 852 EVT_MENU( wxID_SAVE, MainWindow::OnSaveClick )853 854 EVT_MENU( wxID_EXIT, MainWindow::OnExitClick )855 856 EVT_MENU( wxID_OPTIONS, MainWindow::OnOptionsClick )857 858 EVT_MENU( wxID_ABOUT, MainWindow::OnAboutClick )832 EVT_CHECKBOX( SelectAll_Checkbox, MainWindow::OnSelectAllCheckboxClick ) 833 834 EVT_BUTTON( Refresh_Button, MainWindow::OnRefreshButtonClick ) 835 836 EVT_LISTBOX( Mods_CheckboxList1, MainWindow::OnModsCheckboxList1Selected ) 837 EVT_CHECKLISTBOX( Mods_CheckboxList1, MainWindow::OnModsCheckboxList1Toggled ) 838 839 EVT_UPDATE_UI( ID_STATUSBAR, MainWindow::OnStatusbarUpdate ) 840 841 EVT_BUTTON( Install_Button, MainWindow::OnInstallButtonClick ) 842 843 EVT_RADIOBUTTON( Sep_RadioButton, MainWindow::OnSepRadioButtonSelected ) 844 845 EVT_RADIOBUTTON( NoSep_RadioButton, MainWindow::OnNoSepRadioButtonSelected ) 846 847 EVT_RADIOBUTTON( Seperated_RadioButton, MainWindow::OnSeperatedRadioButtonSelected ) 848 849 EVT_RADIOBUTTON( Complete_RadioButton, MainWindow::OnCompleteRadioButtonSelected ) 850 851 EVT_BUTTON( ReGlobalize_Button, MainWindow::OnReGlobalizeButtonClick ) 852 853 EVT_MENU( wxID_LOAD, MainWindow::OnLoadClick ) 854 855 EVT_MENU( wxID_SAVE, MainWindow::OnSaveClick ) 856 857 EVT_MENU( wxID_EXIT, MainWindow::OnExitClick ) 858 859 EVT_MENU( wxID_OPTIONS, MainWindow::OnOptionsClick ) 860 861 EVT_MENU( wxID_ABOUT, MainWindow::OnAboutClick ) 859 862 860 863 ////@end MainWindow event table entries … … 886 889 { 887 890 ////@begin MainWindow creation 888 wxFrame::Create( parent, id, caption, pos, size, style ); 889 890 CreateControls(); 891 SetIcon(GetIconResource(wxT("oni_special.ico"))); 892 Centre(); 893 894 891 wxFrame::Create( parent, id, caption, pos, size, style ); 892 893 CreateControls(); 894 SetIcon(GetIconResource(wxT("aelogosmall.png"))); 895 Centre(); 895 896 ////@end MainWindow creation 896 897 return true; … … 916 917 { 917 918 ////@begin MainWindow member initialisation 918 919 920 921 922 923 924 925 926 927 928 929 930 931 SeparatedRadio = NULL;932 933 919 MainSplitter = NULL; 920 SelectAll = NULL; 921 RefreshButton = NULL; 922 Mods_CheckboxList = NULL; 923 titleText = NULL; 924 creatorText = NULL; 925 descriptionText = NULL; 926 StatusArea = NULL; 927 ProgressBar = NULL; 928 InstallButton = NULL; 929 OptionsPanel = NULL; 930 SepRadio = NULL; 931 NoSepRadio = NULL; 932 SeperatedRadio = NULL; 933 CompleteRadio = NULL; 934 ReglobalizeButton = NULL; 934 935 ////@end MainWindow member initialisation 935 936 … … 946 947 { 947 948 ////@begin MainWindow content construction 948 // Generated by DialogBlocks, 31/05/2009 19:03:55 (unregistered) 949 950 MainWindow* itemFrame1 = this; 951 952 wxMenuBar* menuBar = new wxMenuBar; 953 wxMenu* itemMenu37 = new wxMenu; 954 { 955 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_LOAD, _("&Load Configuration..."), wxEmptyString, wxITEM_NORMAL); 956 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("fileopen.xpm"))); 957 menuItem->SetBitmap(bitmap); 958 itemMenu37->Append(menuItem); 959 } 960 { 961 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_SAVE, _("&Save Configuration..."), wxEmptyString, wxITEM_NORMAL); 962 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("filesaveas.xpm"))); 963 menuItem->SetBitmap(bitmap); 964 itemMenu37->Append(menuItem); 965 } 966 itemMenu37->AppendSeparator(); 967 { 968 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_EXIT, _("Exit"), wxEmptyString, wxITEM_NORMAL); 969 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("quit.xpm"))); 970 menuItem->SetBitmap(bitmap); 971 itemMenu37->Append(menuItem); 972 } 973 menuBar->Append(itemMenu37, _("&File")); 974 wxMenu* itemMenu42 = new wxMenu; 975 itemMenu42->Append(wxID_OPTIONS, _("Show Advanced Options..."), wxEmptyString, wxITEM_CHECK); 976 menuBar->Append(itemMenu42, _("Options")); 977 wxMenu* itemMenu44 = new wxMenu; 978 itemMenu44->Append(wxID_HELP, _("Help"), wxEmptyString, wxITEM_NORMAL); 979 itemMenu44->Append(wxID_ABOUT, _("About"), wxEmptyString, wxITEM_NORMAL); 980 menuBar->Append(itemMenu44, _("Help")); 981 itemFrame1->SetMenuBar(menuBar); 982 983 wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); 984 itemFrame1->SetSizer(itemBoxSizer2); 985 986 MainSplitter = new wxSplitterWindow( itemFrame1, ID_SPLITTERWINDOW, wxDefaultPosition, wxSize(100, 100), wxSP_LIVE_UPDATE|wxNO_BORDER ); 987 MainSplitter->SetMinimumPaneSize(150); 988 MainSplitter->SetName(_T("MainSplitter")); 989 990 wxPanel* itemPanel4 = new wxPanel( MainSplitter, ID_PANEL, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 991 wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL); 992 itemPanel4->SetSizer(itemBoxSizer5); 993 994 wxBoxSizer* itemBoxSizer6 = new wxBoxSizer(wxHORIZONTAL); 995 itemBoxSizer5->Add(itemBoxSizer6, 0, wxGROW|wxALL, 0); 996 SelectAll = new wxCheckBox( itemPanel4, SelectAll_Checkbox, _("Select All/None"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE ); 997 SelectAll->SetValue(false); 998 SelectAll->SetName(_T("SelectAll_Checkbox")); 999 itemBoxSizer6->Add(SelectAll, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); 1000 1001 RefreshButton = new wxBitmapButton( itemPanel4, Refresh_Button, itemFrame1->GetBitmapResource(wxT("redo.xpm")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW ); 1002 RefreshButton->SetName(_T("RefreshButton")); 1003 itemBoxSizer6->Add(RefreshButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5); 1004 1005 wxArrayString Mods_CheckboxListStrings; 1006 Mods_CheckboxList = new wxCheckListBox( itemPanel4, Mods_CheckboxList1, wxDefaultPosition, wxDefaultSize, Mods_CheckboxListStrings, wxLB_HSCROLL ); 1007 Mods_CheckboxList->SetName(_T("Mods_CheckboxList")); 1008 itemBoxSizer5->Add(Mods_CheckboxList, 1, wxGROW|wxALL, 0); 1009 1010 wxPanel* itemPanel10 = new wxPanel( MainSplitter, DescriptionHolder_Panel, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 1011 itemPanel10->SetName(_T("DescriptionHolder_Panel")); 1012 wxBoxSizer* itemBoxSizer11 = new wxBoxSizer(wxVERTICAL); 1013 itemPanel10->SetSizer(itemBoxSizer11); 1014 1015 wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxHORIZONTAL); 1016 itemBoxSizer11->Add(itemBoxSizer12, 0, wxGROW|wxALL, 0); 1017 wxBoxSizer* itemBoxSizer13 = new wxBoxSizer(wxVERTICAL); 1018 itemBoxSizer12->Add(itemBoxSizer13, 1, wxALIGN_CENTER_VERTICAL|wxALL, 0); 1019 titleText = new wxTextCtrl( itemPanel10, Title_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); 1020 titleText->SetName(_T("Title_Text")); 1021 titleText->SetBackgroundColour(wxColour(240, 240, 240)); 1022 itemBoxSizer13->Add(titleText, 1, wxGROW|wxLEFT, 5); 1023 1024 wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxVERTICAL); 1025 itemBoxSizer12->Add(itemBoxSizer15, 1, wxGROW|wxALL, 0); 1026 creatorText = new wxTextCtrl( itemPanel10, Author_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_RIGHT ); 1027 creatorText->SetName(_T("Author_Text")); 1028 creatorText->SetBackgroundColour(wxColour(240, 240, 240)); 1029 itemBoxSizer15->Add(creatorText, 1, wxGROW|wxRIGHT, 5); 1030 1031 wxStaticLine* itemStaticLine17 = new wxStaticLine( itemPanel10, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); 1032 itemStaticLine17->Show(false); 1033 itemBoxSizer11->Add(itemStaticLine17, 0, wxGROW|wxALL, 5); 1034 1035 descriptionText = new wxTextCtrl( itemPanel10, Description_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH|wxTE_AUTO_URL ); 1036 descriptionText->SetName(_T("DescriptionName")); 1037 descriptionText->SetBackgroundColour(wxColour(240, 240, 240)); 1038 itemBoxSizer11->Add(descriptionText, 1, wxGROW|wxLEFT|wxRIGHT, 5); 1039 1040 MainSplitter->SplitVertically(itemPanel4, itemPanel10, 150); 1041 itemBoxSizer2->Add(MainSplitter, 1, wxGROW|wxALL, 0); 1042 1043 StatusArea = new wxStatusBar( itemFrame1, ID_STATUSBAR, 0 ); 1044 StatusArea->SetName(_T("StatusArea")); 1045 StatusArea->SetFieldsCount(1); 1046 StatusArea->SetStatusText(_("Status Area"), 0); 1047 itemBoxSizer2->Add(StatusArea, 0, wxGROW|wxALL, 0); 1048 1049 wxBoxSizer* itemBoxSizer20 = new wxBoxSizer(wxHORIZONTAL); 1050 itemBoxSizer2->Add(itemBoxSizer20, 0, wxGROW|wxALL, 0); 1051 1052 ProgressBar = new wxGauge( itemFrame1, ProgressBar_Gauge, 1000, wxDefaultPosition, wxSize(-1, 30), wxGA_SMOOTH ); 1053 ProgressBar->SetValue(0); 1054 itemBoxSizer20->Add(ProgressBar, 1, wxGROW|wxALL, 0); 1055 1056 InstallButton = new wxButton( itemFrame1, Install_Button, _("Install!"), wxDefaultPosition, wxSize(-1, 30), 0 ); 1057 itemBoxSizer20->Add(InstallButton, 0, wxGROW|wxALL, 0); 1058 1059 wxBoxSizer* itemBoxSizer23 = new wxBoxSizer(wxVERTICAL); 1060 itemBoxSizer2->Add(itemBoxSizer23, 0, wxGROW|wxALL, 0); 1061 1062 OptionsPanel = new wxPanel( itemFrame1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 1063 itemBoxSizer2->Add(OptionsPanel, 0, wxGROW, 0); 1064 1065 wxBoxSizer* itemBoxSizer25 = new wxBoxSizer(wxHORIZONTAL); 1066 OptionsPanel->SetSizer(itemBoxSizer25); 1067 1068 wxBoxSizer* itemBoxSizer26 = new wxBoxSizer(wxVERTICAL); 1069 itemBoxSizer25->Add(itemBoxSizer26, 0, wxGROW|wxALL, 5); 1070 1071 SepRadio = new wxRadioButton( OptionsPanel, Sep_RadioButton, _("Sep"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); 1072 SepRadio->SetValue(false); 1073 if (MainWindow::ShowToolTips()) 1074 SepRadio->SetToolTip(_("For PC Demo and Mac")); 1075 itemBoxSizer26->Add(SepRadio, 0, wxALIGN_LEFT|wxALL, 5); 1076 1077 NoSepRadio = new wxRadioButton( OptionsPanel, NoSep_RadioButton, _("NoSep"), wxDefaultPosition, wxDefaultSize, 0 ); 1078 NoSepRadio->SetValue(false); 1079 if (MainWindow::ShowToolTips()) 1080 NoSepRadio->SetToolTip(_("For PC Retail")); 1081 itemBoxSizer26->Add(NoSepRadio, 0, wxALIGN_LEFT|wxALL, 5); 1082 1083 wxStaticLine* itemStaticLine29 = new wxStaticLine( OptionsPanel, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL ); 1084 itemBoxSizer25->Add(itemStaticLine29, 0, wxGROW|wxALL, 5); 1085 1086 wxBoxSizer* itemBoxSizer30 = new wxBoxSizer(wxVERTICAL); 1087 itemBoxSizer25->Add(itemBoxSizer30, 0, wxGROW|wxALL, 5); 1088 1089 SeparatedRadio = new wxRadioButton( OptionsPanel, Separated_RadioButton, _("Separated Level0"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); 1090 SeparatedRadio->SetValue(false); 1091 SeparatedRadio->SetName(_T("Separated_RadioButton")); 1092 itemBoxSizer30->Add(SeparatedRadio, 0, wxALIGN_LEFT|wxALL, 5); 1093 1094 CompleteRadio = new wxRadioButton( OptionsPanel, Complete_RadioButton, _("Complete Level0"), wxDefaultPosition, wxDefaultSize, 0 ); 1095 CompleteRadio->SetValue(false); 1096 CompleteRadio->SetName(_T("Complete_RadioButton")); 1097 itemBoxSizer30->Add(CompleteRadio, 0, wxALIGN_LEFT|wxALL, 5); 1098 1099 wxStaticLine* itemStaticLine33 = new wxStaticLine( OptionsPanel, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL ); 1100 itemBoxSizer25->Add(itemStaticLine33, 0, wxGROW|wxALL, 5); 1101 1102 wxBoxSizer* itemBoxSizer34 = new wxBoxSizer(wxVERTICAL); 1103 itemBoxSizer25->Add(itemBoxSizer34, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); 1104 1105 ReglobalizeButton = new wxButton( OptionsPanel, ReGlobalize_Button, _("Reglobalize"), wxDefaultPosition, wxDefaultSize, 0 ); 1106 ReglobalizeButton->SetName(_T("Reglobalize_Button")); 1107 itemBoxSizer34->Add(ReglobalizeButton, 0, wxGROW|wxALL, 5); 1108 1109 // Connect events and objects 1110 Mods_CheckboxList->Connect(Mods_CheckboxList1, wxEVT_CREATE, wxWindowCreateEventHandler(MainWindow::ModList_OnCreate), NULL, this); 949 MainWindow* itemFrame1 = this; 950 951 wxMenuBar* menuBar = new wxMenuBar; 952 wxMenu* itemMenu37 = new wxMenu; 953 { 954 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_LOAD, _("&Load Configuration..."), wxEmptyString, wxITEM_NORMAL); 955 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("fileopen.xpm"))); 956 menuItem->SetBitmap(bitmap); 957 itemMenu37->Append(menuItem); 958 } 959 { 960 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_SAVE, _("&Save Configuration..."), wxEmptyString, wxITEM_NORMAL); 961 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("filesaveas.xpm"))); 962 menuItem->SetBitmap(bitmap); 963 itemMenu37->Append(menuItem); 964 } 965 itemMenu37->AppendSeparator(); 966 { 967 wxMenuItem* menuItem = new wxMenuItem(itemMenu37, wxID_EXIT, _("Exit"), wxEmptyString, wxITEM_NORMAL); 968 wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("quit.xpm"))); 969 menuItem->SetBitmap(bitmap); 970 itemMenu37->Append(menuItem); 971 } 972 menuBar->Append(itemMenu37, _("&File")); 973 wxMenu* itemMenu42 = new wxMenu; 974 itemMenu42->Append(wxID_OPTIONS, _("Show Advanced Options..."), wxEmptyString, wxITEM_CHECK); 975 menuBar->Append(itemMenu42, _("Options")); 976 wxMenu* itemMenu44 = new wxMenu; 977 itemMenu44->Append(wxID_ABOUT, _("About"), wxEmptyString, wxITEM_NORMAL); 978 menuBar->Append(itemMenu44, _("Help")); 979 itemFrame1->SetMenuBar(menuBar); 980 981 wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); 982 itemFrame1->SetSizer(itemBoxSizer2); 983 984 MainSplitter = new wxSplitterWindow( itemFrame1, ID_SPLITTERWINDOW, wxDefaultPosition, wxSize(100, 100), wxSP_LIVE_UPDATE|wxNO_BORDER ); 985 MainSplitter->SetMinimumPaneSize(1); 986 MainSplitter->SetName(_T("MainSplitter")); 987 988 wxPanel* itemPanel4 = new wxPanel( MainSplitter, ID_PANEL, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 989 wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL); 990 itemPanel4->SetSizer(itemBoxSizer5); 991 992 wxBoxSizer* itemBoxSizer6 = new wxBoxSizer(wxHORIZONTAL); 993 itemBoxSizer5->Add(itemBoxSizer6, 0, wxGROW|wxALL, 0); 994 SelectAll = new wxCheckBox( itemPanel4, SelectAll_Checkbox, _("Select All/None"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE ); 995 SelectAll->SetValue(false); 996 SelectAll->SetName(_T("SelectAll_Checkbox")); 997 itemBoxSizer6->Add(SelectAll, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); 998 999 RefreshButton = new wxBitmapButton( itemPanel4, Refresh_Button, itemFrame1->GetBitmapResource(wxT("undo.xpm")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW ); 1000 RefreshButton->SetName(_T("RefreshButton")); 1001 itemBoxSizer6->Add(RefreshButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM, 5); 1002 1003 wxArrayString Mods_CheckboxListStrings; 1004 Mods_CheckboxList = new wxCheckListBox( itemPanel4, Mods_CheckboxList1, wxDefaultPosition, wxDefaultSize, Mods_CheckboxListStrings, wxLB_HSCROLL ); 1005 Mods_CheckboxList->SetName(_T("Mods_CheckboxList")); 1006 itemBoxSizer5->Add(Mods_CheckboxList, 1, wxGROW|wxALL, 0); 1007 1008 wxPanel* itemPanel10 = new wxPanel( MainSplitter, DescriptionHolder_Panel, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 1009 itemPanel10->SetName(_T("DescriptionHolder_Panel")); 1010 wxBoxSizer* itemBoxSizer11 = new wxBoxSizer(wxVERTICAL); 1011 itemPanel10->SetSizer(itemBoxSizer11); 1012 1013 wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxHORIZONTAL); 1014 itemBoxSizer11->Add(itemBoxSizer12, 0, wxGROW|wxALL, 0); 1015 wxBoxSizer* itemBoxSizer13 = new wxBoxSizer(wxVERTICAL); 1016 itemBoxSizer12->Add(itemBoxSizer13, 1, wxALIGN_CENTER_VERTICAL|wxALL, 0); 1017 titleText = new wxTextCtrl( itemPanel10, Title_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); 1018 titleText->SetName(_T("Title_Text")); 1019 titleText->SetBackgroundColour(wxColour(240, 240, 240)); 1020 itemBoxSizer13->Add(titleText, 1, wxGROW|wxLEFT, 5); 1021 1022 wxBoxSizer* itemBoxSizer15 = new wxBoxSizer(wxVERTICAL); 1023 itemBoxSizer12->Add(itemBoxSizer15, 1, wxGROW|wxALL, 0); 1024 creatorText = new wxTextCtrl( itemPanel10, Author_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_RIGHT ); 1025 creatorText->SetName(_T("Author_Text")); 1026 creatorText->SetBackgroundColour(wxColour(240, 240, 240)); 1027 itemBoxSizer15->Add(creatorText, 1, wxGROW|wxRIGHT, 5); 1028 1029 wxStaticLine* itemStaticLine17 = new wxStaticLine( itemPanel10, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); 1030 itemStaticLine17->Show(false); 1031 itemBoxSizer11->Add(itemStaticLine17, 0, wxGROW|wxALL, 5); 1032 1033 descriptionText = new wxTextCtrl( itemPanel10, Description_Text, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH|wxTE_RICH2 ); 1034 descriptionText->SetName(_T("DescriptionName")); 1035 descriptionText->SetBackgroundColour(wxColour(240, 240, 240)); 1036 itemBoxSizer11->Add(descriptionText, 1, wxGROW|wxLEFT|wxRIGHT, 5); 1037 1038 MainSplitter->SplitVertically(itemPanel4, itemPanel10, 200); 1039 itemBoxSizer2->Add(MainSplitter, 1, wxGROW|wxALL, 0); 1040 1041 StatusArea = new wxStatusBar( itemFrame1, ID_STATUSBAR, 0 ); 1042 StatusArea->SetName(_T("StatusArea")); 1043 StatusArea->SetFieldsCount(1); 1044 StatusArea->SetStatusText(_("AE Installer v1.0"), 0); 1045 itemBoxSizer2->Add(StatusArea, 0, wxGROW|wxALL, 0); 1046 1047 wxBoxSizer* itemBoxSizer20 = new wxBoxSizer(wxHORIZONTAL); 1048 itemBoxSizer2->Add(itemBoxSizer20, 0, wxGROW|wxALL, 0); 1049 1050 ProgressBar = new wxGauge( itemFrame1, ProgressBar_Gauge, 1000, wxDefaultPosition, wxDefaultSize, wxGA_SMOOTH ); 1051 ProgressBar->SetValue(0); 1052 itemBoxSizer20->Add(ProgressBar, 1, wxGROW|wxALL, 0); 1053 1054 InstallButton = new wxButton( itemFrame1, Install_Button, _("Install!"), wxDefaultPosition, wxDefaultSize, 0 ); 1055 itemBoxSizer20->Add(InstallButton, 0, wxGROW|wxALL, 0); 1056 1057 wxBoxSizer* itemBoxSizer23 = new wxBoxSizer(wxVERTICAL); 1058 itemBoxSizer2->Add(itemBoxSizer23, 0, wxGROW|wxALL, 0); 1059 1060 OptionsPanel = new wxPanel( itemFrame1, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); 1061 itemBoxSizer2->Add(OptionsPanel, 0, wxGROW, 0); 1062 1063 wxBoxSizer* itemBoxSizer25 = new wxBoxSizer(wxHORIZONTAL); 1064 OptionsPanel->SetSizer(itemBoxSizer25); 1065 1066 wxBoxSizer* itemBoxSizer26 = new wxBoxSizer(wxVERTICAL); 1067 itemBoxSizer25->Add(itemBoxSizer26, 0, wxGROW|wxALL, 5); 1068 1069 SepRadio = new wxRadioButton( OptionsPanel, Sep_RadioButton, _("Sep"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); 1070 SepRadio->SetValue(false); 1071 if (MainWindow::ShowToolTips()) 1072 SepRadio->SetToolTip(_("For PC Demo and Mac")); 1073 itemBoxSizer26->Add(SepRadio, 0, wxALIGN_LEFT|wxALL, 5); 1074 1075 NoSepRadio = new wxRadioButton( OptionsPanel, NoSep_RadioButton, _("NoSep"), wxDefaultPosition, wxDefaultSize, 0 ); 1076 NoSepRadio->SetValue(false); 1077 if (MainWindow::ShowToolTips()) 1078 NoSepRadio->SetToolTip(_("For PC Retail")); 1079 itemBoxSizer26->Add(NoSepRadio, 0, wxALIGN_LEFT|wxALL, 5); 1080 1081 wxStaticLine* itemStaticLine29 = new wxStaticLine( OptionsPanel, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL ); 1082 itemBoxSizer25->Add(itemStaticLine29, 0, wxGROW|wxALL, 5); 1083 1084 wxBoxSizer* itemBoxSizer30 = new wxBoxSizer(wxVERTICAL); 1085 itemBoxSizer25->Add(itemBoxSizer30, 0, wxGROW|wxALL, 5); 1086 1087 SeperatedRadio = new wxRadioButton( OptionsPanel, Seperated_RadioButton, _("Separated Level0"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); 1088 SeperatedRadio->SetValue(false); 1089 SeperatedRadio->SetName(_T("Seperated_RadioButton")); 1090 itemBoxSizer30->Add(SeperatedRadio, 0, wxALIGN_LEFT|wxALL, 5); 1091 1092 CompleteRadio = new wxRadioButton( OptionsPanel, Complete_RadioButton, _("Complete Level0"), wxDefaultPosition, wxDefaultSize, 0 ); 1093 CompleteRadio->SetValue(false); 1094 CompleteRadio->SetName(_T("Complete_RadioButton")); 1095 itemBoxSizer30->Add(CompleteRadio, 0, wxALIGN_LEFT|wxALL, 5); 1096 1097 wxStaticLine* itemStaticLine33 = new wxStaticLine( OptionsPanel, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL ); 1098 itemBoxSizer25->Add(itemStaticLine33, 0, wxGROW|wxALL, 5); 1099 1100 wxBoxSizer* itemBoxSizer34 = new wxBoxSizer(wxVERTICAL); 1101 itemBoxSizer25->Add(itemBoxSizer34, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); 1102 1103 ReglobalizeButton = new wxButton( OptionsPanel, ReGlobalize_Button, _("Reglobalize"), wxDefaultPosition, wxDefaultSize, 0 ); 1104 ReglobalizeButton->SetName(_T("Reglobalize_Button")); 1105 itemBoxSizer34->Add(ReglobalizeButton, 0, wxGROW|wxALL, 5); 1106 1107 // Connect events and objects 1108 Mods_CheckboxList->Connect(Mods_CheckboxList1, wxEVT_CREATE, wxWindowCreateEventHandler(MainWindow::ModList_OnCreate), NULL, this); 1111 1109 ////@end MainWindow content construction 1112 1110 1113 1111 if ( exists( "../../GameDataFolder/level0_Final.sep" ) ) { 1114 st atic_cast<string>("-import:sep");1112 strImportOption = "-import:sep"; 1115 1113 splitInstances = NOT_SPLIT; 1116 1114 } 1117 1115 else { 1118 st atic_cast<string>("-import:nosep");1116 strImportOption = "-import:nosep"; 1119 1117 splitInstances = SPLIT; 1120 1118 } … … 1131 1129 TheProgressBar = ProgressBar; 1132 1130 OptionsPanel->Hide(); 1133 if(splitInstances == SPLIT) Sep aratedRadio->SetValue(true);1131 if(splitInstances == SPLIT) SeperatedRadio->SetValue(true); 1134 1132 else CompleteRadio->SetValue(true); 1135 1133 … … 1203 1201 // Bitmap retrieval 1204 1202 ////@begin MainWindow bitmap retrieval 1205 1206 if (name == _T("redo.xpm"))1207 1208 wxBitmap bitmap(redo_xpm);1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1203 wxUnusedVar(name); 1204 if (name == _T("undo.xpm")) 1205 { 1206 wxBitmap bitmap( undo_xpm); 1207 return bitmap; 1208 } 1209 else if (name == _T("fileopen.xpm")) 1210 { 1211 wxBitmap bitmap( fileopen_xpm); 1212 return bitmap; 1213 } 1214 else if (name == _T("filesaveas.xpm")) 1215 { 1216 wxBitmap bitmap( filesaveas_xpm); 1217 return bitmap; 1218 } 1219 else if (name == _T("quit.xpm")) 1220 { 1221 wxBitmap bitmap( quit_xpm); 1222 return bitmap; 1223 } 1224 return wxNullBitmap; 1227 1225 ////@end MainWindow bitmap retrieval 1228 1226 } … … 1237 1235 // Icon retrieval 1238 1236 ////@begin MainWindow icon retrieval 1239 1240 if (name == _T("oni_special.ico"))1241 1242 // wxIcon icon(_T("oni_special.ico"), wxBITMAP_TYPE_ICO);1243 //return icon;1244 1245 1237 wxUnusedVar(name); 1238 if (name == _T("aelogosmall.png")) 1239 { 1240 wxIcon icon(aelogosmall_xpm); 1241 return icon; 1242 } 1243 return wxNullIcon; 1246 1244 ////@end MainWindow icon retrieval 1247 1245 } … … 1293 1291 if (!event.GetInt() ) { 1294 1292 OptionsPanel->Hide(); 1293 1295 1294 this->SetSize(this->GetRect().GetWidth(), this->GetRect().GetHeight()-OptionsPanel->GetRect().GetHeight());} 1296 1295 else { … … 1388 1387 { 1389 1388 ////@begin wxEVT_UPDATE_UI event handler for ID_STATUSBAR in MainWindow. 1390 1391 1389 // Before editing this code, remove the block markers. 1390 event.Skip(); 1392 1391 ////@end wxEVT_UPDATE_UI event handler for ID_STATUSBAR in MainWindow. 1393 1392 } … … 1401 1400 { 1402 1401 ////@begin wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT in MainWindow. 1403 1404 1405 1406 1402 // Before editing this code, remove the block markers. 1403 About* window = new About(this); 1404 int returnValue = window->ShowModal(); 1405 window->Destroy(); 1407 1406 ////@end wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT in MainWindow. 1408 1407 } … … 1432 1431 * wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Separated_RadioButton 1433 1432 */ 1434 1435 void MainWindow::OnSeparatedRadioButtonSelected( wxCommandEvent& event )1436 {1437 splitInstances = SPLIT;1438 1439 }1440 1441 1433 1442 1434 /* … … 1601 1593 }*/ 1602 1594 1595 1596 /* 1597 * wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton 1598 */ 1599 1600 void MainWindow::OnSeperatedRadioButtonSelected( wxCommandEvent& event ) 1601 { 1602 splitInstances = SPLIT; 1603 } 1604 -
AE/Installer/trunk/source/main_window.h
r355 r385 57 57 #define Sep_RadioButton 10013 58 58 #define NoSep_RadioButton 10014 59 #define Sep arated_RadioButton 1001559 #define Seperated_RadioButton 10015 60 60 #define Complete_RadioButton 10016 61 61 #define ReGlobalize_Button 10018 … … 65 65 #define SYMBOL_MAINWINDOW_TITLE _("Installer") 66 66 #define SYMBOL_MAINWINDOW_IDNAME ID_MAINWINDOW 67 #define SYMBOL_MAINWINDOW_SIZE wxSize( 400, 500)67 #define SYMBOL_MAINWINDOW_SIZE wxSize(540, 500) 68 68 #define SYMBOL_MAINWINDOW_POSITION wxDefaultPosition 69 69 ////@end control identifiers … … 128 128 void OnNoSepRadioButtonSelected( wxCommandEvent& event ); 129 129 130 /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Sep arated_RadioButton131 void OnSep aratedRadioButtonSelected( wxCommandEvent& event );130 /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton 131 void OnSeperatedRadioButtonSelected( wxCommandEvent& event ); 132 132 133 133 /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Complete_RadioButton … … 180 180 wxRadioButton* SepRadio; 181 181 wxRadioButton* NoSepRadio; 182 wxRadioButton* Sep aratedRadio;182 wxRadioButton* SeperatedRadio; 183 183 wxRadioButton* CompleteRadio; 184 184 wxButton* ReglobalizeButton;
Note:
See TracChangeset
for help on using the changeset viewer.