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

GtkStatsMainWindow Class Reference

This is the main window that's opened up and stays up all the time when you run gtk-stats. More...

#include <gtkStatsMainWindow.h>

Inheritance diagram for GtkStatsMainWindow:

BasicGtkWindow List of all members.

Public Member Functions

 GtkStatsMainWindow (int port)
virtual ~GtkStatsMainWindow ()
virtual bool destruct ()
 Call this to remove the window, etc.

void setup ()
 Call this after initializing the window.


Protected Member Functions

void delete_self ()

Static Protected Member Functions

gint static_delete (BasicGtkWindow *window)

Private Member Functions

void layout_window ()
void close_clicked ()
gint idle_callback ()

Private Attributes

int _port
GtkStatsServer_server

Detailed Description

This is the main window that's opened up and stays up all the time when you run gtk-stats.

It just shows that it's running.

Definition at line 42 of file gtkStatsMainWindow.h.


Constructor & Destructor Documentation

GtkStatsMainWindow::GtkStatsMainWindow int  port  ) 
 

Definition at line 46 of file gtkStatsMainWindow.cxx.

References nout.

GtkStatsMainWindow::~GtkStatsMainWindow  )  [virtual]
 

Definition at line 75 of file gtkStatsMainWindow.cxx.

References _server, BasicGtkWindow::destruct(), nassertr, NULL, and GtkStats::quit().


Member Function Documentation

void GtkStatsMainWindow::close_clicked  )  [private]
 

Definition at line 137 of file gtkStatsMainWindow.cxx.

void BasicGtkWindow::delete_self  )  [protected, inherited]
 

Definition at line 133 of file basicGtkWindow.cxx.

References BasicGtkWindow::_state, and BasicGtkWindow::S_ready.

bool GtkStatsMainWindow::destruct  )  [virtual]
 

Call this to remove the window, etc.

It's not tied directly to the real destructor because that seems to just lead to trouble. This returns true if it actually destructed, or false if it had already destructed previously and did nothing this time.

Reimplemented from BasicGtkWindow.

Definition at line 88 of file gtkStatsMainWindow.cxx.

References _port, and format_string().

Referenced by GtkStats::run().

gint GtkStatsMainWindow::idle_callback  )  [private]
 

Definition at line 149 of file gtkStatsMainWindow.cxx.

void GtkStatsMainWindow::layout_window  )  [private]
 

Definition at line 105 of file gtkStatsMainWindow.cxx.

void BasicGtkWindow::setup  )  [inherited]
 

Call this after initializing the window.

Definition at line 69 of file basicGtkWindow.cxx.

References BasicGtkWindow::_destroyed, GtkBase::_gtk, BasicGtkWindow::_state, BasicGtkWindow::S_gone, and BasicGtkWindow::S_virgin.

gint BasicGtkWindow::static_delete BasicGtkWindow window  )  [static, protected, inherited]
 


Member Data Documentation

int GtkStatsMainWindow::_port [private]
 

Definition at line 53 of file gtkStatsMainWindow.h.

Referenced by destruct().

GtkStatsServer* GtkStatsMainWindow::_server [private]
 

Definition at line 54 of file gtkStatsMainWindow.h.

Referenced by ~GtkStatsMainWindow().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:27:11 2003 for Panda-Tool by doxygen1.3