#include <FileOpen.h>
Collaboration diagram for FileOpen:
Public Methods | |
FileOpen (Config &cfg_) | |
Protected Methods | |
void | ok_cb () |
void | cancel_cb () |
Private Methods | |
FileOpen (const FileOpen &) | |
FileOpen & | operator= (const FileOpen &) |
Private Attributes | |
Config & | m_config |
|
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 } |
|
|
|
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 } |
|
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 } |
|
|
|
Definition at line 36 of file FileOpen.h. Referenced by ok_cb. |