• 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
27class TQLineEdit;
28class TQSlider;
29class TQLabel;
30class TDEListBox;
31class TQListBoxItem;
32class TQVButtonGroup;
33class TQWidgetStack;
34class TQListViewItem;
35class DrBase;
36class DriverItem;
37
38class OptionBaseView : public TQWidget
39{
40 TQ_OBJECT
41public:
42 OptionBaseView(TQWidget *parent = 0, const char *name = 0);
43 virtual void setOption(DrBase*);
44 virtual void setValue(const TQString&);
45
46signals:
47 void valueChanged(const TQString&);
48
49protected:
50 bool blockSS;
51};
52
53class OptionNumericView : public OptionBaseView
54{
55 TQ_OBJECT
56public:
57 OptionNumericView(TQWidget *parent = 0, const char *name = 0);
58 void setOption(DrBase *opt);
59 void setValue(const TQString& val);
60
61protected slots:
62 void slotSliderChanged(int);
63 void slotEditChanged(const TQString&);
64
65private:
66 TQLineEdit *m_edit;
67 TQSlider *m_slider;
68 TQLabel *m_minval, *m_maxval;
69 bool m_integer;
70};
71
72class OptionStringView : public OptionBaseView
73{
74public:
75 OptionStringView(TQWidget *parent = 0, const char *name = 0);
76 void setOption(DrBase *opt);
77 void setValue(const TQString& val);
78
79private:
80 TQLineEdit *m_edit;
81};
82
83class OptionListView : public OptionBaseView
84{
85 TQ_OBJECT
86public:
87 OptionListView(TQWidget *parent = 0, const char *name = 0);
88 void setOption(DrBase *opt);
89 void setValue(const TQString& val);
90
91protected slots:
92 void slotSelectionChanged();
93
94private:
95 TDEListBox *m_list;
96 TQStringList m_choices;
97};
98
99class OptionBooleanView : public OptionBaseView
100{
101 TQ_OBJECT
102public:
103 OptionBooleanView(TQWidget *parent = 0, const char *name = 0);
104 void setOption(DrBase *opt);
105 void setValue(const TQString& val);
106
107protected slots:
108 void slotSelected(int);
109
110private:
111 TQVButtonGroup *m_group;
112 TQStringList m_choices;
113};
114
115class DrOptionView : public TQGroupBox
116{
117 TQ_OBJECT
118public:
119 DrOptionView(TQWidget *parent = 0, const char *name = 0);
120 void setAllowFixed(bool on) { m_allowfixed = on; }
121
122signals:
123 void changed();
124
125public slots:
126 void slotValueChanged(const TQString&);
127 void slotItemSelected(TQListViewItem*);
128
129private:
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.4
This website is maintained by Timothy Pearson.