vdk 2.4.0
|
00001 /* 00002 * =========================== 00003 * VDK Visual Develeopment Kit 00004 * Version 0.4 00005 * October 1998 00006 * =========================== 00007 * 00008 * Copyright (C) 1998, Mario Motta 00009 * Developed by Mario Motta <mmotta@guest.net> 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Library General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Library General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Library General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00024 * 02111-1307, USA. 00025 */ 00026 00027 #ifndef FILEDLG_H 00028 #define FILEDLG_H 00029 #include <vdk/forms.h> 00030 #include <vdk/evhandle.h> 00048 class VDKFileSel: public VDKForm 00049 { 00050 00051 VDKFileSel(VDKApplication* app, 00052 char* selection, 00053 gchar* title = NULL, 00054 GtkWindowType display = GTK_WINDOW_TOPLEVEL); 00055 protected: 00056 GtkWidget* fileSel; 00057 VDKObject* ok_button,*cancel_button; 00058 VDKObjectSignal ok_s_clicked; 00059 VDKObjectSignal cancel_s_clicked; 00060 char* selection; 00061 public: 00062 VDKFileSel(VDKForm* owner, 00063 char* selection, 00064 gchar* title = ""); 00065 virtual ~VDKFileSel(); 00068 virtual void OnExpose( VDKForm*, GdkRectangle) {} 00071 virtual void OnRealize(VDKForm*) {} 00074 virtual void Setup() {} 00075 00076 bool Ok(VDKObject*); 00077 bool Cancel(VDKObject*); 00078 void Show() { VDKForm::ShowModal();} 00079 DECLARE_SIGNAL_MAP(VDKFileSel); 00080 }; 00081 #endif