// For 400x400 settings dialog, size your panels to about 375x325 in dialog editor
csSettingsDialog::csSettingsDialog(wxWindow* parent):
- wxDialog(parent, -1, _T("Settings"), wxPoint(0, 0), wxSize(PROPERTY_DIALOG_WIDTH, PROPERTY_DIALOG_HEIGHT))
+ wxDialog(parent, wxID_ANY, _T("Settings"), wxPoint(0, 0), wxSize(PROPERTY_DIALOG_WIDTH, PROPERTY_DIALOG_HEIGHT))
{
m_generalSettings = NULL;
m_diagramSettings = NULL;
#endif
wxLoadFromResource(m_generalSettings, m_notebook, _T("general_settings_dialog"));
wxASSERT_MSG( (success), _T("Could not load general settings panel."));
- m_notebook->AddPage(m_generalSettings, _T("General"), TRUE);
+ m_notebook->AddPage(m_generalSettings, _T("General"), true);
m_diagramSettings = new wxPanel;
str.Printf(_T("%d"), wxGetApp().GetGridSpacing());
gridSpacing->SetValue(str);
- return TRUE;
+ return true;
}
bool csSettingsDialog::TransferDataFromWindow()
if (wxGetApp().GetGridStyle() == csGRID_STYLE_DOTTED)
{
wxMessageBox(_T("Dotted grid style not yet implemented."), _T("Studio"), wxICON_EXCLAMATION);
- return FALSE;
+ return false;
}
// Apply settings to all open diagram documents
{
case csGRID_STYLE_NONE:
{
- diagram->SetSnapToGrid(FALSE);
+ diagram->SetSnapToGrid(false);
break;
}
case csGRID_STYLE_INVISIBLE:
{
- diagram->SetSnapToGrid(TRUE);
+ diagram->SetSnapToGrid(true);
break;
}
case csGRID_STYLE_DOTTED:
node = node->GetNext();
}
- return TRUE;
+ return true;
}
/*
csShapePropertiesDialog::csShapePropertiesDialog(wxWindow* parent, const wxString& title,
wxPanel* attributeDialog, const wxString& attributeDialogName):
- wxDialog(parent, -1, title, wxPoint(0, 0), wxSize(SHAPE_PROPERTY_DIALOG_WIDTH, SHAPE_PROPERTY_DIALOG_HEIGHT))
+ wxDialog(parent, wxID_ANY, title, wxPoint(0, 0), wxSize(SHAPE_PROPERTY_DIALOG_WIDTH, SHAPE_PROPERTY_DIALOG_HEIGHT))
{
m_attributeDialog = attributeDialog;
m_alternativeAttributeDialog = NULL;