-/*
- *
- * Config panel, used to specify parameters (for example clients, filesets... in restore)
- *
- * Nicolas Boichat, April 2004
- *
- * Version $Id$
- */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2004-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
*/
+/*
+ *
+ * Config panel, used to specify parameters (for example clients, filesets... in restore)
+ *
+ * Nicolas Boichat, April 2004
+ *
+ * Version $Id$
+ */
/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
* debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
return -1;
}
+int wxbConfigParam::GetCount() {
+ if (choicectrl) {
+ return choicectrl->GetCount();
+ }
+ return -1;
+}
+
+
void wxbConfigParam::SetIndex(int ind) {
if (choicectrl) {
choicectrl->SetSelection(ind);
return -1;
}
+int wxbConfigPanel::GetRowCount(const wxChar* title)
+{
+ int i;
+ if ((i = FindRow(title)) > -1) {
+ return (*config)[i].GetCount();
+ }
+
+ return -1;
+}
+
void wxbConfigPanel::EnableApply(bool enable) {
cfgOk->Enable(!enable);
if (cfgApply) cfgApply->Enable(enable);