confdimdlg.h

Go to the documentation of this file.
00001 /* Eliot                                                                     */
00002 /* Copyright (C) 1999  Antoine Fraboulet                                     */
00003 /* Antoine.Fraboulet@free.fr                                                 */
00004 /*                                                                           */
00005 /* This program is free software; you can redistribute it and/or modify      */
00006 /* it under the terms of the GNU General Public License as published by      */
00007 /* the Free Software Foundation; either version 2 of the License, or         */
00008 /* (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 St, Fifth Floor, Boston, MA  02110-1301  USA */
00018 
00019 #ifndef _CONFDIMDLG_H
00020 #define _CONFDIMDLG_H
00021 
00022 #include "wx/textctrl.h"
00023 #include "wx/stattext.h"
00024 #include "wx/choice.h"
00025 #include "wx/button.h"
00026 #include "wx/dialog.h"
00027 
00028 class ConfDimDlg : public wxDialog
00029 {
00030 private:
00031   ConfigDB config;
00032   wxPrintData printdata;
00033   wxPageSetupData pagesetupdata;
00034 
00035   wxFont headfont;
00036   wxFont textfont;
00037 
00038   wxButton *bok;
00039   wxButton *bcancel;
00040   wxButton *bprinter;
00041   wxButton *bpage;
00042   wxButton *bfontheader;
00043   wxButton *bsave;
00044   wxButton *bfonttext;
00045 
00046 // Heading
00047   wxTextCtrl*   Htitle[5];
00048   wxChoice*     Hjust[5];
00049   wxTextCtrl*   Hspaces[5];
00050 // Text
00051   wxTextCtrl*   Tdim[5];
00052   wxChoice*     Tjust[5];
00053   wxTextCtrl*   Tspaces[5];
00054 // Dim
00055   wxTextCtrl*   dxbegin;
00056   wxTextCtrl*   dxend;
00057   wxTextCtrl*   dyt1;
00058   wxTextCtrl*   dyt2;
00059   wxTextCtrl*   dyh1;
00060   wxTextCtrl*   dyh2;
00061 
00062   void readconf();
00063   void writeconf();
00064   void set(wxTextCtrl*,long);
00065   long get(wxTextCtrl*);
00066 
00067 public:
00068   ConfDimDlg(wxWindow* parent, wxPrintData, wxPageSetupData);
00069   ~ConfDimDlg();
00070   void OnButtonOk(wxCommandEvent& event);
00071   void OnButtonCancel(wxCommandEvent& event);
00072   void OnButtonSave(wxCommandEvent& event);
00073   void OnCloseWindow  (wxCloseEvent& event);
00074   void OnConfFontHead(wxCommandEvent& event);
00075   void OnConfFontText(wxCommandEvent& event);
00076   void OnConfPage(wxCommandEvent& event);
00077   void OnConfPrinter(wxCommandEvent& event);
00078 
00079   wxPrintData getPrintData();
00080   wxPageSetupData getPageSetupData();
00081 
00082   DECLARE_EVENT_TABLE()
00083 };
00084 #endif

Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5