// the checkboxes for styles
wxCheckBox *m_chkSort,
- *m_chkReadonly;
+ *m_chkReadonly,
+ *m_chkFilename;
// the combobox itself and the sizer it is in
wxComboBox *m_combobox;
{
// init everything
m_chkSort =
- m_chkReadonly = (wxCheckBox *)NULL;
+ m_chkReadonly =
+ m_chkFilename = (wxCheckBox *)NULL;
m_combobox = (wxComboBox *)NULL;
m_sizerCombo = (wxSizer *)NULL;
m_chkSort = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Sort items"));
m_chkReadonly = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Read only"));
+ m_chkFilename = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&File name"));
+ m_chkFilename->Disable(); // not implemented yet
sizerLeft->Add(5, 5, 0, wxGROW | wxALL, 5); // spacer
sizerLeft->Add(m_radioKind, 0, wxGROW | wxALL, 5);
Reset();
SetSizer(sizerTop);
-
- sizerTop->Fit(this);
}
// ----------------------------------------------------------------------------
{
m_chkSort->SetValue(false);
m_chkReadonly->SetValue(false);
+ m_chkFilename->SetValue(false);
}
void ComboboxWidgetsPage::CreateCombo()
0, NULL,
flags);
+#if 0
+ if ( m_chkFilename->GetValue() )
+ ;
+#endif // TODO
+
unsigned int count = items.GetCount();
for ( unsigned int n = 0; n < count; n++ )
{
void ComboboxWidgetsPage::OnUpdateUIResetButton(wxUpdateUIEvent& event)
{
- if (m_combobox)
- event.Enable( m_chkSort->GetValue() || m_chkReadonly->GetValue() );
+ event.Enable( m_chkSort->GetValue() ||
+ m_chkReadonly->GetValue() ||
+ m_chkFilename->GetValue() );
}
void ComboboxWidgetsPage::OnUpdateUIInsert(wxUpdateUIEvent& event)