#include "wx/effects.h"
#include "wx/spinctrl.h"
#include "wx/tooltip.h"
+#include "wx/settings.h"
#endif
m_frameSize = wxRect(10, 10, 600, 500);
// m_backgroundColour = wxColour(140, 172, 179); // blue-grey
- m_editWindowFont = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
+ m_editWindowFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_appName = wxT("wxWidgets Configuration Tool");
m_appNameShort = wxT("Configuration Tool");
}
// Copy constructor
-ctSettings::ctSettings(const ctSettings& settings)
+ctSettings::ctSettings(const ctSettings& settings) : wxObject()
{
Copy(settings);
}
-ctSettings::~ctSettings()
-{
-}
-
void ctSettings::operator = (const ctSettings& settings)
{
Copy(settings);
bool ctSettings::Init()
{
m_lastSetupSaveDir = wxEmptyString;
- if (m_userName.IsEmpty())
+ if (m_userName.empty())
m_userName = wxGetUserName();
return true;
wxString ctSettings::GenerateFilename(const wxString& rootName)
{
wxString path;
- if (!m_lastFilename.IsEmpty())
+ if (!m_lastFilename.empty())
path = wxPathOnly(m_lastFilename);
else
path = wxGetApp().GetAppDir();
fontSpec = wxEmptyString;
config.Read(wxT("Style/EditWindowFont"), & fontSpec);
- if (!fontSpec.IsEmpty())
+ if (!fontSpec.empty())
m_editWindowFont = apStringToFont(fontSpec);
// Crash-resistance
// Indicate that we're no longer running, so we know if the program
// crashed last time around.
config.Write(wxT("Misc/RunningProgram"), (long) 0);
-
+
{
config.SetPath(wxT("FileHistory/"));
wxGetApp().GetDocManager()->FileHistorySave(config);