1 // GTK_PROGRESS_DIALOG.H : write a short description here... 2 3 // Copyright (C) 2005 Tommi Hassinen. 4 5 // This package is free software; you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation; either version 2 of the License, or 8 // (at your option) any later version. 9 10 // This package is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 15 // You should have received a copy of the GNU General Public License 16 // along with this package; if not, write to the Free Software 17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 19 /*################################################################################################*/ 20 21 #ifndef GTK_PROGRESS_DIALOG_H 22 #define GTK_PROGRESS_DIALOG_H 23 24 //#include "ghemicalconfig2.h" 25 26 #include "gtk_glade_dialog.h" 27 28 /*################################################################################################*/ 29 30 class gtk_progress_dialog : public gtk_glade_dialog 31 { 32 protected: 33 34 GtkWidget * dialog; 35 36 GtkWidget * entry_job; 37 GtkWidget * drawingarea_job; int da_h; int da_w; 38 GtkWidget * progressbar_job; 39 40 bool cancel; 41 42 int g_n; int g_sz; int g_fill; 43 double * g_data; 44 45 friend class gtk_project; 46 47 public: 48 49 gtk_progress_dialog(const char *, bool, int, int); 50 ~gtk_progress_dialog(void); 51 52 static void handler_Destroy(GtkWidget *, gpointer); 53 static void handler_ButtonCancel(GtkWidget *, gpointer); 54 55 static gboolean handler_ExposeEvent(GtkWidget *, GdkEventExpose *, gpointer); 56 }; 57 58 /*################################################################################################*/ 59 60 #endif // GTK_PROGRESS_DIALOG_H 61 62 // eof 63