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

FileOpen Class Reference

#include <FileOpen.h>

Collaboration diagram for FileOpen:

Collaboration graph
[legend]
List of all members.

Public Methods

 FileOpen (Config &cfg_)

Protected Methods

void ok_cb ()
void cancel_cb ()

Private Methods

 FileOpen (const FileOpen &)
FileOpen & operator= (const FileOpen &)

Private Attributes

Configm_config

Constructor & Destructor Documentation

FileOpen::FileOpen Config   cfg_
 

Definition at line 19 of file FileOpen.cpp.

References cancel_cb, and ok_cb.

00019                                 : 
00020     Gtk::FileSelection ("Open Project"),
00021     m_config (cfg_)
00022 { 
00023     trace("FileOpen::FileOpen");
00024 
00025     // clicked () is an 'emittable signal' defined in Gtk::Button class
00026     get_ok_button ()->
00027         signal_clicked ().connect (slot (*this, &FileOpen::ok_cb));
00028 
00029     // hide() is an 'emittable signal' defined in Gtk::Widget class
00030     get_cancel_button ()->
00031         signal_clicked ().connect (slot (*this, &FileOpen::cancel_cb));
00032 
00033     // Set up file filter based on extention
00034     // complete ("*.gwm");
00035     show_all ();
00036 }

FileOpen::FileOpen const FileOpen &    [private]
 


Member Function Documentation

void FileOpen::cancel_cb   [protected]
 

Definition at line 51 of file FileOpen.cpp.

Referenced by FileOpen.

00052 {
00053     trace("FileOpen::cancel_cb");
00054     hide ();
00055 
00056     // Gtk 2.0 doesn't have destroy ?
00057     // destroy ();
00058 }

void FileOpen::ok_cb   [protected]
 

Definition at line 39 of file FileOpen.cpp.

References Config::load_project, and m_config.

Referenced by FileOpen.

00040 {
00041     trace("FileOpen::ok_cb");
00042 
00043     m_config.load_project (get_filename ());
00044     hide ();
00045 
00046     // Gtk 2.0 doesn't have destroy?
00047     //destroy ();
00048 }

FileOpen& FileOpen::operator= const FileOpen &    [private]
 


Member Data Documentation

Config& FileOpen::m_config [private]
 

Definition at line 36 of file FileOpen.h.

Referenced by ok_cb.


The documentation for this class was generated from the following files:
Generated on Tue Feb 11 23:05:32 2003 for gwavmerger by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002