[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/wxwin/confdimdlg.h [antoine-1]
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/wxwin/confdimdlg.h [antoine-1] |
Date: |
Sun, 23 Oct 2005 13:10:53 -0400 |
Index: eliot/wxwin/confdimdlg.h
diff -u /dev/null eliot/wxwin/confdimdlg.h:1.2.2.1
--- /dev/null Sun Oct 23 17:10:52 2005
+++ eliot/wxwin/confdimdlg.h Sun Oct 23 17:10:46 2005
@@ -0,0 +1,94 @@
+/* Eliot */
+/* Copyright (C) 1999 Antoine Fraboulet */
+/* */
+/* This file is part of Eliot. */
+/* */
+/* Eliot is free software; you can redistribute it and/or modify */
+/* it under the terms of the GNU General Public License as published by */
+/* the Free Software Foundation; either version 2 of the License, or */
+/* (at your option) any later version. */
+/* */
+/* Eliot is distributed in the hope that it will be useful, */
+/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
+/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
+/* GNU General Public License for more details. */
+/* */
+/* You should have received a copy of the GNU General Public License */
+/* along with this program; if not, write to the Free Software */
+/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+/* $Id: confdimdlg.h,v 1.2.2.1 2005/10/23 17:10:46 afrab Exp $ */
+
+/**
+ * \file confdimdlg.h
+ * \brief Print configuration dialog
+ * \author Antoine Fraboulet
+ * \date 2002
+ */
+
+#ifndef _CONFDIMDLG_H
+#define _CONFDIMDLG_H
+
+#include "wx/textctrl.h"
+#include "wx/stattext.h"
+#include "wx/choice.h"
+#include "wx/button.h"
+#include "wx/dialog.h"
+
+class ConfDimDlg : public wxDialog
+{
+private:
+ ConfigDB config;
+ wxPrintData printdata;
+ wxPageSetupDialogData pagesetupdialogdata;
+
+ wxFont headfont;
+ wxFont textfont;
+
+ wxButton *bok;
+ wxButton *bcancel;
+ wxButton *bprinter;
+ wxButton *bpage;
+ wxButton *bfontheader;
+ wxButton *bsave;
+ wxButton *bfonttext;
+
+// Heading
+ wxTextCtrl* Htitle[5];
+ wxChoice* Hjust[5];
+ wxTextCtrl* Hspaces[5];
+// Text
+ wxTextCtrl* Tdim[5];
+ wxChoice* Tjust[5];
+ wxTextCtrl* Tspaces[5];
+// Dim
+ wxTextCtrl* dxbegin;
+ wxTextCtrl* dxend;
+ wxTextCtrl* dyt1;
+ wxTextCtrl* dyt2;
+ wxTextCtrl* dyh1;
+ wxTextCtrl* dyh2;
+
+ void readconf();
+ void writeconf();
+ void set(wxTextCtrl*,long);
+ long get(wxTextCtrl*);
+
+public:
+ ConfDimDlg(wxWindow* parent, wxPrintData, wxPageSetupData);
+ ~ConfDimDlg();
+ void OnButtonOk(wxCommandEvent& event);
+ void OnButtonCancel(wxCommandEvent& event);
+ void OnButtonSave(wxCommandEvent& event);
+ void OnCloseWindow (wxCloseEvent& event);
+ void OnConfFontHead(wxCommandEvent& event);
+ void OnConfFontText(wxCommandEvent& event);
+ void OnConfPage(wxCommandEvent& event);
+ void OnConfPrinter(wxCommandEvent& event);
+
+ wxPrintData& getPrintData();
+ wxPageSetupDialogData& getPageSetupDialogData();
+
+ DECLARE_EVENT_TABLE()
+};
+#endif
- [Eliot-dev] Changes to eliot/wxwin/confdimdlg.h [antoine-1],
eliot-dev <=