As I templatize each class, I need to insert a list of method
signatures. Theoretically I could grab these out of the wxXxx.h files,
but it turns out they are really ugly if I do that. (See the ugly
example below).
I could grab them out of the online wxWindows reference doc, but they
are spread out so I would have to cut and paste them individually.
Someone could write a little app that extracts the signatures from each
html help page, I suppose.
Or perhaps there's a tool (doxygen? gcc itself?) that can parse a .h
file and spit back a nice consise list of methods for that class?
Anyway, if anyone can figure out how to get me those lists, it will
save
me a bunch of time. If nothing else comes up, I'm probably going to
have
to do it manually myself, so if you want to volunteer to do some manual
cut and pasting, that would be great too.
I'll probably want to use the results of this next weekend.
Kevin
====SAMPLE UGLY LIST, COPIED FROM wx/frame.h====
virtual void SendSizeEvent() { }
void SetStatusBarPane(int n) { m_statusBarPane = n; }
int GetStatusBarPane() const { return m_statusBarPane; }
void SetStatusBar(wxStatusBar *statBar) { m_frameStatusBar =
statBar; }
virtual wxStatusBar *GetStatusBar() const { return
m_frameStatusBar;
}
virtual void SetStatusText(const wxString &text, int number = 0);
virtual void SetMenuBar(wxMenuBar *menubar);
virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; }
void PushStatusText(const wxString &text, int number = 0);
void PopStatusText(int number = 0);
virtual void SetToolBar(wxToolBar *toolbar) { m_frameToolBar =
toolbar; }
virtual wxToolBar *GetToolBar() const { return m_frameToolBar; }
virtual wxStatusBar* CreateStatusBar(int number = 1, long style =
wxST_SIZEGRIP, wxWindowID id = 0, const wxString& name =
wxStatusLineNameStr);
virtual wxToolBar* CreateToolBar(long style =
wxNO_BORDER|wxTB_HORIZONTAL, wxWindowID id = -1, const wxString& name =
wxToolBarNameStr);
virtual void SetIcon(const wxIcon& icon) { m_icons = wxIconBundle(
icon ); }
virtual void SetStatusWidths(int widths[])
====PRETTIER VERSION OF THE SAME LIST, BUILT MANUALLY====
wxStatusBar* CreateStatusBar(int number=1, long
style=wxST_SIZEGRIP,
wxWindowID id=0, const wxString& name=wxStatusLineNameStr);
wxToolBar* CreateToolBar(long style=wxNO_BORDER|wxTB_HORIZONTAL,
wxWindowID id=-1, const wxString& name=wxToolBarNameStr);
wxMenuBar *GetMenuBar();
int GetStatusBarPane();
wxToolBar *GetToolBar();
void PopStatusText(int number = 0);
void PushStatusText(const wxString &text, int number = 0);
void SendSizeEvent();
void SetIcon(const wxIcon& icon);
void SetMenuBar(wxMenuBar *menubar);
void SetStatusBarPane(int n);
void SetStatusBar(wxStatusBar *statBar);
wxStatusBar *GetStatusBar();
void SetStatusText(const wxString &text, int number = 0);
void SetStatusWidths(int widths[])
void SetToolBar(wxToolBar *toolbar);
====
_______________________________________________
Wxruby-dev mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/wxruby-dev