Finish re{writing} the MASS manager.
This commit is contained in:
parent
d7fa2abafb
commit
a06ea2caa4
10 changed files with 1231 additions and 872 deletions
|
@ -51,6 +51,8 @@ add_executable(wxMASSManager WIN32
|
|||
GUI/NameChangeDialog.cpp
|
||||
GUI/EvtNameChangeDialog.h
|
||||
GUI/EvtNameChangeDialog.cpp
|
||||
Mass/Mass.h
|
||||
Mass/Mass.cpp
|
||||
MassBuilderManager/MassBuilderManager.h
|
||||
MassBuilderManager/MassBuilderManager.cpp
|
||||
MassManager/MassManager.h
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include <Corrade/version.h>
|
||||
|
||||
#if !(CORRADE_VERSION_YEAR * 100 + CORRADE_VERSION_MONTH >= 202006)
|
||||
#error This application requires Corrade 2020.06 or later to build.
|
||||
#endif
|
||||
|
||||
#include <wx/busyinfo.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/numdlg.h>
|
||||
|
@ -21,27 +28,50 @@
|
|||
#include <wx/scrolwin.h>
|
||||
|
||||
#include <Corrade/Containers/Optional.h>
|
||||
#include <Corrade/Utility/DebugStl.h>
|
||||
#include <Corrade/Utility/Directory.h>
|
||||
#include <Corrade/Utility/FormatStl.h>
|
||||
|
||||
#include "EvtNameChangeDialog.h"
|
||||
|
||||
#include "EvtMainFrame.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
||||
EvtMainFrame::EvtMainFrame(wxWindow* parent): MainFrame(parent) {
|
||||
EvtMainFrame::EvtMainFrame(wxWindow* parent):
|
||||
MainFrame(parent),
|
||||
_profileManager{_mbManager.saveDirectory()}
|
||||
{
|
||||
SetIcon(wxIcon("MAINICON"));
|
||||
|
||||
warningMessage(wxString::FromUTF8("Before you start using this app, a few things you should know:\n\n"
|
||||
"For this application to work properly, Steam Cloud syncing needs to be disabled for the game.\nTo disable it, right-click the game in your Steam library, click \"Properties\", go to the \"Updates\" tab, and uncheck \"Enable Steam Cloud synchronization for M.A.S.S. Builder\".\n\n"
|
||||
"DISCLAIMER: The developer of this application (Guillaume Jacquemin) isn't associated with Vermillion Digital, and both parties cannot be held responsible for data loss or corruption this app might cause. PLEASE USE AT YOUR OWN RISK!\n\n"
|
||||
"Last but not least, this application is released under the terms of the GNU General Public Licence version 3. Please see the COPYING file for more details."));
|
||||
//warningMessage(wxString::FromUTF8("Before you start using this app, a few things you should know:\n\n"
|
||||
// "For this application to work properly, Steam Cloud syncing needs to be disabled for the game.\nTo disable it, right-click the game in your Steam library, click \"Properties\", go to the \"Updates\" tab, and uncheck \"Enable Steam Cloud synchronization for M.A.S.S. Builder\".\n\n"
|
||||
// "DISCLAIMER: The developer of this application (Guillaume Jacquemin) isn't associated with Vermillion Digital, and both parties cannot be held responsible for data loss or corruption this app might cause. PLEASE USE AT YOUR OWN RISK!\n\n"
|
||||
// "Last but not least, this application is released under the terms of the GNU General Public Licence version 3. Please see the COPYING file for more details."));
|
||||
|
||||
if(!_manager.ready()) {
|
||||
errorMessage("There was an issue initialising the manager:\n\n" + _manager.lastError());
|
||||
if(!_mbManager.ready()) {
|
||||
errorMessage("There was an error initialising the manager:\n\n" + _mbManager.lastError());
|
||||
return;
|
||||
}
|
||||
|
||||
if(!_profileManager.ready()) {
|
||||
errorMessage("There was an error initialising the manager:\n\n" + _profileManager.lastError());
|
||||
return;
|
||||
}
|
||||
|
||||
for(const Profile& p : _profileManager.profiles()) {
|
||||
if(p.valid()) {
|
||||
_profileChoice->Append(wxString::Format("%s%s", p.companyName(), p.type() == ProfileType::Demo ? " (Demo)" : ""));
|
||||
}
|
||||
}
|
||||
|
||||
_profileManager.setProfile(0);
|
||||
_profileChoice->SetSelection(0);
|
||||
|
||||
_massManager.emplace(_profileManager.profileDirectory(),
|
||||
_profileManager.currentProfile()->steamId(),
|
||||
_profileManager.currentProfile()->type() == ProfileType::Demo);
|
||||
|
||||
updateProfileStats();
|
||||
|
||||
initialiseListView();
|
||||
|
||||
isGameRunning();
|
||||
|
@ -52,75 +82,95 @@ EvtMainFrame::EvtMainFrame(wxWindow* parent): MainFrame(parent) {
|
|||
_installedListView->Connect(wxEVT_LIST_COL_BEGIN_DRAG, wxListEventHandler(EvtMainFrame::listColumnDragEvent), nullptr, this);
|
||||
|
||||
_watcher.Connect(wxEVT_FSWATCHER, wxFileSystemWatcherEventHandler(EvtMainFrame::fileUpdateEvent), nullptr, this);
|
||||
_watcher.AddTree(wxFileName(Utility::Directory::toNativeSeparators(_manager.saveDirectory()), wxPATH_WIN),
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE|wxFSW_EVENT_MODIFY|wxFSW_EVENT_RENAME, wxString::Format("*%s.sav", _manager.steamId()));
|
||||
_watcher.AddTree(wxFileName{Utility::Directory::toNativeSeparators(_massManager->saveDirectory()), wxPATH_WIN},
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE|wxFSW_EVENT_MODIFY|wxFSW_EVENT_RENAME,
|
||||
wxString::Format("%s*%s.sav", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()));
|
||||
|
||||
if(_manager.hasDemoUnits()) {
|
||||
int result = wxMessageBox("M.A.S.S.es from the demo version of the game were found.\n\n"
|
||||
"Do you want to move them to the staging area ?\n"
|
||||
"WARNING: M.A.S.S.es from the demo version will keep parts you haven't unlocked in the main game, so you might get an advantage if you haven't progressed to that point.",
|
||||
"Question", wxCENTRE|wxYES_NO|wxICON_QUESTION, this);
|
||||
|
||||
if(result == wxYES) {
|
||||
_manager.addDemoUnitsToStaging();
|
||||
}
|
||||
auto staged_masses = _massManager->stagedMasses();
|
||||
for(const auto& s : staged_masses) {
|
||||
_stagingList->Append(wxString::Format("%s (%s)", s.second, s.first));
|
||||
}
|
||||
|
||||
std::vector<std::string> v = _manager.initialiseStagingArea();
|
||||
for(const std::string& s : v) {
|
||||
_stagingList->Append(s);
|
||||
}
|
||||
|
||||
_watcher.AddTree(wxFileName(Utility::Directory::toNativeSeparators(_manager.stagingAreaDirectory()), wxPATH_WIN),
|
||||
_watcher.AddTree(wxFileName(Utility::Directory::toNativeSeparators(_massManager->stagingAreaDirectory()), wxPATH_WIN),
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE|wxFSW_EVENT_MODIFY|wxFSW_EVENT_RENAME, "*.sav");
|
||||
|
||||
_gameCheckTimer.Start(3000);
|
||||
|
||||
if(!_manager.findScreenshotDirectory()) {
|
||||
warningMessage("Screenshot manager not ready:\n\n" + _manager.lastError());
|
||||
_screenshotsPanel->Disable();
|
||||
return;
|
||||
}
|
||||
|
||||
_manager.loadScreenshots();
|
||||
|
||||
_watcher.AddTree(wxFileName(Utility::Directory::toNativeSeparators(_manager.screenshotDirectory()), wxPATH_WIN),
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE, "*.png"); // Not monitoring wxFSW_EVENT_{MODIFY,RENAME}, because they're a massive pain to handle. Ugh.
|
||||
_gameCheckTimer.Start(2000);
|
||||
|
||||
_screenshotsList->SetImageList(&_screenshotThumbs, wxIMAGE_LIST_NORMAL);
|
||||
|
||||
updateScreenshotList();
|
||||
}
|
||||
|
||||
EvtMainFrame::~EvtMainFrame() {
|
||||
_watcher.RemoveAll();
|
||||
_watcher.Disconnect(wxEVT_FSWATCHER, wxFileSystemWatcherEventHandler(EvtMainFrame::fileUpdateEvent), nullptr, this);
|
||||
|
||||
_installedListView->Disconnect(wxEVT_LIST_ITEM_SELECTED, wxListEventHandler(EvtMainFrame::installedSelectionEvent), nullptr, this);
|
||||
_installedListView->Disconnect(wxEVT_LIST_ITEM_DESELECTED, wxListEventHandler(EvtMainFrame::installedSelectionEvent), nullptr, this);
|
||||
_installedListView->Disconnect(wxEVT_LIST_BEGIN_DRAG, wxListEventHandler(EvtMainFrame::listColumnDragEvent), nullptr, this);
|
||||
_installedListView->Disconnect(wxEVT_LIST_COL_BEGIN_DRAG, wxListEventHandler(EvtMainFrame::listColumnDragEvent), nullptr, this);
|
||||
_watcher.Disconnect(wxEVT_FSWATCHER, wxFileSystemWatcherEventHandler(EvtMainFrame::fileUpdateEvent), nullptr, this);
|
||||
}
|
||||
|
||||
bool EvtMainFrame::ready() {
|
||||
return _manager.ready();
|
||||
return _mbManager.ready() && _profileManager.ready();
|
||||
}
|
||||
|
||||
void EvtMainFrame::profileSelectionEvent(wxCommandEvent&) {
|
||||
_watcher.Remove(wxFileName{Utility::Directory::toNativeSeparators(Utility::Directory::path(_massManager->saveDirectory())) + "\\", wxPATH_WIN});
|
||||
// Yeah, I really need that `+ "\\"`, because wxWidgets is *that* stupid.
|
||||
int selection = _profileChoice->GetSelection();
|
||||
if(_profileManager.setProfile(selection)) {
|
||||
_massManager.emplace(_profileManager.profileDirectory(),
|
||||
_profileManager.currentProfile()->steamId(),
|
||||
_profileManager.currentProfile()->type() == ProfileType::Demo);
|
||||
|
||||
_watcher.AddTree(wxFileName{Utility::Directory::toNativeSeparators(_massManager->saveDirectory()), wxPATH_WIN},
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE|wxFSW_EVENT_MODIFY|wxFSW_EVENT_RENAME,
|
||||
wxString::Format("%s*%s.sav", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()));
|
||||
|
||||
updateProfileStats();
|
||||
refreshListView();
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::backupSelectedProfileEvent(wxCommandEvent&) {
|
||||
const static std::string error_prefix = "Backup failed:\n\n";
|
||||
|
||||
wxString current_timestamp = wxDateTime::Now().Format("%Y-%m-%d_%H-%M-%S");
|
||||
|
||||
wxFileDialog save_dialog{this, "Choose output location", _massManager->saveDirectory(),
|
||||
wxString::Format("backup_%s%s_%s_%s.zip",
|
||||
_profileManager.currentProfile()->type() == ProfileType::Demo ? "demo_" : "",
|
||||
_profileManager.currentProfile()->companyName(),
|
||||
_profileManager.currentProfile()->steamId(),
|
||||
current_timestamp),
|
||||
"Zip archive (*.zip)|*.zip",
|
||||
wxFD_SAVE|wxFD_OVERWRITE_PROMPT};
|
||||
|
||||
if(save_dialog.ShowModal() == wxID_CANCEL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!_profileManager.currentProfile()->backup(save_dialog.GetPath().ToStdString())) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::importMassEvent(wxCommandEvent&) {
|
||||
const static std::string error_prefix = "Importing failed:\n\n";
|
||||
|
||||
long selected_hangar = _installedListView->GetFirstSelected();
|
||||
HangarState hangar_state = _manager.hangarState(selected_hangar);
|
||||
MassState mass_state = _massManager->massState(selected_hangar);
|
||||
|
||||
int staged_selection = _stagingList->GetSelection();
|
||||
|
||||
int confirmation;
|
||||
|
||||
if(hangar_state == HangarState::Filled) {
|
||||
if(mass_state == MassState::Valid) {
|
||||
confirmation = wxMessageBox(wxString::Format("Hangar %.2d is already occupied by the M.A.S.S. named \"%s\". Are you sure you want to import the M.A.S.S. named \"%s\" to this hangar ?",
|
||||
selected_hangar + 1, *(_manager.massName(selected_hangar)), _manager.stagedMassName(staged_selection)),
|
||||
selected_hangar + 1, _massManager->massName(selected_hangar), _massManager->stagedMassName(staged_selection)),
|
||||
"Question", wxYES_NO|wxCENTRE|wxICON_QUESTION, this);
|
||||
}
|
||||
else {
|
||||
confirmation = wxMessageBox(wxString::Format("Are you sure you want to import the M.A.S.S. named \"%s\" to hangar %.2d ?", _manager.stagedMassName(staged_selection), selected_hangar + 1),
|
||||
confirmation = wxMessageBox(wxString::Format("Are you sure you want to import the M.A.S.S. named \"%s\" to hangar %.2d ?", _massManager->stagedMassName(staged_selection), selected_hangar + 1),
|
||||
"Question", wxYES_NO|wxCENTRE|wxICON_QUESTION, this);
|
||||
}
|
||||
|
||||
|
@ -128,13 +178,13 @@ void EvtMainFrame::importMassEvent(wxCommandEvent&) {
|
|||
return;
|
||||
}
|
||||
|
||||
switch(_manager.gameState()) {
|
||||
switch(_mbManager.gameState()) {
|
||||
case GameState::Unknown:
|
||||
errorMessage(error_prefix + "For security reasons, importing is disabled if the game's status is unknown.");
|
||||
break;
|
||||
case GameState::NotRunning:
|
||||
if(!_manager.importMass(staged_selection, selected_hangar)) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
if(!_massManager->importMass(staged_selection, selected_hangar)) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
break;
|
||||
case GameState::Running:
|
||||
|
@ -148,8 +198,8 @@ void EvtMainFrame::exportMassEvent(wxCommandEvent&) {
|
|||
|
||||
long slot = _installedListView->GetFirstSelected();
|
||||
|
||||
if(!_manager.exportMass(slot)) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
if(!_massManager->exportMass(slot)) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,20 +212,20 @@ void EvtMainFrame::moveMassEvent(wxCommandEvent&) {
|
|||
"- If the destination hangar is the same as the source, nothing will happen.\n"
|
||||
"- If the destination already contains a M.A.S.S., the two will be swapped.\n"
|
||||
"- If the destination contains invalid data, it will be cleared first.",
|
||||
*(_manager.massName(source_slot))),
|
||||
_massManager->massName(source_slot)),
|
||||
"Slot", "Choose a slot", source_slot + 1, 1, 32, this);
|
||||
|
||||
if(choice == -1 || choice == source_slot) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch(_manager.gameState()) {
|
||||
switch(_mbManager.gameState()) {
|
||||
case GameState::Unknown:
|
||||
errorMessage(error_prefix + "For security reasons, moving a M.A.S.S. is disabled if the game's status is unknown.");
|
||||
break;
|
||||
case GameState::NotRunning:
|
||||
if(!_manager.moveMass(source_slot, choice - 1)) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
if(!_massManager->moveMass(source_slot, choice - 1)) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
break;
|
||||
case GameState::Running:
|
||||
|
@ -192,13 +242,13 @@ void EvtMainFrame::deleteMassEvent(wxCommandEvent&) {
|
|||
return;
|
||||
}
|
||||
|
||||
switch(_manager.gameState()) {
|
||||
switch(_mbManager.gameState()) {
|
||||
case GameState::Unknown:
|
||||
errorMessage(error_prefix + "For security reasons, deleting a M.A.S.S. is disabled if the game's status is unknown.");
|
||||
break;
|
||||
case GameState::NotRunning:
|
||||
if(!_manager.deleteMass(_installedListView->GetFirstSelected())) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
if(!_massManager->deleteMass(_installedListView->GetFirstSelected())) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
break;
|
||||
case GameState::Running:
|
||||
|
@ -211,17 +261,17 @@ void EvtMainFrame::renameMassEvent(wxCommandEvent&) {
|
|||
const static std::string error_prefix = "Rename failed:\n\n";
|
||||
|
||||
EvtNameChangeDialog dialog{this};
|
||||
dialog.setName(*(_manager.massName(_installedListView->GetFirstSelected())));
|
||||
dialog.setName(_massManager->massName(_installedListView->GetFirstSelected()));
|
||||
int result = dialog.ShowModal();
|
||||
|
||||
if(result == wxID_OK) {
|
||||
switch(_manager.gameState()) {
|
||||
switch(_mbManager.gameState()) {
|
||||
case GameState::Unknown:
|
||||
errorMessage(error_prefix + "For security reasons, renaming a M.A.S.S. is disabled if the game's status is unknown.");
|
||||
break;
|
||||
case GameState::NotRunning:
|
||||
if(!_manager.renameMass(_installedListView->GetFirstSelected(), dialog.getName())) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
if(!_massManager->renameMass(_installedListView->GetFirstSelected(), dialog.getName())) {
|
||||
errorMessage(error_prefix + _massManager->lastError());
|
||||
}
|
||||
break;
|
||||
case GameState::Running:
|
||||
|
@ -231,26 +281,8 @@ void EvtMainFrame::renameMassEvent(wxCommandEvent&) {
|
|||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::backupSavesEvent(wxCommandEvent&) {
|
||||
const static std::string error_prefix = "Backup failed:\n\n";
|
||||
|
||||
wxString current_timestamp = wxDateTime::Now().Format("%Y-%m-%d_%H-%M-%S");
|
||||
|
||||
wxFileDialog save_dialog{this, "Choose output location", _manager.saveDirectory(),
|
||||
wxString::Format("backup_%s_%s.zip", _manager.steamId(), current_timestamp), "Zip archive (*zip)|*zip",
|
||||
wxFD_SAVE|wxFD_OVERWRITE_PROMPT};
|
||||
|
||||
if(save_dialog.ShowModal() == wxID_CANCEL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!_manager.backupSaves(save_dialog.GetPath().ToStdString())) {
|
||||
errorMessage(error_prefix + _manager.lastError());
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::openSaveDirEvent(wxCommandEvent&) {
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_manager.saveDirectory()));
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_massManager->saveDirectory()));
|
||||
}
|
||||
|
||||
void EvtMainFrame::stagingSelectionEvent(wxCommandEvent&) {
|
||||
|
@ -266,12 +298,12 @@ void EvtMainFrame::deleteStagedEvent(wxCommandEvent&) {
|
|||
int selection = _stagingList->GetSelection();
|
||||
|
||||
if(selection != wxNOT_FOUND) {
|
||||
_manager.deleteStagedMass(selection);
|
||||
_massManager->deleteStagedMass(selection);
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::openStagingDirEvent(wxCommandEvent&) {
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_manager.stagingAreaDirectory()));
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_massManager->stagingAreaDirectory()));
|
||||
}
|
||||
|
||||
void EvtMainFrame::installedSelectionEvent(wxListEvent&) {
|
||||
|
@ -287,22 +319,22 @@ void EvtMainFrame::screenshotListSelectionEvent(wxListEvent&) {
|
|||
}
|
||||
|
||||
void EvtMainFrame::screenshotFilenameSortingEvent(wxCommandEvent&) {
|
||||
_manager.sortScreenshots(SortType::Filename);
|
||||
_screenshotManager->sortScreenshots(SortType::Filename);
|
||||
updateScreenshotList();
|
||||
}
|
||||
|
||||
void EvtMainFrame::screenshotCreationDateSortingEvent(wxCommandEvent&) {
|
||||
_manager.sortScreenshots(SortType::CreationDate);
|
||||
_screenshotManager->sortScreenshots(SortType::CreationDate);
|
||||
updateScreenshotList();
|
||||
}
|
||||
|
||||
void EvtMainFrame::screenshotAscendingSortingEvent(wxCommandEvent&) {
|
||||
_manager.sortScreenshots(SortOrder::Ascending);
|
||||
_screenshotManager->sortScreenshots(SortOrder::Ascending);
|
||||
updateScreenshotList();
|
||||
}
|
||||
|
||||
void EvtMainFrame::screenshotDescendingSortingEvent(wxCommandEvent&) {
|
||||
_manager.sortScreenshots(SortOrder::Descending);
|
||||
_screenshotManager->sortScreenshots(SortOrder::Descending);
|
||||
updateScreenshotList();
|
||||
}
|
||||
|
||||
|
@ -323,12 +355,22 @@ void EvtMainFrame::deleteScreenshotEvent(wxCommandEvent&) {
|
|||
long selection = _screenshotsList->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
||||
|
||||
if(selection != -1) {
|
||||
_manager.deleteScreenshot(selection);
|
||||
_screenshotManager->deleteScreenshot(selection);
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::openScreenshotDirEvent(wxCommandEvent&) {
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_manager.screenshotDirectory()));
|
||||
wxExecute("explorer.exe " + Utility::Directory::toNativeSeparators(_screenshotManager->screenshotDirectory()));
|
||||
}
|
||||
|
||||
void EvtMainFrame::tabChangeEvent(wxNotebookEvent& event) {
|
||||
if(event.GetSelection() == 2 && !_screenshotManager) {
|
||||
wxBusyInfo busy{"Loading screenshots...", this};
|
||||
_screenshotManager.emplace(_mbManager.saveDirectory());
|
||||
_watcher.AddTree(wxFileName(Utility::Directory::toNativeSeparators(_screenshotManager->screenshotDirectory()), wxPATH_WIN),
|
||||
wxFSW_EVENT_CREATE|wxFSW_EVENT_DELETE, "*.png"); // Not monitoring MODIFY or RENAME, because they're a massive pain to handle. Ugh.
|
||||
updateScreenshotList();
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::fileUpdateEvent(wxFileSystemWatcherEvent& event) {
|
||||
|
@ -342,13 +384,15 @@ void EvtMainFrame::fileUpdateEvent(wxFileSystemWatcherEvent& event) {
|
|||
|
||||
wxMilliSleep(50);
|
||||
|
||||
if(event.GetPath().GetPath(wxPATH_GET_VOLUME, wxPATH_WIN) == Utility::Directory::toNativeSeparators(_manager.saveDirectory())) {
|
||||
wxString event_path = event.GetPath().GetPath(wxPATH_GET_VOLUME, wxPATH_WIN);
|
||||
|
||||
if(event_path == Utility::Directory::toNativeSeparators(_massManager->saveDirectory())) {
|
||||
unitFileEventHandler(event_type, event_file, event);
|
||||
}
|
||||
else if(event.GetPath().GetPath(wxPATH_GET_VOLUME, wxPATH_WIN) == Utility::Directory::toNativeSeparators(_manager.stagingAreaDirectory())) {
|
||||
else if(event_path == Utility::Directory::toNativeSeparators(_massManager->stagingAreaDirectory())) {
|
||||
stagingFileEventHandler(event_type, event_file, event);
|
||||
}
|
||||
else if(event.GetPath().GetPath(wxPATH_GET_VOLUME, wxPATH_WIN) == Utility::Directory::toNativeSeparators(_manager.screenshotDirectory())) {
|
||||
else if(event_path == Utility::Directory::toNativeSeparators(_screenshotManager->screenshotDirectory())) {
|
||||
screenshotFileEventHandler(event_type, event_file);
|
||||
}
|
||||
|
||||
|
@ -367,7 +411,7 @@ void EvtMainFrame::unitFileEventHandler(int event_type, const wxString& event_fi
|
|||
switch (event_type) {
|
||||
case wxFSW_EVENT_CREATE:
|
||||
case wxFSW_EVENT_DELETE:
|
||||
regex.Compile(wxString::Format("Unit([0-3][0-9])%s\\.sav", _manager.steamId()), wxRE_ADVANCED);
|
||||
regex.Compile(wxString::Format("%sUnit([0-3][0-9])%s\\.sav", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()), wxRE_ADVANCED);
|
||||
if(regex.Matches(event_file)) {
|
||||
long slot;
|
||||
|
||||
|
@ -380,11 +424,11 @@ void EvtMainFrame::unitFileEventHandler(int event_type, const wxString& event_fi
|
|||
if(_lastWatcherEventType == wxFSW_EVENT_RENAME) {
|
||||
break;
|
||||
}
|
||||
if(event_file == _manager.profileSaveName()) {
|
||||
if(event_file == _profileManager.currentProfile()->filename()) {
|
||||
getActiveSlot();
|
||||
}
|
||||
else {
|
||||
regex.Compile(wxString::Format("Unit([0-3][0-9])%s\\.sav", _manager.steamId()), wxRE_ADVANCED);
|
||||
regex.Compile(wxString::Format("%sUnit([0-3][0-9])%s\\.sav", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()), wxRE_ADVANCED);
|
||||
if(regex.Matches(event_file)) {
|
||||
long slot;
|
||||
|
||||
|
@ -398,12 +442,12 @@ void EvtMainFrame::unitFileEventHandler(int event_type, const wxString& event_fi
|
|||
wxString new_name = event.GetNewPath().GetFullName();
|
||||
|
||||
long slot;
|
||||
if(regex.Compile(wxString::Format("Unit([0-3][0-9])%s\\.sav\\.tmp", _manager.steamId()), wxRE_ADVANCED), regex.Matches(new_name)) {
|
||||
if(regex.Compile(wxString::Format("%sUnit([0-3][0-9])%s\\.sav\\.tmp", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()), wxRE_ADVANCED), regex.Matches(new_name)) {
|
||||
if(regex.GetMatch(new_name, 1).ToLong(&slot) && slot >= 0 && slot < 32) {
|
||||
refreshHangar(slot);
|
||||
}
|
||||
}
|
||||
else if(regex.Compile(wxString::Format("Unit([0-3][0-9])%s\\.sav", _manager.steamId()), wxRE_ADVANCED), regex.Matches(new_name)) {
|
||||
else if(regex.Compile(wxString::Format("%sUnit([0-3][0-9])%s\\.sav", _profileManager.currentProfile()->type() == ProfileType::Demo ? "Demo" : "", _profileManager.currentProfile()->steamId()), wxRE_ADVANCED), regex.Matches(new_name)) {
|
||||
if(regex.GetMatch(new_name, 1).ToLong(&slot) && slot >= 0 && slot < 32) {
|
||||
refreshHangar(slot);
|
||||
if(regex.Matches(event_file)) {
|
||||
|
@ -422,31 +466,31 @@ void EvtMainFrame::stagingFileEventHandler(int event_type, const wxString& event
|
|||
|
||||
switch(event_type) {
|
||||
case wxFSW_EVENT_CREATE:
|
||||
index = _manager.updateStagedMass(event_file.ToUTF8().data());
|
||||
index = _massManager->updateStagedMass(event_file.ToUTF8().data());
|
||||
if(index != -1) {
|
||||
_stagingList->Insert(wxString::Format("%s (%s)", _manager.stagedMassName(index), event_file), index);
|
||||
_stagingList->Insert(wxString::Format("%s (%s)", _massManager->stagedMassName(index), event_file), index);
|
||||
}
|
||||
break;
|
||||
case wxFSW_EVENT_DELETE:
|
||||
index = _manager.removeStagedMass(event_file.ToUTF8().data());
|
||||
index = _massManager->removeStagedMass(event_file.ToUTF8().data());
|
||||
if(index != -1) {
|
||||
_stagingList->Delete(index);
|
||||
}
|
||||
break;
|
||||
case wxFSW_EVENT_MODIFY:
|
||||
index = _manager.updateStagedMass(event_file.ToUTF8().data());
|
||||
index = _massManager->updateStagedMass(event_file.ToUTF8().data());
|
||||
if(index != -1) {
|
||||
_stagingList->SetString(index, wxString::Format("%s (%s)", _manager.stagedMassName(index), event_file));
|
||||
_stagingList->SetString(index, wxString::Format("%s (%s)", _massManager->stagedMassName(index), event_file));
|
||||
}
|
||||
break;
|
||||
case wxFSW_EVENT_RENAME:
|
||||
index = _manager.removeStagedMass(event_file.ToUTF8().data());
|
||||
index = _massManager->removeStagedMass(event_file.ToUTF8().data());
|
||||
if(index != -1) {
|
||||
_stagingList->Delete(index);
|
||||
}
|
||||
index = _manager.updateStagedMass(event.GetNewPath().GetFullName().ToUTF8().data());
|
||||
index = _massManager->updateStagedMass(event.GetNewPath().GetFullName().ToUTF8().data());
|
||||
if(index != -1) {
|
||||
_stagingList->Insert(wxString::Format("%s (%s)", _manager.stagedMassName(index), event.GetNewPath().GetFullName()), index);
|
||||
_stagingList->Insert(wxString::Format("%s (%s)", _massManager->stagedMassName(index), event.GetNewPath().GetFullName()), index);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -457,19 +501,24 @@ void EvtMainFrame::screenshotFileEventHandler(int event_type, const wxString& ev
|
|||
|
||||
switch(event_type) {
|
||||
case wxFSW_EVENT_CREATE:
|
||||
_manager.updateScreenshot(event_file.ToUTF8().data());
|
||||
_screenshotManager->updateScreenshot(event_file.ToUTF8().data());
|
||||
updateScreenshotList();
|
||||
break;
|
||||
case wxFSW_EVENT_DELETE:
|
||||
index = _screenshotsList->FindItem(-1, event_file, true);
|
||||
if(index != -1) {
|
||||
_manager.removeScreenshot(index);
|
||||
_screenshotManager->removeScreenshot(index);
|
||||
_screenshotsList->DeleteItem(index);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void EvtMainFrame::updateProfileStats() {
|
||||
_companyName->SetLabel(_profileManager.currentProfile()->companyName());
|
||||
_credits->SetLabel(wxString::Format("%i", _profileManager.currentProfile()->getCredits()));
|
||||
}
|
||||
|
||||
void EvtMainFrame::initialiseListView() {
|
||||
for(long i = 0; i < 32; i++) {
|
||||
_installedListView->InsertItem(i, wxString::Format("%.2i", i + 1));
|
||||
|
@ -483,7 +532,10 @@ void EvtMainFrame::initialiseListView() {
|
|||
}
|
||||
|
||||
void EvtMainFrame::isGameRunning() {
|
||||
GameState state = _manager.checkGameState();
|
||||
_gameStatus->SetLabel("checking...");
|
||||
_gameStatus->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
|
||||
|
||||
GameState state = _mbManager.checkGameState();
|
||||
|
||||
switch(state) {
|
||||
case GameState::Unknown:
|
||||
|
@ -512,7 +564,7 @@ void EvtMainFrame::refreshListView() {
|
|||
}
|
||||
|
||||
void EvtMainFrame::getActiveSlot() {
|
||||
char slot = _manager.activeSlot();
|
||||
auto slot = _profileManager.currentProfile()->activeFrameSlot();
|
||||
|
||||
if(slot != -1) {
|
||||
wxFont tmp_font = _installedListView->GetItemFont(slot);
|
||||
|
@ -520,7 +572,7 @@ void EvtMainFrame::getActiveSlot() {
|
|||
_installedListView->SetItemFont(slot, tmp_font);
|
||||
}
|
||||
|
||||
slot = _manager.getActiveSlot();
|
||||
slot = _profileManager.currentProfile()->getActiveFrameSlot();
|
||||
|
||||
if(slot != -1) {
|
||||
_installedListView->SetItemFont(slot, _installedListView->GetItemFont(slot).Bold());
|
||||
|
@ -530,14 +582,14 @@ void EvtMainFrame::getActiveSlot() {
|
|||
void EvtMainFrame::updateCommandsState() {
|
||||
long selection = _installedListView->GetFirstSelected();
|
||||
int staged_selection = _stagingList->GetSelection();
|
||||
GameState game_state = _manager.gameState();
|
||||
HangarState hangar_state = _manager.hangarState(selection);
|
||||
GameState game_state = _mbManager.gameState();
|
||||
MassState mass_state = _massManager->massState(selection);
|
||||
|
||||
_importButton->Enable(selection != -1 && staged_selection != -1 && game_state != GameState::Running);
|
||||
_exportButton->Enable(selection != -1);
|
||||
_moveButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty && hangar_state != HangarState::Invalid);
|
||||
_deleteButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty);
|
||||
_renameButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty);
|
||||
_moveButton->Enable(selection != -1 && game_state == GameState::NotRunning && mass_state == MassState::Valid);
|
||||
_deleteButton->Enable(selection != -1 && game_state == GameState::NotRunning && mass_state != MassState::Empty);
|
||||
_renameButton->Enable(selection != -1 && game_state == GameState::NotRunning && mass_state == MassState::Valid);
|
||||
_deleteStagedButton->Enable(staged_selection != -1);
|
||||
|
||||
long screenshot_selection = _screenshotsList->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
||||
|
@ -550,17 +602,17 @@ void EvtMainFrame::refreshHangar(int slot) {
|
|||
return;
|
||||
}
|
||||
|
||||
_manager.refreshHangar(slot);
|
||||
_massManager->refreshHangar(slot);
|
||||
|
||||
switch(_manager.hangarState(slot)) {
|
||||
case HangarState::Empty:
|
||||
switch(_massManager->massState(slot)) {
|
||||
case MassState::Empty:
|
||||
_installedListView->SetItem(slot, 1, "<Empty>");
|
||||
break;
|
||||
case HangarState::Invalid:
|
||||
case MassState::Invalid:
|
||||
_installedListView->SetItem(slot, 1, "<Invalid>");
|
||||
break;
|
||||
case HangarState::Filled:
|
||||
_installedListView->SetItem(slot, 1, *(_manager.massName(slot)));
|
||||
case MassState::Valid:
|
||||
_installedListView->SetItem(slot, 1, _massManager->massName(slot));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -570,7 +622,7 @@ void EvtMainFrame::updateScreenshotList() {
|
|||
_screenshotThumbs.RemoveAll();
|
||||
|
||||
int index = 0;
|
||||
for(const Screenshot& s : _manager.screenshots()) {
|
||||
for(const Screenshot& s : _screenshotManager->screenshots()) {
|
||||
_screenshotsList->InsertItem(index,
|
||||
wxString::Format("%s\n%s", wxString::FromUTF8(s._filename.c_str()), s._creationDate.Format("%d/%m/%Y %H:%M:%S")),
|
||||
_screenshotThumbs.Add(s._thumbnail));
|
||||
|
@ -585,7 +637,8 @@ void EvtMainFrame::viewScreenshot() {
|
|||
return;
|
||||
}
|
||||
|
||||
wxBitmap image(Utility::Directory::toNativeSeparators(Utility::Directory::join(_manager.screenshotDirectory(), _manager.screenshots().at(selection)._filename)), wxBITMAP_TYPE_PNG);
|
||||
wxBitmap image(Utility::Directory::toNativeSeparators(Utility::Directory::join(_screenshotManager->screenshotDirectory(),
|
||||
_screenshotManager->screenshots().at(selection)._filename)), wxBITMAP_TYPE_PNG);
|
||||
|
||||
wxDialog view_dialog;
|
||||
view_dialog.Create(this, wxID_ANY, "Screenshot viewer", wxDefaultPosition, wxSize{1024, 576}, wxCAPTION|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU);
|
||||
|
|
|
@ -19,13 +19,21 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include <Corrade/Containers/Pointer.h>
|
||||
|
||||
#include <wx/fswatcher.h>
|
||||
#include <wx/imaglist.h>
|
||||
|
||||
#include "../MassManager/MassManager.h"
|
||||
#include "../MassBuilderManager/MassBuilderManager.h"
|
||||
#include "../Profile/Profile.h"
|
||||
#include "../ProfileManager/ProfileManager.h"
|
||||
#include "../ScreenshotManager/ScreenshotManager.h"
|
||||
|
||||
#include "MainFrame.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
||||
class EvtMainFrame: public MainFrame {
|
||||
public:
|
||||
EvtMainFrame(wxWindow* parent);
|
||||
|
@ -34,13 +42,16 @@ class EvtMainFrame: public MainFrame {
|
|||
auto ready() -> bool;
|
||||
|
||||
protected:
|
||||
// Profile-related events
|
||||
void profileSelectionEvent(wxCommandEvent&);
|
||||
void backupSelectedProfileEvent(wxCommandEvent&);
|
||||
|
||||
// M.A.S.S.-related events
|
||||
void importMassEvent(wxCommandEvent&);
|
||||
void exportMassEvent(wxCommandEvent&);
|
||||
void moveMassEvent(wxCommandEvent&);
|
||||
void deleteMassEvent(wxCommandEvent&);
|
||||
void renameMassEvent(wxCommandEvent&);
|
||||
void backupSavesEvent(wxCommandEvent&);
|
||||
void openSaveDirEvent(wxCommandEvent&);
|
||||
void stagingSelectionEvent(wxCommandEvent&);
|
||||
void deleteStagedEvent(wxCommandEvent&);
|
||||
|
@ -48,7 +59,7 @@ class EvtMainFrame: public MainFrame {
|
|||
void installedSelectionEvent(wxListEvent&);
|
||||
void listColumnDragEvent(wxListEvent&);
|
||||
|
||||
// Screenshot events
|
||||
// Screenshot-related events
|
||||
void screenshotListSelectionEvent(wxListEvent&);
|
||||
void screenshotFilenameSortingEvent(wxCommandEvent&);
|
||||
void screenshotCreationDateSortingEvent(wxCommandEvent&);
|
||||
|
@ -60,6 +71,7 @@ class EvtMainFrame: public MainFrame {
|
|||
void openScreenshotDirEvent(wxCommandEvent&);
|
||||
|
||||
// General events
|
||||
void tabChangeEvent(wxNotebookEvent& event);
|
||||
void fileUpdateEvent(wxFileSystemWatcherEvent& event);
|
||||
void gameCheckTimerEvent(wxTimerEvent&);
|
||||
|
||||
|
@ -68,6 +80,8 @@ class EvtMainFrame: public MainFrame {
|
|||
void stagingFileEventHandler(int event_type, const wxString& event_file, const wxFileSystemWatcherEvent& event);
|
||||
void screenshotFileEventHandler(int event_type, const wxString& event_file);
|
||||
|
||||
void updateProfileStats();
|
||||
|
||||
void initialiseListView();
|
||||
void isGameRunning();
|
||||
void refreshListView();
|
||||
|
@ -82,7 +96,10 @@ class EvtMainFrame: public MainFrame {
|
|||
void warningMessage(const wxString& message);
|
||||
void errorMessage(const wxString& message);
|
||||
|
||||
MassManager _manager;
|
||||
MassBuilderManager _mbManager;
|
||||
ProfileManager _profileManager;
|
||||
Containers::Pointer<MassManager> _massManager;
|
||||
Containers::Pointer<ScreenshotManager> _screenshotManager;
|
||||
|
||||
wxFileSystemWatcher _watcher;
|
||||
int _lastWatcherEventType = 0;
|
||||
|
|
|
@ -20,7 +20,67 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
|
|||
wxBoxSizer* bSizerMainPanel;
|
||||
bSizerMainPanel = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizerProfile;
|
||||
bSizerProfile = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
_profileLabel = new wxStaticText( _mainPanel, wxID_ANY, wxT("Profile to manage:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_profileLabel->Wrap( -1 );
|
||||
bSizerProfile->Add( _profileLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
|
||||
wxArrayString _profileChoiceChoices;
|
||||
_profileChoice = new wxChoice( _mainPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, _profileChoiceChoices, 0 );
|
||||
_profileChoice->SetSelection( 0 );
|
||||
_profileChoice->SetMinSize( wxSize( 150,-1 ) );
|
||||
|
||||
bSizerProfile->Add( _profileChoice, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
|
||||
_backupSelectedButton = new wxButton( _mainPanel, wxID_ANY, wxT("Backup selected profile"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizerProfile->Add( _backupSelectedButton, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||
|
||||
|
||||
bSizerMainPanel->Add( bSizerProfile, 0, wxEXPAND, 5 );
|
||||
|
||||
_managerNotebook = new wxNotebook( _mainPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_profilePanel = new wxPanel( _managerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerProfilePanel;
|
||||
bSizerProfilePanel = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
wxStaticBoxSizer* sbSizerGeneralInfo;
|
||||
sbSizerGeneralInfo = new wxStaticBoxSizer( new wxStaticBox( _profilePanel, wxID_ANY, wxT("General information") ), wxVERTICAL );
|
||||
|
||||
wxFlexGridSizer* fgSizerGeneralStats;
|
||||
fgSizerGeneralStats = new wxFlexGridSizer( 0, 2, 0, 0 );
|
||||
fgSizerGeneralStats->AddGrowableCol( 1 );
|
||||
fgSizerGeneralStats->SetFlexibleDirection( wxBOTH );
|
||||
fgSizerGeneralStats->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||
|
||||
_companyNameLabel = new wxStaticText( sbSizerGeneralInfo->GetStaticBox(), wxID_ANY, wxT("Company name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_companyNameLabel->Wrap( -1 );
|
||||
fgSizerGeneralStats->Add( _companyNameLabel, 0, wxALL, 5 );
|
||||
|
||||
_companyName = new wxStaticText( sbSizerGeneralInfo->GetStaticBox(), wxID_ANY, wxT("<blank>"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_companyName->Wrap( -1 );
|
||||
fgSizerGeneralStats->Add( _companyName, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
_creditsLabel = new wxStaticText( sbSizerGeneralInfo->GetStaticBox(), wxID_ANY, wxT("Credits:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_creditsLabel->Wrap( -1 );
|
||||
fgSizerGeneralStats->Add( _creditsLabel, 0, wxALL, 5 );
|
||||
|
||||
_credits = new wxStaticText( sbSizerGeneralInfo->GetStaticBox(), wxID_ANY, wxT("0"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
_credits->Wrap( -1 );
|
||||
fgSizerGeneralStats->Add( _credits, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
|
||||
sbSizerGeneralInfo->Add( fgSizerGeneralStats, 1, wxEXPAND, 5 );
|
||||
|
||||
|
||||
bSizerProfilePanel->Add( sbSizerGeneralInfo, 1, wxEXPAND|wxALL, 5 );
|
||||
|
||||
|
||||
_profilePanel->SetSizer( bSizerProfilePanel );
|
||||
_profilePanel->Layout();
|
||||
bSizerProfilePanel->Fit( _profilePanel );
|
||||
_managerNotebook->AddPage( _profilePanel, wxT("Profile details and stats"), false );
|
||||
_massPanel = new wxPanel( _managerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerMassPanel;
|
||||
bSizerMassPanel = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
@ -51,9 +111,6 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
|
|||
wxBoxSizer* bSizerSecondRow;
|
||||
bSizerSecondRow = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
_zipButton = new wxButton( sbSizerInstalled->GetStaticBox(), wxID_ANY, wxT("Backup save files"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizerSecondRow->Add( _zipButton, 2, wxALL|wxEXPAND, 5 );
|
||||
|
||||
_openSaveDirButton = new wxButton( sbSizerInstalled->GetStaticBox(), wxID_ANY, wxT("Open save directory"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizerSecondRow->Add( _openSaveDirButton, 2, wxEXPAND|wxALL, 5 );
|
||||
|
||||
|
@ -208,10 +265,12 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
|
|||
this->Centre( wxBOTH );
|
||||
|
||||
// Connect Events
|
||||
_profileChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( MainFrame::profileSelectionEvent ), NULL, this );
|
||||
_backupSelectedButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::backupSelectedProfileEvent ), NULL, this );
|
||||
_managerNotebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( MainFrame::tabChangeEvent ), NULL, this );
|
||||
_moveButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::moveMassEvent ), NULL, this );
|
||||
_deleteButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::deleteMassEvent ), NULL, this );
|
||||
_renameButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::renameMassEvent ), NULL, this );
|
||||
_zipButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::backupSavesEvent ), NULL, this );
|
||||
_openSaveDirButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::openSaveDirEvent ), NULL, this );
|
||||
_importButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::importMassEvent ), NULL, this );
|
||||
_exportButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::exportMassEvent ), NULL, this );
|
||||
|
@ -234,10 +293,12 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
|
|||
MainFrame::~MainFrame()
|
||||
{
|
||||
// Disconnect Events
|
||||
_profileChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( MainFrame::profileSelectionEvent ), NULL, this );
|
||||
_backupSelectedButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::backupSelectedProfileEvent ), NULL, this );
|
||||
_managerNotebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( MainFrame::tabChangeEvent ), NULL, this );
|
||||
_moveButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::moveMassEvent ), NULL, this );
|
||||
_deleteButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::deleteMassEvent ), NULL, this );
|
||||
_renameButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::renameMassEvent ), NULL, this );
|
||||
_zipButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::backupSavesEvent ), NULL, this );
|
||||
_openSaveDirButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::openSaveDirEvent ), NULL, this );
|
||||
_importButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::importMassEvent ), NULL, this );
|
||||
_exportButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::exportMassEvent ), NULL, this );
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<property name="size">-1,-1</property>
|
||||
<property name="style">wxCAPTION|wxCLOSE_BOX|wxMINIMIZE_BOX|wxSYSTEM_MENU</property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="title">M.A.S.S. Manager 1.2.2</property>
|
||||
<property name="title">M.A.S.S. Builder Save Tool 2.0.0-alpha</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
|
@ -119,6 +119,216 @@
|
|||
<property name="name">bSizerMainPanel</property>
|
||||
<property name="orient">wxVERTICAL</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxBoxSizer" expanded="1">
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">bSizerProfile</property>
|
||||
<property name="orient">wxHORIZONTAL</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Profile to manage:</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_profileLabel</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxChoice" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="choices"></property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size">150,-1</property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_profileChoice</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="selection">0</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="validator_data_type"></property>
|
||||
<property name="validator_style">wxFILTER_NONE</property>
|
||||
<property name="validator_type">wxDefaultValidator</property>
|
||||
<property name="validator_variable"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<event name="OnChoice">profileSelectionEvent</event>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxButton" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="current"></property>
|
||||
<property name="default">0</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="disabled"></property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="focus"></property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Backup selected profile</property>
|
||||
<property name="margins"></property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_backupSelectedButton</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="position"></property>
|
||||
<property name="pressed"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="validator_data_type"></property>
|
||||
<property name="validator_style">wxFILTER_NONE</property>
|
||||
<property name="validator_type">wxDefaultValidator</property>
|
||||
<property name="validator_variable"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<event name="OnButtonClick">backupSelectedProfileEvent</event>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
|
@ -176,6 +386,346 @@
|
|||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<event name="OnNotebookPageChanged">tabChangeEvent</event>
|
||||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Profile details and stats</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_profilePanel</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||
<object class="wxBoxSizer" expanded="1">
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">bSizerProfilePanel</property>
|
||||
<property name="orient">wxHORIZONTAL</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND|wxALL</property>
|
||||
<property name="proportion">1</property>
|
||||
<object class="wxStaticBoxSizer" expanded="1">
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">General information</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">sbSizerGeneralInfo</property>
|
||||
<property name="orient">wxVERTICAL</property>
|
||||
<property name="parent">1</property>
|
||||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxEXPAND</property>
|
||||
<property name="proportion">1</property>
|
||||
<object class="wxFlexGridSizer" expanded="1">
|
||||
<property name="cols">2</property>
|
||||
<property name="flexible_direction">wxBOTH</property>
|
||||
<property name="growablecols">1</property>
|
||||
<property name="growablerows"></property>
|
||||
<property name="hgap">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">fgSizerGeneralStats</property>
|
||||
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||
<property name="permission">none</property>
|
||||
<property name="rows">0</property>
|
||||
<property name="vgap">0</property>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Company name:</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_companyNameLabel</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxEXPAND</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label"><blank></property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_companyName</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Credits:</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
<property name="maximum_size"></property>
|
||||
<property name="min_size"></property>
|
||||
<property name="minimize_button">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="moveable">1</property>
|
||||
<property name="name">_creditsLabel</property>
|
||||
<property name="pane_border">1</property>
|
||||
<property name="pane_position"></property>
|
||||
<property name="pane_size"></property>
|
||||
<property name="permission">protected</property>
|
||||
<property name="pin_button">1</property>
|
||||
<property name="pos"></property>
|
||||
<property name="resize">Resizable</property>
|
||||
<property name="show">1</property>
|
||||
<property name="size"></property>
|
||||
<property name="style"></property>
|
||||
<property name="subclass">; ; forward_declare</property>
|
||||
<property name="toolbar_pane">0</property>
|
||||
<property name="tooltip"></property>
|
||||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<property name="wrap">-1</property>
|
||||
</object>
|
||||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxEXPAND</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
<property name="TopDockable">1</property>
|
||||
<property name="aui_layer"></property>
|
||||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="caption"></property>
|
||||
<property name="caption_visible">1</property>
|
||||
<property name="center_pane">0</property>
|
||||
<property name="close_button">1</property>
|
||||
<property name="context_help"></property>
|
||||
<property name="context_menu">1</property>
|
||||
<property name="default_pane">0</property>
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
|