00001 /* AbiWord 00002 * Copyright (C) 1998-2000 AbiSource, Inc. 00003 * Copyright (C) 2002 Tomas Frydrych <tomas@frydrych.uklinux.net> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA. 00019 */ 00020 00021 #ifndef AP_UNIXDIALOG_MARKREVISIONS_H 00022 #define AP_UNIXDIALOG_MARKREVISIONS_H 00023 00024 #include <gtk/gtk.h> 00025 #include "ap_Dialog_MarkRevisions.h" 00026 00027 class XAP_UnixFrame; 00028 00029 /*****************************************************************/ 00030 00031 class AP_UnixDialog_MarkRevisions: public AP_Dialog_MarkRevisions 00032 { 00033 public: 00034 AP_UnixDialog_MarkRevisions(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00035 virtual ~AP_UnixDialog_MarkRevisions(void); 00036 00037 virtual void runModal(XAP_Frame * pFrame); 00038 00039 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); 00040 00041 protected: 00042 typedef enum 00043 { 00044 BUTTON_OK = GTK_RESPONSE_OK, 00045 BUTTON_CANCEL = GTK_RESPONSE_CANCEL 00046 } ResponseId ; 00047 00048 virtual GtkWidget * constructWindow () ; 00049 00050 static void ok_callback ( GtkWidget*, AP_UnixDialog_MarkRevisions * me) 00051 { 00052 me->event_OK () ; 00053 } 00054 00055 static void cancel_callback ( GtkWidget*, AP_UnixDialog_MarkRevisions * me) 00056 { 00057 me->event_OK () ; 00058 } 00059 00060 static void destroy_callback ( GtkWidget*, gpointer /*unused*/, AP_UnixDialog_MarkRevisions * me) 00061 { 00062 me->event_Cancel () ; 00063 } 00064 00065 static void focus_toggled_callback ( GtkWidget *, AP_UnixDialog_MarkRevisions * me ) 00066 { 00067 me->event_FocusToggled () ; 00068 } 00069 00070 void event_OK () ; 00071 void event_Cancel () ; 00072 void event_FocusToggled () ; 00073 00074 private: 00075 00076 void constructWindowContents ( GtkWidget * container ) ; 00077 00078 GtkWidget * mRadio1 ; 00079 GtkWidget * mRadio2 ; 00080 00081 GtkWidget * mEntryLbl ; 00082 GtkWidget * mComment ; 00083 GtkWidget * mButtonOK ; 00084 }; 00085 00086 #endif /* AP_UNIXDIALOG_MARKREVISIONS_H */