[glade--]Re: [gtkmm] Preferred method to access glade objects within gtkmm
- From: Christof Petig <christof petig-baender de>
- To: Jeff Gavin <jeff ezclick net>
- Cc: Chris Haidinyak <chrish techspecs com>, glademm-list <glademm-list gnome org>, gtkmm-list gnome org
- Subject: [glade--]Re: [gtkmm] Preferred method to access glade objects within gtkmm
- Date: Wed, 05 Nov 2003 09:13:07 +0100
Jeff Gavin schrieb:
Chris Haidinyak wrote:
> Hi,
>
> I know this must have come up before but I cannot seem to find an
> answer. I have several dialog objects built in glade-2 and I want to tie
> them into the main window menu handling system. The trouble seems to be
> that the glade-- program puts the definition of these objects in the
> project scope instead of the main window scope.
I would certainly love to learn more about your problems here. I do not
understand the meaning of "project scope" [see my previous mail for a
solution]
I looked at glade-- and had similar questions. I chose to use glade to
create my user interface, and use glademm to read in the interface.
You most certainly mean libglademm. Glademm is a glade ->
standalone-gtkmm-code converter and libglademm is a library to load
glade files at runtime.
Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
that's libglademm!
> Is there a preferred
> method of accessing this data from within the main window class?
> Surprisingly, I cannot find a single application out there which
> utilizes gtkmm (c++) AND glade-2 AND multiple dialog objects. I
> definitely want to learn how it is done if there is a suggested
> methodology. Please advise; thanks.
I searched HARD for a methodology too and did not find one. However, we
ended up copying and expanding the methodology that we used when
developing in VB and it has worked very well for us.
I can not think of a more decent methodology than public methods (or
public variables=widgets's methods).
Good luck! Let us know what you learn!
seconding that. You might chose to restrict to glademm-list gnome org
Christof
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]