X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e0dbc8dd94d7ba16cb97cb050c9588db4c3a12f..4cbcfb73a037462ccf4d54b3e50c58e37cc61aa9:/contrib/samples/ogl/studio/dialogs.cpp diff --git a/contrib/samples/ogl/studio/dialogs.cpp b/contrib/samples/ogl/studio/dialogs.cpp index 09e91a5fb8..b19ebd5402 100644 --- a/contrib/samples/ogl/studio/dialogs.cpp +++ b/contrib/samples/ogl/studio/dialogs.cpp @@ -9,10 +9,6 @@ // Licence: ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -24,14 +20,14 @@ #include #endif -#include -#include #include "dialogs.h" #include "doc.h" #include "view.h" #include "studio.h" #include "studio_resources.h" +#if wxUSE_WX_RESOURCES + IMPLEMENT_CLASS(csLabelEditingDialog, wxDialog) BEGIN_EVENT_TABLE(csLabelEditingDialog, wxDialog) @@ -101,7 +97,7 @@ csSettingsDialog::csSettingsDialog(wxWindow* parent): m_generalSettings = new wxPanel; #ifdef __WXDEBUG__ - bool success = + bool success = #endif wxLoadFromResource(m_generalSettings, m_notebook, _T("general_settings_dialog")); wxASSERT_MSG( (success), _T("Could not load general settings panel.")); @@ -110,7 +106,7 @@ csSettingsDialog::csSettingsDialog(wxWindow* parent): m_diagramSettings = new wxPanel; #ifdef __WXDEBUG__ - success = + success = #endif wxLoadFromResource(m_diagramSettings, m_notebook, _T("diagram_settings_dialog")); wxASSERT_MSG( (success), _T("Could not load diagram settings panel.")); @@ -257,7 +253,7 @@ END_EVENT_TABLE() // For 400x400 settings dialog, size your panels to about 375x325 in dialog editor csShapePropertiesDialog::csShapePropertiesDialog(wxWindow* parent, const wxString& title, - wxPanel* attributeDialog, const wxString& attributeDialogName): + wxPanel* attributeDialog, const wxString& attributeDialogName): wxDialog(parent, wxID_ANY, title, wxPoint(0, 0), wxSize(SHAPE_PROPERTY_DIALOG_WIDTH, SHAPE_PROPERTY_DIALOG_HEIGHT)) { m_attributeDialog = attributeDialog; @@ -269,7 +265,7 @@ csShapePropertiesDialog::csShapePropertiesDialog(wxWindow* parent, const wxStrin m_generalPropertiesDialog = new csGeneralShapePropertiesDialog; #ifdef __WXDEBUG__ - bool success = + bool success = #endif wxLoadFromResource(m_generalPropertiesDialog, m_notebook, _T("general_shape_properties_dialog")); wxASSERT_MSG( (success), _T("Could not load general properties panel.")); @@ -416,6 +412,8 @@ void csGeneralShapePropertiesDialog::SetShapeLabel(const wxString& label) textCtrl->SetValue(label); } +#endif // wxUSE_WX_RESOURCES + /* * csThinRectangleDialog */