[glade--]code-generation from glademm
- From: Thomas Adams <thomas adams onlinehome de>
- To: glademm-list gnome org
- Subject: [glade--]code-generation from glademm
- Date: Tue, 20 Aug 2002 22:03:58 +0200
Hello list,
I'm a newbie to glade and glademm and to c++. I'm a little confused
about the "automatically generated c++ code" by glade.
I use the glade-tool in conjunction with the anjuta-"IDE", creating a plain
gtkmm-project with a main window and some controls on it by glade and doing
source code generation by glade I obtain things like this:
//wndMain_glade.hh
class wndMain_glade : public Gtk::Window
{
protected:
wndMain_glade();
~wndMain_glade();
};
In the constructor of this class all my custom controls are created.
Next is :
//wndMain.hh
class wndMain : public wndMain_glade
{
friend class wndMain_glade;
void on_mnuitmLogin_activate();
void on_mnuitmExit_activate();
};
The comment generated by glade tells me to customize this class, okay. But now
my question: How can I retrieve controls on my window, f.i. a menubar1?
I don't think that wndMain.menubar1 or instance_of_wndMain.menubar1 works?
Why are these controls not declared as attributes/properties in the
wndMain_glade-class?
It seems to me that I have to declare globals for that, or does anybody have
an idea for work around the access to controls lying on the wndMain from the wndMain-class.
Thomas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]