I've redefined 'new' throughout as WXDEBUG_NEW (which is itself
defined as the 3-argument operator).
-Config/registry classes
------------------------
-
-Problems with Karsten's/Vadim's existing AppConfig classes:
-
-- use char* a lot instead of wxString
-- rather hard to understand
-- will need fairly substantial rewrite
-- no native .ini functions (?) for guaranteed Windows
- compatibility
-- new wxWin docs required
-
-Good things:
-
-- exists!
-- FileConfig independent of OS
-- specifying a base class that will meet nearly all needs for
- derived classes
-- enumerator
-
-Other features we should probably have:
-
-- ability to specify vendor name/app name in constructor
-- under Windows, ability to read/write all areas of registry
- as an option
-
-Options:
-
-- rewrite AppConfig
-- start from own CRegistry class
-- take elements from both
-- do the Windows stuff, let someone else write/adapt the
- non-Windows classes
-
Owner-draw menus
----------------
wxTaskBarIcon DONE
wxMsgCatalog etc.
wxLog
- wxConfig, wxRegKey
+ wxConfig DONE
+ wxRegKey
wxTabCtrl DONE
- wxNotebook
+ wxNotebook DONE (some more explanation required)
wxWave DONE
wxJoystick DONE
wxStatusBar95 and wxFrame status bar functions
wxHelpController classes DONE (except for Unix ones)
wxString PARTLY DONE
Drag and drop (change API if required, e.g. const).
- wxCheckListBox
- wxAcceleratorTable
+ wxCheckListBox DONE
+ wxAcceleratorTable DONE
wxBaseArray, other arrays
(wxOwnerDrawn)
Document the include file for each class
More wxSystemSettings (see comment in settings.cpp).
-wxSocket integration.
-
Convert remaining utilities e.g. (GLCanvas; wxGraphLayout) and samples
Check TODO entries.
retain (Set)Callback for all compilations. This is following a
panicky response to losing callbacks.
-Merge dib.cpp, dibutils.cpp.
+Merge dib.cpp, dibutils.cpp (see also some DIB code in bitmap.cpp).
Add a wxTabCtrl sample.
Improve and expand wxSizer classes.
-Write more validators.
+Write more validators. Also, how do they work if loading the
+dialog from a .wxr? Could call SetValidator from within
+InitDialog for all controls, then call TransferDataToWindow.
Classes for file/OS utility functions.
#define YYBYACC 1
#line 2 "parser.y"
#include "string.h"
+#ifdef _MSC_VER
+#include <io.h>
+#endif
#include "wx/expr.h"
#ifndef __EXTERN_C__
%{
#include <string.h>
+#ifdef _MSC_VER
+#include <io.h>
+#endif
+
#include "wx/expr.h"
#ifndef __EXTERN_C__
SetValidator( validator );
- SetLabel( label );
+ wxControl::SetLabel( label );
m_widget = gtk_check_button_new_with_label( m_label );
child = child->next;
}
}
- wxFAIL_MSG("wrong listbox index");
+ // No, I think it's reasonable to return -1 to indicate
+ // there is no selection. -- JACS
+// wxFAIL_MSG("wrong listbox index");
return -1;
}
SetValidator( validator );
- SetLabel( label );
+ wxControl::SetLabel( label );
m_widget = gtk_check_button_new_with_label( m_label );
child = child->next;
}
}
- wxFAIL_MSG("wrong listbox index");
+ // No, I think it's reasonable to return -1 to indicate
+ // there is no selection. -- JACS
+// wxFAIL_MSG("wrong listbox index");
return -1;
}
strcat(buf, "\\dialoged.ini");
m_optionsResourceFilename = buf;
#elif defined(__WXGTK__)
- char buf[500];
- wxGetHomeDir(buf);
- strcat(buf, "/.dialogedrc");
+ /*
+ wxString buf;
+ wxGetHomeDir(&buf);
+ buf += "/.dialogedrc";
m_optionsResourceFilename = buf;
+ */
+ m_optionsResourceFilename = ".dialoged.rc";
#else
#error "Unsupported platform."
#endif
// UpdatePropertyList(FALSE);
//#endif
+ // TODO: why is this necessary?
+#ifdef __WXMSW__
if (currentlySelected > -1)
propertyScrollingList->SetSelection(currentlySelected);
+#endif
return TRUE;
}
// view->GetValueText()->Show(TRUE);
wxString str(property->GetValue().GetStringRepresentation());
- view->GetValueText()->SetValue(str.GetData());
+ view->GetValueText()->SetValue(str);
return TRUE;
}
return FALSE;
wxString str(property->GetValue().GetStringRepresentation());
- view->GetValueText()->SetValue(str.GetData());
- view->GetValueList()->SetStringSelection(str.GetData());
+ view->GetValueText()->SetValue(str);
+
+ if (view->GetValueList()->IsShown())
+ {
+ view->GetValueList()->SetStringSelection(str);
+ }
return TRUE;
}
if (!view->GetValueText())
return FALSE;
wxString str(property->GetValue().GetStringRepresentation());
- view->GetValueText()->SetValue(str.GetData());
- if (strings && view->GetValueList() && view->GetValueList()->Number() > 0)
+ view->GetValueText()->SetValue(str);
+ if (strings && view->GetValueList() && view->GetValueList()->IsShown() && view->GetValueList()->Number() > 0)
{
- view->GetValueList()->SetStringSelection(str.GetData());
+ view->GetValueList()->SetStringSelection(str);
}
return TRUE;
}
if (!view->GetValueText())
return FALSE;
wxString str(property->GetValue().GetStringRepresentation());
- view->GetValueText()->SetValue(str.GetData());
+ view->GetValueText()->SetValue(str);
return TRUE;
}