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

clGUILocate Class Reference

GUI for locating. More...

#include <GUILocate.hh>

Collaboration diagram for clGUILocate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clGUILocate ()
 ~clGUILocate ()
int Main (int *, char ***)
gboolean OnDelete (GtkWidget *, GdkEvent *, gpointer)
void OnConnectClick (GtkButton *, gpointer)
void OnPaletteActivate (GtkMenuItem *, gpointer)
gboolean OnLocateExpose (GtkWidget *, GdkEventExpose *, gpointer)
gboolean OnLocateMotion (GtkWidget *, GdkEventMotion *, gpointer)
void OnGdkInput (gpointer, gint, GdkInputCondition)

Private Member Functions

bool GetCfg ()
bool Build ()
bool BuildTable1 ()
bool BuildTable2 ()
bool BuildLocate ()
bool ConnectSignals ()
bool BuildDrawingPrims ()
bool ConnectToServer (const char *, int)
void DisplayResults ()

Private Attributes

bool bRun
bool bConnected
int iPalette
int iMsgSize
stLocateHdr sHdr
stLocateRes sRes
gint iGdkInputTag
GList * glServer
GdkGC * ggcLocateBG
GdkGC * ggcLocateFG
GdkCursor * gcCrossHair
GtkWidget * gwWindow
GtkWidget * gwVBox
GtkWidget * gwTable1
GtkWidget * gwLServer
GtkWidget * gwCServer
GtkWidget * gwBConnect
GtkWidget * gwTable2
GtkWidget * gwLPalette
GtkWidget * gwOMPalette
GtkWidget * gwMPalette
GtkWidget * gwaMIPalette [GUILOC_PALETTE_ITEMS]
GtkWidget * gwSWLocate
GtkWidget * gwDALocate
clAlloc ResMsg
clAlloc ResMatrix
clAlloc ResFrame
clCfgFile Cfg
clGtkUtils GtkUtils
clLocateMsg Msg
clPalette Pal
clSockClie SClient
clSockOp SOp

Detailed Description

GUI for locating.

Definition at line 71 of file GUILocate.hh.


Constructor & Destructor Documentation

clGUILocate::clGUILocate  ) 
 

Definition at line 345 of file GUILocate.cc.

References bConnected, and bRun.

clGUILocate::~clGUILocate  ) 
 

Definition at line 352 of file GUILocate.cc.


Member Function Documentation

bool clGUILocate::GetCfg  )  [private]
 

Definition at line 98 of file GUILocate.cc.

References Cfg, clPalette::GenBW(), clCfgFile::GetInt(), GUILOC_CFGFILE, iPalette, OnPaletteActivate(), Pal, and clCfgFile::SetFileName().

Referenced by Main().

bool clGUILocate::Build  )  [private]
 

Definition at line 114 of file GUILocate.cc.

References BuildDrawingPrims(), BuildLocate(), BuildTable1(), BuildTable2(), ConnectSignals(), cpWindowTxt, gcCrossHair, GUILOC_WSPACING, gwDALocate, gwVBox, and gwWindow.

Referenced by Main().

bool clGUILocate::BuildTable1  )  [private]
 

Definition at line 135 of file GUILocate.cc.

References clGtkUtils::ComboListFromFile(), cpBConnectTxt, cpLServerTxt, glServer, GtkUtils, GUILOC_HOSTFILE, GUILOC_SERVER_MAXLEN, GUILOC_WSPACING, gwBConnect, gwCServer, gwLServer, gwTable1, and gwVBox.

Referenced by Build().

bool clGUILocate::BuildTable2  )  [private]
 

Definition at line 179 of file GUILocate.cc.

References clGtkUtils::BuildOptionMenu(), cpaLPaletteMenu, cpLPaletteTxt, GtkUtils, GUILOC_PALETTE_ITEMS, GUILOC_WSPACING, gwaMIPalette, gwLPalette, gwMPalette, gwOMPalette, gwTable2, gwVBox, and iPalette.

Referenced by Build().

bool clGUILocate::BuildLocate  )  [private]
 

Definition at line 210 of file GUILocate.cc.

References gwDALocate, gwSWLocate, and gwVBox.

Referenced by Build().

bool clGUILocate::ConnectSignals  )  [private]
 

Definition at line 229 of file GUILocate.cc.

References GUILOC_PALETTE_ITEMS, gwaMIPalette, gwBConnect, gwDALocate, gwWindow, WrapOnConnectClick(), WrapOnDelete(), WrapOnLocateExpose(), WrapOnLocateMotion(), and WrapOnPaletteActivate().

Referenced by Build().

bool clGUILocate::BuildDrawingPrims  )  [private]
 

Definition at line 256 of file GUILocate.cc.

References gcCrossHair, ggcLocateBG, ggcLocateFG, GUILOC_LOCATE_BG, GUILOC_LOCATE_FG, and gwDALocate.

Referenced by Build().

bool clGUILocate::ConnectToServer const char *  ,
int 
[private]
 

Definition at line 276 of file GUILocate.cc.

References clSockClie::Connect(), clLocateMsg::GetHeader(), GLOBAL_HEADER_LEN, Msg, clSockOp::ReadN(), SClient, clSockOp::SetHandle(), sHdr, and SOp.

Referenced by OnConnectClick().

void clGUILocate::DisplayResults  )  [private]
 

Definition at line 294 of file GUILocate.cc.

References GDT, ggcLocateFG, gwDALocate, gwSWLocate, _stLocateHdr::iHeight, _stLocateHdr::iWidth, _stLocateRes::lPointCount, Pal, ResFrame, ResMatrix, sHdr, clPalette::Size(), and sRes.

Referenced by OnGdkInput().

int clGUILocate::Main int *  ,
char *** 
 

Definition at line 357 of file GUILocate.cc.

References Build(), cpWindowTxt, GetCfg(), GUILOC_VER_MAJ, GUILOC_VER_MIN, and GUILOC_VER_PL.

Referenced by main().

gboolean clGUILocate::OnDelete GtkWidget *  ,
GdkEvent *  ,
gpointer 
 

Definition at line 376 of file GUILocate.cc.

References bRun.

Referenced by WrapOnDelete().

void clGUILocate::OnConnectClick GtkButton *  ,
gpointer 
 

Definition at line 385 of file GUILocate.cc.

References bConnected, clSockOp::Close(), ConnectToServer(), GDT, clSockOp::GetHandle(), GLOBAL_HEADER_LEN, gwCServer, gwDALocate, iGdkInputTag, _stLocateHdr::iHeight, iMsgSize, _stLocateHdr::iWidth, ResFrame, ResMatrix, ResMsg, sHdr, SOp, and WrapOnGdkInput().

Referenced by WrapOnConnectClick().

void clGUILocate::OnPaletteActivate GtkMenuItem *  ,
gpointer 
 

Definition at line 429 of file GUILocate.cc.

References clPalette::GenBW(), clPalette::GenDir(), clPalette::GenGreen(), clPalette::GenGreen2(), clPalette::GenHSV(), clPalette::GenLight(), clPalette::GenPureGreen(), clPalette::GenTemp(), clPalette::GenWB(), GUILOC_PAL_BW, GUILOC_PAL_DIR, GUILOC_PAL_GREEN, GUILOC_PAL_GREEN2, GUILOC_PAL_HSV, GUILOC_PAL_LIGHT, GUILOC_PAL_PUREGREEN, GUILOC_PAL_TEMP, GUILOC_PAL_WB, iPalette, and Pal.

Referenced by GetCfg(), and WrapOnPaletteActivate().

gboolean clGUILocate::OnLocateExpose GtkWidget *  ,
GdkEventExpose *  ,
gpointer 
 

Definition at line 467 of file GUILocate.cc.

References ggcLocateFG, gwDALocate, _stLocateHdr::iHeight, _stLocateHdr::iWidth, ResFrame, and sHdr.

Referenced by WrapOnLocateExpose().

gboolean clGUILocate::OnLocateMotion GtkWidget *  ,
GdkEventMotion *  ,
gpointer 
 

Definition at line 497 of file GUILocate.cc.

Referenced by WrapOnLocateMotion().

void clGUILocate::OnGdkInput gpointer  ,
gint  ,
GdkInputCondition 
 

Definition at line 504 of file GUILocate.cc.

References bConnected, bRun, clSockOp::Close(), DisplayResults(), GDT, clLocateMsg::GetResult(), iGdkInputTag, iMsgSize, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), ResMatrix, ResMsg, SOp, and sRes.

Referenced by WrapOnGdkInput().


Member Data Documentation

bool clGUILocate::bRun [private]
 

Definition at line 73 of file GUILocate.hh.

Referenced by clGUILocate(), OnDelete(), and OnGdkInput().

bool clGUILocate::bConnected [private]
 

Definition at line 74 of file GUILocate.hh.

Referenced by clGUILocate(), OnConnectClick(), and OnGdkInput().

int clGUILocate::iPalette [private]
 

Definition at line 75 of file GUILocate.hh.

Referenced by BuildTable2(), GetCfg(), and OnPaletteActivate().

int clGUILocate::iMsgSize [private]
 

Definition at line 76 of file GUILocate.hh.

Referenced by OnConnectClick(), and OnGdkInput().

stLocateHdr clGUILocate::sHdr [private]
 

Definition at line 77 of file GUILocate.hh.

Referenced by ConnectToServer(), DisplayResults(), OnConnectClick(), and OnLocateExpose().

stLocateRes clGUILocate::sRes [private]
 

Definition at line 78 of file GUILocate.hh.

Referenced by DisplayResults(), and OnGdkInput().

gint clGUILocate::iGdkInputTag [private]
 

Definition at line 80 of file GUILocate.hh.

Referenced by OnConnectClick(), and OnGdkInput().

GList* clGUILocate::glServer [private]
 

Definition at line 81 of file GUILocate.hh.

Referenced by BuildTable1().

GdkGC* clGUILocate::ggcLocateBG [private]
 

Definition at line 84 of file GUILocate.hh.

Referenced by BuildDrawingPrims().

GdkGC* clGUILocate::ggcLocateFG [private]
 

Definition at line 85 of file GUILocate.hh.

Referenced by BuildDrawingPrims(), DisplayResults(), and OnLocateExpose().

GdkCursor* clGUILocate::gcCrossHair [private]
 

Definition at line 86 of file GUILocate.hh.

Referenced by Build(), and BuildDrawingPrims().

GtkWidget* clGUILocate::gwWindow [private]
 

Definition at line 90 of file GUILocate.hh.

Referenced by Build(), and ConnectSignals().

GtkWidget* clGUILocate::gwVBox [private]
 

Definition at line 91 of file GUILocate.hh.

Referenced by Build(), BuildLocate(), BuildTable1(), and BuildTable2().

GtkWidget* clGUILocate::gwTable1 [private]
 

Definition at line 93 of file GUILocate.hh.

Referenced by BuildTable1().

GtkWidget* clGUILocate::gwLServer [private]
 

Definition at line 94 of file GUILocate.hh.

Referenced by BuildTable1().

GtkWidget* clGUILocate::gwCServer [private]
 

Definition at line 95 of file GUILocate.hh.

Referenced by BuildTable1(), and OnConnectClick().

GtkWidget* clGUILocate::gwBConnect [private]
 

Definition at line 96 of file GUILocate.hh.

Referenced by BuildTable1(), and ConnectSignals().

GtkWidget* clGUILocate::gwTable2 [private]
 

Definition at line 98 of file GUILocate.hh.

Referenced by BuildTable2().

GtkWidget* clGUILocate::gwLPalette [private]
 

Definition at line 99 of file GUILocate.hh.

Referenced by BuildTable2().

GtkWidget* clGUILocate::gwOMPalette [private]
 

Definition at line 100 of file GUILocate.hh.

Referenced by BuildTable2().

GtkWidget* clGUILocate::gwMPalette [private]
 

Definition at line 101 of file GUILocate.hh.

Referenced by BuildTable2().

GtkWidget* clGUILocate::gwaMIPalette[GUILOC_PALETTE_ITEMS] [private]
 

Definition at line 102 of file GUILocate.hh.

Referenced by BuildTable2(), and ConnectSignals().

GtkWidget* clGUILocate::gwSWLocate [private]
 

Definition at line 104 of file GUILocate.hh.

Referenced by BuildLocate(), and DisplayResults().

GtkWidget* clGUILocate::gwDALocate [private]
 

Definition at line 105 of file GUILocate.hh.

Referenced by Build(), BuildDrawingPrims(), BuildLocate(), ConnectSignals(), DisplayResults(), OnConnectClick(), and OnLocateExpose().

clAlloc clGUILocate::ResMsg [private]
 

Definition at line 107 of file GUILocate.hh.

Referenced by OnConnectClick(), and OnGdkInput().

clAlloc clGUILocate::ResMatrix [private]
 

Definition at line 108 of file GUILocate.hh.

Referenced by DisplayResults(), OnConnectClick(), and OnGdkInput().

clAlloc clGUILocate::ResFrame [private]
 

Definition at line 109 of file GUILocate.hh.

Referenced by DisplayResults(), OnConnectClick(), and OnLocateExpose().

clCfgFile clGUILocate::Cfg [private]
 

Definition at line 110 of file GUILocate.hh.

Referenced by GetCfg().

clGtkUtils clGUILocate::GtkUtils [private]
 

Definition at line 111 of file GUILocate.hh.

Referenced by BuildTable1(), and BuildTable2().

clLocateMsg clGUILocate::Msg [private]
 

Definition at line 112 of file GUILocate.hh.

Referenced by ConnectToServer(), and OnGdkInput().

clPalette clGUILocate::Pal [private]
 

Definition at line 113 of file GUILocate.hh.

Referenced by DisplayResults(), GetCfg(), and OnPaletteActivate().

clSockClie clGUILocate::SClient [private]
 

Definition at line 114 of file GUILocate.hh.

Referenced by ConnectToServer().

clSockOp clGUILocate::SOp [private]
 

Definition at line 115 of file GUILocate.hh.

Referenced by ConnectToServer(), OnConnectClick(), and OnGdkInput().


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