~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to kontour/OptionDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*-
2
 
 
3
 
  $Id: OptionDialog.h,v 1.14 2001/07/18 18:45:56 buis Exp $
4
 
 
5
 
  This file is part of KIllustrator.
6
 
  Copyright (C) 1998 Kai-Uwe Sattler (kus@iti.cs.uni-magdeburg.de)
7
 
 
8
 
  This program is free software; you can redistribute it and/or modify
9
 
  it under the terms of the GNU Library General Public License as
10
 
  published by
11
 
  the Free Software Foundation; either version 2 of the License, or
12
 
  (at your option) any later version.
13
 
 
14
 
  This program is distributed in the hope that it will be useful,
15
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
  GNU General Public License for more details.
18
 
 
19
 
  You should have received a copy of the GNU Library General Public License
20
 
  along with this program; if not, write to the Free Software
21
 
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
 
 
23
 
*/
24
 
 
25
 
#ifndef OptionDialog_h_
26
 
#define OptionDialog_h_
27
 
 
28
 
#include <kdialogbase.h>
29
 
 
30
 
class QComboBox;
31
 
class QColor;
32
 
class KColorButton;
33
 
class QCheckBox;
34
 
class UnitBox;
35
 
class GDocument;
36
 
 
37
 
class OptionDialog : public KDialogBase
38
 
{
39
 
  Q_OBJECT
40
 
public:
41
 
  OptionDialog (GDocument *adoc, QWidget* parent = 0L, const char* name = 0L);
42
 
 
43
 
  static int setup (GDocument *adoc);
44
 
 
45
 
protected:
46
 
  void createGeneralWidget (QWidget* parent);
47
 
  void createEditWidget (QWidget* parent);
48
 
  void createBGWidget (QWidget* parent);
49
 
  void createGridWidget (QWidget* parent);
50
 
  void createHorizLineWidget (QWidget* parent);
51
 
  void createVertLineWidget (QWidget* parent);
52
 
 
53
 
  void initHelplinesLists();
54
 
 
55
 
protected slots:
56
 
  void slotApply();
57
 
  void slotOk();
58
 
 
59
 
  void slotSetModified();
60
 
 
61
 
  void addHorizLine ();
62
 
  void updateHorizLine ();
63
 
  void deleteHorizLine ();
64
 
  void horizLineSelected (int idx);
65
 
 
66
 
  void addVertLine ();
67
 
  void updateVertLine ();
68
 
  void deleteVertLine ();
69
 
  void vertLineSelected (int idx);
70
 
 
71
 
private:
72
 
  GDocument *doc;
73
 
  bool modified;
74
 
 
75
 
  /*General*/
76
 
  QComboBox* unit;
77
 
  UnitBox *horiz, *vert;
78
 
  UnitBox *smallStep, *bigStep;
79
 
 
80
 
  /*Background*/
81
 
  KColorButton *bgbutton;
82
 
 
83
 
  /*Helplines*/
84
 
  UnitBox *horizValue, *vertValue;
85
 
  QListBox *horizList, *vertList;
86
 
  QValueList<float> horizLines, vertLines;
87
 
    QPushButton *addHorizHelpLine,*updateHorizHelpLine,*delHorizHelpLine;
88
 
    QPushButton *delVertHelpLine, *updateVertHelpLine,*addVertHelpLine;
89
 
 
90
 
  /*Grid*/
91
 
  QCheckBox *gbutton, *sbutton;
92
 
  UnitBox *hspinbox, *vspinbox;
93
 
  KColorButton *cbutton;
94
 
};
95
 
 
96
 
#endif