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

clGUILevel Class Reference

GUI for level server. More...

#include <GUILevel.hh>

Collaboration diagram for clGUILevel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clGUILevel ()
 ~clGUILevel ()
int Main (int *, char ***)
gboolean OnDelete (GtkWidget *, GdkEvent *, gpointer)
void OnConnectClick (GtkButton *, gpointer)
gboolean OnSofarExpose (GtkWidget *, GdkEventExpose *, gpointer)
gboolean OnSofarMotion (GtkWidget *, GdkEventMotion *, gpointer)
gboolean OnSofarConfigure (GtkWidget *, GdkEventConfigure *, gpointer)
void OnGdkInput (gpointer, gint, GdkInputCondition)

Private Member Functions

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

Private Attributes

bool bRun
bool bConnected
bool bFirstResult
int iBeamCount
long lResultPos
long lResultCount
float fDisplayLow
float fDisplayHigh
char cpResultBuf [GLOBAL_HEADER_LEN]
stLevelReq sRequest
stpLevelRes spResults
guint guSbCtxt
gint iGdkInputTag
GList * glServer
GdkGC * ggcSofarBG
GdkGC * ggcSofarFG
GdkCursor * gcCrossHair
GtkWidget * gwWindow
GtkWidget * gwVBox
GtkWidget * gwStatusBar
GtkWidget * gwTable1
GtkWidget * gwLServer
GtkWidget * gwCServer
GtkWidget * gwLChannel
GtkObject * goAChannel
GtkWidget * gwSBChannel
GtkWidget * gwBConnect
GtkWidget * gwTable2
GtkWidget * gwLAlgorithm
GtkWidget * gwOMAlgorithm
GtkWidget * gwMAlgorithm
GtkWidget * gwaMIAlgorithm [GUILEV_ALGORITHM_ITEMS]
GtkWidget * gwLIntegrationTime
GtkWidget * gwEIntegrationTime
GtkWidget * gwLLowFrequency
GtkWidget * gwELowFrequency
GtkWidget * gwLHighFrequency
GtkWidget * gwEHighFrequency
GtkWidget * gwLDisplayLow
GtkWidget * gwEDisplayLow
GtkWidget * gwLDisplayHigh
GtkWidget * gwEDisplayHigh
GtkWidget * gwTableSofar
GtkWidget * gwHRTime
GtkWidget * gwVRLevel
GtkWidget * gwDASofar
clCfgFile CfgFile
clGtkUtils GtkUtils
clSockClie SClient
clSockOp SOp
clLevelMsg Msg

Detailed Description

GUI for level server.

Definition at line 57 of file GUILevel.hh.


Constructor & Destructor Documentation

clGUILevel::clGUILevel  ) 
 

Definition at line 550 of file GUILevel.cc.

References bConnected, bRun, lResultCount, lResultPos, and spResults.

clGUILevel::~clGUILevel  ) 
 

Definition at line 560 of file GUILevel.cc.

References spResults.


Member Function Documentation

bool clGUILevel::GetCfg  )  [private]
 

Definition at line 104 of file GUILevel.cc.

References CfgFile, fDisplayHigh, fDisplayLow, _stLevelReq::fIntegrationTime, clCfgFile::GetFlt(), clCfgFile::GetInt(), GUILEV_CFGFILE, iBeamCount, clCfgFile::SetFileName(), and sRequest.

Referenced by Main().

bool clGUILevel::Build  )  [private]
 

Definition at line 116 of file GUILevel.cc.

References BuildDrawingPrims(), BuildSofar(), BuildTable1(), BuildTable2(), ConnectSignals(), cpWindowTxt, gcCrossHair, GUILEV_WSPACING, guSbCtxt, gwDASofar, gwStatusBar, gwVBox, and gwWindow.

Referenced by Main().

bool clGUILevel::BuildTable1  )  [private]
 

Definition at line 144 of file GUILevel.cc.

References clGtkUtils::ComboListFromFile(), cpaLChannelTxt, cpBConnectTxt, cpLServerTxt, glServer, goAChannel, GtkUtils, GUILEV_CH_LOWER, GUILEV_CH_UPPER, GUILEV_HOSTFILE, GUILEV_SERVER_MAXLEN, GUILEV_WSPACING, gwBConnect, gwCServer, gwLChannel, gwLServer, gwSBChannel, gwTable1, gwVBox, and iBeamCount.

Referenced by Build().

bool clGUILevel::BuildTable2  )  [private]
 

Definition at line 223 of file GUILevel.cc.

References clGtkUtils::BuildOptionMenu(), cpaLAlgorithmMenu, cpLAlgorithmTxt, cpLDisplayHighTxt, cpLDisplayLowTxt, cpLHighFrequencyTxt, cpLIntegrationTimeTxt, cpLLowFrequencyTxt, fDisplayHigh, fDisplayLow, _stLevelReq::fIntegrationTime, GtkUtils, GUILEV_ALGORITHM_ITEMS, GUILEV_ENTRY_WIDTH, GUILEV_WSPACING, gwaMIAlgorithm, gwEDisplayHigh, gwEDisplayLow, gwEHighFrequency, gwEIntegrationTime, gwELowFrequency, gwLAlgorithm, gwLDisplayHigh, gwLDisplayLow, gwLHighFrequency, gwLIntegrationTime, gwLLowFrequency, gwMAlgorithm, gwOMAlgorithm, gwTable2, gwVBox, and sRequest.

Referenced by Build().

bool clGUILevel::BuildSofar  )  [private]
 

Definition at line 358 of file GUILevel.cc.

References fDisplayHigh, fDisplayLow, GUILEV_SOFAR_HEIGHT, GUILEV_SOFAR_WIDTH, gwDASofar, gwHRTime, gwTableSofar, gwVBox, and gwVRLevel.

Referenced by Build().

bool clGUILevel::ConnectSignals  )  [private]
 

Definition at line 405 of file GUILevel.cc.

References clGtkUtils::ConnectMotionEvent(), GtkUtils, gwBConnect, gwDASofar, gwHRTime, gwVRLevel, gwWindow, WrapOnConnectClick(), WrapOnDelete(), WrapOnSofarConfigure(), WrapOnSofarExpose(), and WrapOnSofarMotion().

Referenced by Build().

bool clGUILevel::BuildDrawingPrims  )  [private]
 

Definition at line 427 of file GUILevel.cc.

References gcCrossHair, ggcSofarBG, ggcSofarFG, GUILEV_LINE_BG, GUILEV_LINE_FG, and gwDASofar.

Referenced by Build().

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

Definition at line 447 of file GUILevel.cc.

References clSockClie::Connect(), GLOBAL_HEADER_LEN, GUILEV_REQ_PROC, SClient, clSockOp::SetHandle(), SOp, and clSockOp::WriteN().

Referenced by OnConnectClick().

bool clGUILevel::SendSettings  )  [private]
 

Definition at line 462 of file GUILevel.cc.

References _stLevelReq::fHighFrequency, _stLevelReq::fIntegrationTime, _stLevelReq::fLowFrequency, GLOBAL_HEADER_LEN, GtkUtils, GUILEV_ALGORITHM_ITEMS, gwaMIAlgorithm, gwEHighFrequency, gwEIntegrationTime, gwELowFrequency, gwOMAlgorithm, gwSBChannel, _stLevelReq::iAlgorithm, iBeamCount, _stLevelReq::iChannel, Msg, clGtkUtils::OptionMenuGetActive(), clLevelMsg::SetRequest(), SOp, sRequest, and clSockOp::WriteN().

Referenced by OnConnectClick().

void clGUILevel::DisplayResults  )  [private]
 

Definition at line 495 of file GUILevel.cc.

References fDisplayHigh, fDisplayLow, ggcSofarFG, gwDASofar, lResultCount, lResultPos, and spResults.

Referenced by OnGdkInput().

void clGUILevel::InitializeDisplay  )  [private]
 

Definition at line 529 of file GUILevel.cc.

References fDisplayHigh, fDisplayLow, gwDASofar, gwEDisplayHigh, gwEDisplayLow, gwEIntegrationTime, gwHRTime, gwVRLevel, lResultPos, and spResults.

Referenced by OnGdkInput().

int clGUILevel::Main int *  ,
char *** 
 

Definition at line 566 of file GUILevel.cc.

References Build(), cpWindowTxt, GetCfg(), GUILEV_VER_MAJ, GUILEV_VER_MIN, and GUILEV_VER_PL.

Referenced by main().

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

Definition at line 585 of file GUILevel.cc.

References bRun.

Referenced by WrapOnDelete().

void clGUILevel::OnConnectClick GtkButton *  ,
gpointer 
 

Definition at line 594 of file GUILevel.cc.

References bConnected, bFirstResult, clSockOp::Close(), ConnectToServer(), clSockOp::GetHandle(), gwCServer, iGdkInputTag, SendSettings(), SOp, and WrapOnGdkInput().

Referenced by WrapOnConnectClick().

gboolean clGUILevel::OnSofarExpose GtkWidget *  ,
GdkEventExpose *  ,
gpointer 
 

Definition at line 640 of file GUILevel.cc.

References fDisplayHigh, fDisplayLow, ggcSofarFG, lResultPos, and spResults.

Referenced by WrapOnSofarExpose().

gboolean clGUILevel::OnSofarMotion GtkWidget *  ,
GdkEventMotion *  ,
gpointer 
 

Definition at line 664 of file GUILevel.cc.

References fDisplayHigh, fDisplayLow, guSbCtxt, gwStatusBar, lResultPos, and spResults.

Referenced by WrapOnSofarMotion().

gboolean clGUILevel::OnSofarConfigure GtkWidget *  ,
GdkEventConfigure *  ,
gpointer 
 

Definition at line 685 of file GUILevel.cc.

References lResultCount, and spResults.

Referenced by WrapOnSofarConfigure().

void clGUILevel::OnGdkInput gpointer  ,
gint  ,
GdkInputCondition 
 

Definition at line 697 of file GUILevel.cc.

References bConnected, bFirstResult, bRun, clSockOp::Close(), cpResultBuf, DisplayResults(), clLevelMsg::GetResult(), GLOBAL_HEADER_LEN, iGdkInputTag, InitializeDisplay(), lResultCount, lResultPos, Msg, clSockOp::ReadN(), clSockOp::ReadSelect(), SOp, and spResults.

Referenced by WrapOnGdkInput().


Member Data Documentation

bool clGUILevel::bRun [private]
 

Definition at line 59 of file GUILevel.hh.

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

bool clGUILevel::bConnected [private]
 

Definition at line 60 of file GUILevel.hh.

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

bool clGUILevel::bFirstResult [private]
 

Definition at line 61 of file GUILevel.hh.

Referenced by OnConnectClick(), and OnGdkInput().

int clGUILevel::iBeamCount [private]
 

Definition at line 62 of file GUILevel.hh.

Referenced by BuildTable1(), GetCfg(), and SendSettings().

long clGUILevel::lResultPos [private]
 

Definition at line 63 of file GUILevel.hh.

Referenced by clGUILevel(), DisplayResults(), InitializeDisplay(), OnGdkInput(), OnSofarExpose(), and OnSofarMotion().

long clGUILevel::lResultCount [private]
 

Definition at line 64 of file GUILevel.hh.

Referenced by clGUILevel(), DisplayResults(), OnGdkInput(), and OnSofarConfigure().

float clGUILevel::fDisplayLow [private]
 

Definition at line 65 of file GUILevel.hh.

Referenced by BuildSofar(), BuildTable2(), DisplayResults(), GetCfg(), InitializeDisplay(), OnSofarExpose(), and OnSofarMotion().

float clGUILevel::fDisplayHigh [private]
 

Definition at line 66 of file GUILevel.hh.

Referenced by BuildSofar(), BuildTable2(), DisplayResults(), GetCfg(), InitializeDisplay(), OnSofarExpose(), and OnSofarMotion().

char clGUILevel::cpResultBuf[GLOBAL_HEADER_LEN] [private]
 

Definition at line 67 of file GUILevel.hh.

Referenced by OnGdkInput().

stLevelReq clGUILevel::sRequest [private]
 

Definition at line 68 of file GUILevel.hh.

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

stpLevelRes clGUILevel::spResults [private]
 

Definition at line 69 of file GUILevel.hh.

Referenced by clGUILevel(), DisplayResults(), InitializeDisplay(), OnGdkInput(), OnSofarConfigure(), OnSofarExpose(), OnSofarMotion(), and ~clGUILevel().

guint clGUILevel::guSbCtxt [private]
 

Definition at line 71 of file GUILevel.hh.

Referenced by Build(), and OnSofarMotion().

gint clGUILevel::iGdkInputTag [private]
 

Definition at line 72 of file GUILevel.hh.

Referenced by OnConnectClick(), and OnGdkInput().

GList* clGUILevel::glServer [private]
 

Definition at line 73 of file GUILevel.hh.

Referenced by BuildTable1().

GdkGC* clGUILevel::ggcSofarBG [private]
 

Definition at line 76 of file GUILevel.hh.

Referenced by BuildDrawingPrims().

GdkGC* clGUILevel::ggcSofarFG [private]
 

Definition at line 77 of file GUILevel.hh.

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

GdkCursor* clGUILevel::gcCrossHair [private]
 

Definition at line 78 of file GUILevel.hh.

Referenced by Build(), and BuildDrawingPrims().

GtkWidget* clGUILevel::gwWindow [private]
 

Definition at line 82 of file GUILevel.hh.

Referenced by Build(), and ConnectSignals().

GtkWidget* clGUILevel::gwVBox [private]
 

Definition at line 83 of file GUILevel.hh.

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

GtkWidget* clGUILevel::gwStatusBar [private]
 

Definition at line 84 of file GUILevel.hh.

Referenced by Build(), and OnSofarMotion().

GtkWidget* clGUILevel::gwTable1 [private]
 

Definition at line 86 of file GUILevel.hh.

Referenced by BuildTable1().

GtkWidget* clGUILevel::gwLServer [private]
 

Definition at line 87 of file GUILevel.hh.

Referenced by BuildTable1().

GtkWidget* clGUILevel::gwCServer [private]
 

Definition at line 88 of file GUILevel.hh.

Referenced by BuildTable1(), and OnConnectClick().

GtkWidget* clGUILevel::gwLChannel [private]
 

Definition at line 89 of file GUILevel.hh.

Referenced by BuildTable1().

GtkObject* clGUILevel::goAChannel [private]
 

Definition at line 90 of file GUILevel.hh.

Referenced by BuildTable1().

GtkWidget* clGUILevel::gwSBChannel [private]
 

Definition at line 91 of file GUILevel.hh.

Referenced by BuildTable1(), and SendSettings().

GtkWidget* clGUILevel::gwBConnect [private]
 

Definition at line 92 of file GUILevel.hh.

Referenced by BuildTable1(), and ConnectSignals().

GtkWidget* clGUILevel::gwTable2 [private]
 

Definition at line 94 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwLAlgorithm [private]
 

Definition at line 95 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwOMAlgorithm [private]
 

Definition at line 96 of file GUILevel.hh.

Referenced by BuildTable2(), and SendSettings().

GtkWidget* clGUILevel::gwMAlgorithm [private]
 

Definition at line 97 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwaMIAlgorithm[GUILEV_ALGORITHM_ITEMS] [private]
 

Definition at line 98 of file GUILevel.hh.

Referenced by BuildTable2(), and SendSettings().

GtkWidget* clGUILevel::gwLIntegrationTime [private]
 

Definition at line 99 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwEIntegrationTime [private]
 

Definition at line 100 of file GUILevel.hh.

Referenced by BuildTable2(), InitializeDisplay(), and SendSettings().

GtkWidget* clGUILevel::gwLLowFrequency [private]
 

Definition at line 101 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwELowFrequency [private]
 

Definition at line 102 of file GUILevel.hh.

Referenced by BuildTable2(), and SendSettings().

GtkWidget* clGUILevel::gwLHighFrequency [private]
 

Definition at line 103 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwEHighFrequency [private]
 

Definition at line 104 of file GUILevel.hh.

Referenced by BuildTable2(), and SendSettings().

GtkWidget* clGUILevel::gwLDisplayLow [private]
 

Definition at line 105 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwEDisplayLow [private]
 

Definition at line 106 of file GUILevel.hh.

Referenced by BuildTable2(), and InitializeDisplay().

GtkWidget* clGUILevel::gwLDisplayHigh [private]
 

Definition at line 107 of file GUILevel.hh.

Referenced by BuildTable2().

GtkWidget* clGUILevel::gwEDisplayHigh [private]
 

Definition at line 108 of file GUILevel.hh.

Referenced by BuildTable2(), and InitializeDisplay().

GtkWidget* clGUILevel::gwTableSofar [private]
 

Definition at line 110 of file GUILevel.hh.

Referenced by BuildSofar().

GtkWidget* clGUILevel::gwHRTime [private]
 

Definition at line 111 of file GUILevel.hh.

Referenced by BuildSofar(), ConnectSignals(), and InitializeDisplay().

GtkWidget* clGUILevel::gwVRLevel [private]
 

Definition at line 112 of file GUILevel.hh.

Referenced by BuildSofar(), ConnectSignals(), and InitializeDisplay().

GtkWidget* clGUILevel::gwDASofar [private]
 

Definition at line 113 of file GUILevel.hh.

Referenced by Build(), BuildDrawingPrims(), BuildSofar(), ConnectSignals(), DisplayResults(), and InitializeDisplay().

clCfgFile clGUILevel::CfgFile [private]
 

Definition at line 116 of file GUILevel.hh.

Referenced by GetCfg().

clGtkUtils clGUILevel::GtkUtils [private]
 

Definition at line 117 of file GUILevel.hh.

Referenced by BuildTable1(), BuildTable2(), ConnectSignals(), and SendSettings().

clSockClie clGUILevel::SClient [private]
 

Definition at line 118 of file GUILevel.hh.

Referenced by ConnectToServer().

clSockOp clGUILevel::SOp [private]
 

Definition at line 119 of file GUILevel.hh.

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

clLevelMsg clGUILevel::Msg [private]
 

Definition at line 120 of file GUILevel.hh.

Referenced by OnGdkInput(), and SendSettings().


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