X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71ada1a5fbecf774be6cb7ab7421a8f784d6c84c..86a9144fd0a042f0ecb6ebd0c748b5a33341159a:/utils/configtool/src/appsettings.cpp diff --git a/utils/configtool/src/appsettings.cpp b/utils/configtool/src/appsettings.cpp index 89da227b7d..56af6008d0 100644 --- a/utils/configtool/src/appsettings.cpp +++ b/utils/configtool/src/appsettings.cpp @@ -6,7 +6,7 @@ // Created: 2002-09-04 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: +// Licence: ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) @@ -51,30 +51,30 @@ IMPLEMENT_DYNAMIC_CLASS(ctSettings, wxObject) ctSettings::ctSettings() { m_noUses = 0; - m_showToolBar = TRUE; - m_showWelcomeDialog = TRUE; + m_showToolBar = true; + m_showWelcomeDialog = true; m_exportDir = wxEmptyString; m_frameSize = wxRect(10, 10, 600, 500); // m_backgroundColour = wxColour(140, 172, 179); // blue-grey m_editWindowFont = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT); - m_appName = wxT("wxWindows Configuration Tool"); + m_appName = wxT("wxWidgets Configuration Tool"); m_appNameShort = wxT("Configuration Tool"); - m_showSplashScreen = FALSE; + m_showSplashScreen = false; m_userName = wxEmptyString; m_frameStatus = ctSHOW_STATUS_NORMAL; - m_loadLastDocument = TRUE; - m_firstTimeRun = TRUE; - m_smallToolbar = TRUE; + m_loadLastDocument = true; + m_firstTimeRun = true; + m_smallToolbar = true; m_mainSashSize = 200; - m_useToolTips = TRUE; - m_showTrayIcon = TRUE; - m_trayIconIsShown = FALSE; - m_useEnvironmentVariable = TRUE; + m_useToolTips = true; + m_showTrayIcon = true; + m_trayIconIsShown = false; + m_useEnvironmentVariable = true; m_frameworkDir = wxEmptyString; - m_matchWholeWord = FALSE; - m_matchCase = FALSE; + m_matchWholeWord = false; + m_matchCase = false; m_defaultFileKind = wxT("Setup file"); } @@ -129,7 +129,7 @@ bool ctSettings::Init() if (m_userName.IsEmpty()) m_userName = wxGetUserName(); - return TRUE; + return true; } // Create new filename @@ -163,7 +163,7 @@ wxString ctSettings::GenerateFilename(const wxString& rootName) // Load config info bool ctSettings::LoadConfig() { - wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWindows")); + wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWidgets")); config.Read(wxT("Files/LastFile"), & m_lastFilename); config.Read(wxT("Files/LastSetupSaveDir"), & m_lastSetupSaveDir); @@ -212,19 +212,19 @@ bool ctSettings::LoadConfig() // facility just in case it's trying to load a damaged file. if (runningProgram != 0) { - m_loadLastDocument = FALSE; + m_loadLastDocument = false; } #endif config.Write(wxT("Misc/RunningProgram"), (long) 1); - return TRUE; + return true; } // Save config info bool ctSettings::SaveConfig() { - wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWindows")); + wxConfig config(wxGetApp().GetSettings().GetAppName(), wxT("wxWidgets")); config.Write(wxT("Files/LastFile"), m_lastFilename); config.Write(wxT("Files/LastSetupSaveDir"), m_lastSetupSaveDir); @@ -270,7 +270,7 @@ bool ctSettings::SaveConfig() wxGetApp().GetDocManager()->FileHistorySave(config); } - return TRUE; + return true; } void ctSettings::ShowSettingsDialog(const wxString& WXUNUSED(page))