[glade--]code-generation from glademm

Thomas Adams <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.