X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8105809ef8f7cb0d1a9933f3f790b7b446c7cfa..04633c190f5a6eafe607a5712647aaa131522b1f:/utils/configtool/src/appsettings.cpp?ds=sidebyside diff --git a/utils/configtool/src/appsettings.cpp b/utils/configtool/src/appsettings.cpp index 41cbfccc05..89da227b7d 100644 --- a/utils/configtool/src/appsettings.cpp +++ b/utils/configtool/src/appsettings.cpp @@ -9,7 +9,7 @@ // Licence: ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "appsettings.h" #endif @@ -73,6 +73,9 @@ ctSettings::ctSettings() m_trayIconIsShown = FALSE; m_useEnvironmentVariable = TRUE; m_frameworkDir = wxEmptyString; + m_matchWholeWord = FALSE; + m_matchCase = FALSE; + m_defaultFileKind = wxT("Setup file"); } // Copy constructor @@ -93,7 +96,7 @@ void ctSettings::operator = (const ctSettings& settings) void ctSettings::Copy (const ctSettings& settings) { - m_currentDocumentDir = settings.m_currentDocumentDir; + m_lastSetupSaveDir = settings.m_lastSetupSaveDir; m_lastDocument = settings.m_lastDocument; m_showToolBar = settings.m_showToolBar; m_frameSize = settings.m_frameSize; @@ -114,12 +117,15 @@ void ctSettings::Copy (const ctSettings& settings) m_useEnvironmentVariable = settings.m_useEnvironmentVariable; m_frameworkDir = settings.m_frameworkDir; + m_matchWholeWord = settings.m_matchWholeWord; + m_matchCase = settings.m_matchCase; + m_defaultFileKind = settings.m_defaultFileKind ; } // Do some initialisation within stApp::OnInit bool ctSettings::Init() { - m_currentDocumentDir = wxEmptyString; + m_lastSetupSaveDir = wxEmptyString; if (m_userName.IsEmpty()) m_userName = wxGetUserName(); @@ -146,7 +152,7 @@ wxString ctSettings::GenerateFilename(const wxString& rootName) while (wxFileExists(fullFilename)) { i ++; - postfixStr.Printf("%d", i); + postfixStr.Printf(_T("%d"), i); fullFilename = filename + postfixStr + wxT(".wxs"); } @@ -160,7 +166,7 @@ bool ctSettings::LoadConfig() wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWindows")); config.Read(wxT("Files/LastFile"), & m_lastFilename); - config.Read(wxT("Files/DocumentDir"), & m_currentDocumentDir); + config.Read(wxT("Files/LastSetupSaveDir"), & m_lastSetupSaveDir); config.Read(wxT("Files/ExportDir"), & m_exportDir); config.Read(wxT("Files/FrameworkDir"), & m_frameworkDir); config.Read(wxT("Files/UseEnvironmentVariable"), (bool*) & m_useEnvironmentVariable); @@ -173,6 +179,9 @@ bool ctSettings::LoadConfig() config.Read(wxT("Misc/ShowWelcomeDialog"), (bool*) & m_showWelcomeDialog); config.Read(wxT("Misc/Ran"), & m_noUses); config.Read(wxT("Misc/ShowTrayIcon"), (bool*) & m_showTrayIcon); + config.Read(wxT("Misc/MatchWholeWord"), (bool*) & m_matchWholeWord); + config.Read(wxT("Misc/MatchCase"), (bool*) & m_matchCase); + config.Read(wxT("Misc/BuildMode"), & m_defaultFileKind ); m_noUses ++; @@ -218,7 +227,7 @@ bool ctSettings::SaveConfig() wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWindows")); config.Write(wxT("Files/LastFile"), m_lastFilename); - config.Write(wxT("Files/DocumentDir"), m_currentDocumentDir); + config.Write(wxT("Files/LastSetupSaveDir"), m_lastSetupSaveDir); config.Write(wxT("Files/ExportDir"), m_exportDir); config.Write(wxT("Files/FrameworkDir"), m_frameworkDir); config.Write(wxT("Files/UseEnvironmentVariable"), m_useEnvironmentVariable); @@ -231,6 +240,9 @@ bool ctSettings::SaveConfig() config.Write(wxT("Misc/ShowWelcomeDialog"), (long) m_showWelcomeDialog); config.Write(wxT("Misc/Ran"), m_noUses); config.Write(wxT("Misc/ShowTrayIcon"), (long) m_showTrayIcon); + config.Write(wxT("Misc/MatchWholeWord"), (long) m_matchWholeWord); + config.Write(wxT("Misc/MatchCase"), (long) m_matchCase); + config.Write(wxT("Misc/BuildMode"), m_defaultFileKind); config.Write(wxT("Windows/ShowToolBar"), m_showToolBar); config.Write(wxT("Windows/WindowX"), (long) m_frameSize.x); @@ -261,7 +273,7 @@ bool ctSettings::SaveConfig() return TRUE; } -void ctSettings::ShowSettingsDialog(const wxString& page) +void ctSettings::ShowSettingsDialog(const wxString& WXUNUSED(page)) { ctSettingsDialog* dialog = new ctSettingsDialog(wxGetApp().GetTopWindow()); // if (!page.IsEmpty())