// resources
// ----------------------------------------------------------------------------
// the application icon
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#ifndef __WXMSW__
#include "mondrian.xpm"
#endif
SetIcon(wxICON(mondrian));
// create a menu bar
- wxMenu *menuFile = new wxMenu(wxT(""), wxMENU_TEAROFF);
+ wxMenu *menuFile = new wxMenu(wxEmptyString, wxMENU_TEAROFF);
// the "About" item should be in the help menu
wxMenu *helpMenu = new wxMenu;
#include "doc.h"
#include "view.h"
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
-#include "ogl.xpm"
+#ifndef __WXMSW__
+ #include "ogl.xpm"
#endif
// A macro needed for some compilers (AIX) that need 'main' to be defined
{
return wxGetApp().frame;
}
-
#include "cspalette.h"
#include "symbols.h"
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#ifndef __WXMSW__
#include "bitmaps/arrow.xpm"
#include "bitmaps/texttool.xpm"
#endif
wxBitmap PaletteArrow(_T("arrowtool"));
wxBitmap TextTool(_T("texttool"));
wxSize toolBitmapSize(32, 32);
-#elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#else // !__WXMSW__
wxBitmap PaletteArrow(arrow_xpm);
wxBitmap TextTool(texttool_xpm);
wxSize toolBitmapSize(22, 22);
symbols[noSymbols] = _T("Thin Rectangle");
noSymbols ++;
-
+
symbols[noSymbols] = _T("Triangle");
noSymbols ++;
return true;
}
-
InitToolBar(GetToolBar());
#endif // wxUSE_TOOLBAR
+#if wxUSE_ACCEL
// Accelerators
wxAcceleratorEntry entries[3];
entries[0].Set(wxACCEL_CTRL, (int) 'N', MDI_NEW_WINDOW);
entries[2].Set(wxACCEL_CTRL, (int) 'A', MDI_ABOUT);
wxAcceleratorTable accel(3, entries);
SetAcceleratorTable(accel);
+#endif // wxUSE_ACCEL
}
void MyFrame::OnClose(wxCloseEvent& event)
subframe->Show(true);
}
-void MyFrame::OnSize(wxSizeEvent&
+void MyFrame::OnSize(wxSizeEvent&
#ifdef __WXUNIVERSAL__
event
#else
// FIXME: On wxX11, we need the MDI frame to process this
// event, but on other platforms this should not
// be done.
-#ifdef __WXUNIVERSAL__
+#ifdef __WXUNIVERSAL__
event.Skip();
#endif
}
event.Skip();
}
-
-
{
if (!IsModified() && m_savedYet) return true;
- bool ret = (m_documentFile == wxT("") || !m_savedYet) ?
+ bool ret = (m_documentFile.empty() || !m_savedYet) ?
SaveAs() :
OnSaveDocument(m_documentFile);
if ( ret )
//rootItem->InitProperties();
rootItem->GetProperties().AddProperty(
new ctProperty(
- wxT("The item description."),
- wxVariant(wxT(""), wxT("description")),
- wxT("multiline")));
+ wxT("The item description."),
+ wxVariant(wxEmptyString, wxT("description")),
+ wxT("multiline")));
rootItem->SetPropertyString(_T("description"),
_T("<B>This is the top-level configuration item.</B>"));
wxString type(wxT("string"));
wxString choices;
wxString editorType(wxT("string"));
- wxString description(wxT(""));
+ wxString description;
childTag->GetAttributeValue(type, wxT("type"));
childTag->GetAttributeValue(type, wxT("editor-type"));
childTag->GetAttributeValue(type, wxT("choices"));
else if (type == wxT("long"))
prop->GetVariant() = wxVariant((long) 0, name);
else
- prop->GetVariant() = wxVariant(wxT(""), name);
+ prop->GetVariant() = wxVariant(wxEmptyString, name);
prop->SetDescription(description);
prop->SetCustom(true);
prop->SetEditorType(editorType);
#ifdef __WXMSW__
if (makeUnix)
path.Replace(wxT("\\"), wxT("/"));
+#else
+ wxUnusedVar(makeUnix);
#endif
}
return path;