• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_UnixDlg_Zoom.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998-2000 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef XAP_UNIXDIALOG_ZOOM_H
00021 #define XAP_UNIXDIALOG_ZOOM_H
00022 
00023 #include "xap_Dlg_Zoom.h"
00024 
00025 class XAP_Frame;
00026 
00027 /*****************************************************************/
00028 
00029 class XAP_UnixDialog_Zoom: public XAP_Dialog_Zoom
00030 {
00031 public:
00032     XAP_UnixDialog_Zoom(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00033     virtual ~XAP_UnixDialog_Zoom(void);
00034 
00035     virtual void            runModal(XAP_Frame * pFrame);
00036 
00037     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id);
00038 
00039 protected:
00040     // callbacks can fire these events
00041 
00042     virtual void            event_Radio200Clicked(void);
00043     virtual void            event_Radio100Clicked(void);
00044     virtual void            event_Radio75Clicked(void);
00045     virtual void            event_RadioPageWidthClicked(void);
00046     virtual void            event_RadioWholePageClicked(void);
00047 
00048     virtual void            event_RadioPercentClicked(void);
00049     virtual void            event_SpinPercentChanged(void);
00050 
00051     static void s_radio_200_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00052 
00053     static void s_radio_100_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00054 
00055     static void s_radio_75_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00056 
00057     static void s_radio_PageWidth_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00058 
00059     static void s_radio_WholePage_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00060 
00061     static void s_radio_Percent_clicked(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00062 
00063     static void s_spin_Percent_changed(GtkWidget * widget, XAP_UnixDialog_Zoom * dlg) ;
00064 
00065     // private construction functions
00066     GtkWidget * _constructWindow(void);
00067     void        _populateWindowData(void);
00068     void        _enablePercentSpin(bool enable);
00069     void        _storeWindowData(void);
00070 
00071     // pointers to widgets we need to query/set
00072     GtkWidget * m_windowMain;
00073 
00074     GtkWidget * m_radio200;
00075     GtkWidget * m_radio100;
00076     GtkWidget * m_radio75;
00077     GtkWidget * m_radioPageWidth;
00078     GtkWidget * m_radioWholePage;
00079     GtkWidget * m_radioPercent;
00080     GtkWidget * m_spinPercent;
00081     GtkAdjustment * m_spinAdj;
00082 
00083     // our "group" of radio buttons
00084     GSList *    m_radioGroup;
00085 };
00086 
00087 #endif /* XAP_UNIXDIALOG_ZOOM_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1