• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

  • tdeprint
droptionview.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License version 2 as published by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  **/
19 
20 #ifndef DROPTIONVIEW_H
21 #define DROPTIONVIEW_H
22 
23 #include <tqwidget.h>
24 #include <tqgroupbox.h>
25 #include <tqstringlist.h>
26 
27 class TQLineEdit;
28 class TQSlider;
29 class TQLabel;
30 class TDEListBox;
31 class TQListBoxItem;
32 class TQVButtonGroup;
33 class TQWidgetStack;
34 class TQListViewItem;
35 class DrBase;
36 class DriverItem;
37 
38 class OptionBaseView : public TQWidget
39 {
40  TQ_OBJECT
41 public:
42  OptionBaseView(TQWidget *parent = 0, const char *name = 0);
43  virtual void setOption(DrBase*);
44  virtual void setValue(const TQString&);
45 
46 signals:
47  void valueChanged(const TQString&);
48 
49 protected:
50  bool blockSS;
51 };
52 
53 class OptionNumericView : public OptionBaseView
54 {
55  TQ_OBJECT
56 public:
57  OptionNumericView(TQWidget *parent = 0, const char *name = 0);
58  void setOption(DrBase *opt);
59  void setValue(const TQString& val);
60 
61 protected slots:
62  void slotSliderChanged(int);
63  void slotEditChanged(const TQString&);
64 
65 private:
66  TQLineEdit *m_edit;
67  TQSlider *m_slider;
68  TQLabel *m_minval, *m_maxval;
69  bool m_integer;
70 };
71 
72 class OptionStringView : public OptionBaseView
73 {
74 public:
75  OptionStringView(TQWidget *parent = 0, const char *name = 0);
76  void setOption(DrBase *opt);
77  void setValue(const TQString& val);
78 
79 private:
80  TQLineEdit *m_edit;
81 };
82 
83 class OptionListView : public OptionBaseView
84 {
85  TQ_OBJECT
86 public:
87  OptionListView(TQWidget *parent = 0, const char *name = 0);
88  void setOption(DrBase *opt);
89  void setValue(const TQString& val);
90 
91 protected slots:
92  void slotSelectionChanged();
93 
94 private:
95  TDEListBox *m_list;
96  TQStringList m_choices;
97 };
98 
99 class OptionBooleanView : public OptionBaseView
100 {
101  TQ_OBJECT
102 public:
103  OptionBooleanView(TQWidget *parent = 0, const char *name = 0);
104  void setOption(DrBase *opt);
105  void setValue(const TQString& val);
106 
107 protected slots:
108  void slotSelected(int);
109 
110 private:
111  TQVButtonGroup *m_group;
112  TQStringList m_choices;
113 };
114 
115 class DrOptionView : public TQGroupBox
116 {
117  TQ_OBJECT
118 public:
119  DrOptionView(TQWidget *parent = 0, const char *name = 0);
120  void setAllowFixed(bool on) { m_allowfixed = on; }
121 
122 signals:
123  void changed();
124 
125 public slots:
126  void slotValueChanged(const TQString&);
127  void slotItemSelected(TQListViewItem*);
128 
129 private:
130  TQWidgetStack *m_stack;
131  DriverItem *m_item;
132  bool m_block;
133  bool m_allowfixed;
134 };
135 
136 #endif

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.