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

BasicGtkWindow Class Reference

This is just a handy wrapper around Gtk::Window that provides some convenient setup functions. More...

#include <basicGtkWindow.h>

Inheritance diagram for BasicGtkWindow:

BasicGtkDialog GtkStatsBadVersionWindow GtkStatsMainWindow GtkStatsWindow GtkStatsPianoWindow GtkStatsStripWindow List of all members.

Public Member Functions

 BasicGtkWindow (bool free_store=true)
 The free_store parameter should be true if the window object has been allocated from the free store (using new) and can be safely deleted using delete when the window is destroyed by the user, or false if this is not the case.

virtual ~BasicGtkWindow ()
void setup ()
 Call this after initializing the window.

virtual bool destruct ()
 Call this to remove the window, etc.


Protected Member Functions

void delete_self ()

Static Protected Member Functions

gint static_delete (BasicGtkWindow *window)

Private Types

enum  State { S_virgin, S_setup, S_ready, S_gone }

Private Member Functions

void window_destroyed ()
gint idle_event ()

Private Attributes

bool _destroyed
bool _free_store
State _state
SigC::Connection _destroy_connection

Detailed Description

This is just a handy wrapper around Gtk::Window that provides some convenient setup functions.

Definition at line 37 of file basicGtkWindow.h.


Member Enumeration Documentation

enum BasicGtkWindow::State [private]
 

Enumeration values:
S_virgin 
S_setup 
S_ready 
S_gone 

Definition at line 52 of file basicGtkWindow.h.


Constructor & Destructor Documentation

BasicGtkWindow::BasicGtkWindow bool  free_store = true  ) 
 

The free_store parameter should be true if the window object has been allocated from the free store (using new) and can be safely deleted using delete when the window is destroyed by the user, or false if this is not the case.

Definition at line 43 of file basicGtkWindow.cxx.

References destruct().

BasicGtkWindow::~BasicGtkWindow  )  [virtual]
 

Definition at line 56 of file basicGtkWindow.cxx.

References _destroy_connection.


Member Function Documentation

void BasicGtkWindow::delete_self  )  [protected]
 

Definition at line 133 of file basicGtkWindow.cxx.

References _state, and S_ready.

bool BasicGtkWindow::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 in GtkStatsMainWindow, and GtkStatsWindow.

Definition at line 101 of file basicGtkWindow.cxx.

Referenced by BasicGtkWindow(), and GtkStatsMainWindow::~GtkStatsMainWindow().

gint BasicGtkWindow::idle_event  )  [private]
 

Definition at line 162 of file basicGtkWindow.cxx.

void BasicGtkWindow::setup  ) 
 

Call this after initializing the window.

Definition at line 69 of file basicGtkWindow.cxx.

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

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

void BasicGtkWindow::window_destroyed  )  [private]
 

Definition at line 145 of file basicGtkWindow.cxx.


Member Data Documentation

SigC::Connection BasicGtkWindow::_destroy_connection [private]
 

Definition at line 62 of file basicGtkWindow.h.

Referenced by ~BasicGtkWindow().

bool BasicGtkWindow::_destroyed [private]
 

Definition at line 59 of file basicGtkWindow.h.

Referenced by setup().

bool BasicGtkWindow::_free_store [private]
 

Definition at line 60 of file basicGtkWindow.h.

State BasicGtkWindow::_state [private]
 

Definition at line 61 of file basicGtkWindow.h.

Referenced by delete_self(), and setup().


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