Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clGtkUtils Class Reference

Gtk+ utility class. More...

#include <GtkUtils.hh>

List of all members.

Public Member Functions

 clGtkUtils ()
 ~clGtkUtils ()
void BuildOptionMenu (const GtkWidget *, GtkWidget **, GtkWidget **, const char **, int)
 Builds and attaches entries for specified OptionMenu, sets default entry to 0.

int OptionMenuGetActive (const GtkWidget *, GtkWidget **, int)
 Get active item for option menu.

void ConnectMotionEvent (const GtkWidget *, const GtkWidget *)
 Connects widgets motion_notify_event to specified widget.

void EnableBackingStore (const GtkWidget *)
 Enables X backing store for specified widget.

void ComboListFromFile (const GtkWidget *, GList **, const char *)
 Creates Combo widget's popdown menu from specified file.


Private Member Functions

void RemoveNewLine (char *)


Detailed Description

Gtk+ utility class.

Definition at line 41 of file GtkUtils.hh.


Constructor & Destructor Documentation

clGtkUtils::clGtkUtils  )  [inline]
 

Definition at line 45 of file GtkUtils.hh.

clGtkUtils::~clGtkUtils  )  [inline]
 

Definition at line 46 of file GtkUtils.hh.


Member Function Documentation

void clGtkUtils::RemoveNewLine char *   )  [inline, private]
 

Definition at line 39 of file GtkUtils.cc.

Referenced by ComboListFromFile().

void clGtkUtils::BuildOptionMenu const GtkWidget *  ,
GtkWidget **  ,
GtkWidget **  ,
const char **  ,
int 
 

Builds and attaches entries for specified OptionMenu, sets default entry to 0.

Parameters:
gwOptionMenu Option menu widget (in)
gwpMenu Menu (out)
gwaMenuItem Menu items (out)
cpaMenuTxts Menu item texts (in)
iNumItems Itemcount (in)

Referenced by clSpectGUI::BuildTable2(), clGUILofar::BuildTable2(), clGUILocate::BuildTable2(), clGUILevel::BuildTable2(), clGUIDir::BuildTable2(), clSpectGUI::BuildTable3(), clGUILofar::BuildTable3(), and clGUIDir::BuildTable3().

int clGtkUtils::OptionMenuGetActive const GtkWidget *  ,
GtkWidget **  ,
int 
 

Get active item for option menu.

Parameters:
gwOptionMenu Option menu
gwaMenuItems Menu items
iMenuItemCount Number of menuitems
Returns:
Index of active menuitem, -1 on error

Referenced by clSpectGUI::GetSettings(), clGUIDir::GetSettings(), clGUILofar::OnPaletteActivate(), clGUILofar::SendSettings(), and clGUILevel::SendSettings().

void clGtkUtils::ConnectMotionEvent const GtkWidget *  ,
const GtkWidget * 
 

Connects widgets motion_notify_event to specified widget.

This is very useful for connecting drawing area's motion_notify_event to rulers.

Parameters:
gwDest Destination widget
gwSrc Source widget

Definition at line 96 of file GtkUtils.cc.

References EVENT_METHOD.

Referenced by clSpectGUI::ConnectSignals(), clGUILofar::ConnectSignals(), clGUILevel::ConnectSignals(), and clGUIDir::ConnectSignals().

void clGtkUtils::EnableBackingStore const GtkWidget *   ) 
 

Enables X backing store for specified widget.

Parameters:
gwWidget Widget

Definition at line 106 of file GtkUtils.cc.

Referenced by clGUIDir::Build().

void clGtkUtils::ComboListFromFile const GtkWidget *  ,
GList **  ,
const char * 
 

Creates Combo widget's popdown menu from specified file.

Note:
Free's list if already allocated
Parameters:
gwWidget Widget
pListPtr GList object pointer (out)
cpFileName Name of file

Definition at line 120 of file GtkUtils.cc.

References GListFreeItem(), GU_TXTBUFSIZE, and RemoveNewLine().

Referenced by clGUITransient::BuildTable1(), clSpectGUI::BuildTable1(), clGUILofar::BuildTable1(), clGUILocate::BuildTable1(), clGUILevel::BuildTable1(), clGUIDir::BuildTable1(), clBeamAudioUI::BuildTable1(), and clSoundChGUI::clSoundChGUI().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:18 2003 for HASAS by doxygen 1.3.3