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

tdeprint

droptionview.h

00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License version 2 as published by the Free Software Foundation.
00008  *
00009  *  This library is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *  Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this library; see the file COPYING.LIB.  If not, write to
00016  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  *  Boston, MA 02110-1301, USA.
00018  **/
00019 
00020 #ifndef DROPTIONVIEW_H
00021 #define DROPTIONVIEW_H
00022 
00023 #include <tqwidget.h>
00024 #include <tqgroupbox.h>
00025 #include <tqstringlist.h>
00026 
00027 class TQLineEdit;
00028 class TQSlider;
00029 class TQLabel;
00030 class TDEListBox;
00031 class TQListBoxItem;
00032 class TQVButtonGroup;
00033 class TQWidgetStack;
00034 class TQListViewItem;
00035 class DrBase;
00036 class DriverItem;
00037 
00038 class OptionBaseView : public TQWidget
00039 {
00040     Q_OBJECT
00041 public:
00042     OptionBaseView(TQWidget *parent = 0, const char *name = 0);
00043     virtual void setOption(DrBase*);
00044     virtual void setValue(const TQString&);
00045 
00046 signals:
00047     void valueChanged(const TQString&);
00048 
00049 protected:
00050     bool    blockSS;
00051 };
00052 
00053 class OptionNumericView : public OptionBaseView
00054 {
00055     Q_OBJECT
00056 public:
00057     OptionNumericView(TQWidget *parent = 0, const char *name = 0);
00058     void setOption(DrBase *opt);
00059     void setValue(const TQString& val);
00060 
00061 protected slots:
00062     void slotSliderChanged(int);
00063     void slotEditChanged(const TQString&);
00064 
00065 private:
00066     TQLineEdit  *m_edit;
00067     TQSlider    *m_slider;
00068     TQLabel     *m_minval, *m_maxval;
00069     bool        m_integer;
00070 };
00071 
00072 class OptionStringView : public OptionBaseView
00073 {
00074 public:
00075     OptionStringView(TQWidget *parent = 0, const char *name = 0);
00076     void setOption(DrBase *opt);
00077     void setValue(const TQString& val);
00078 
00079 private:
00080     TQLineEdit  *m_edit;
00081 };
00082 
00083 class OptionListView : public OptionBaseView
00084 {
00085     Q_OBJECT
00086 public:
00087     OptionListView(TQWidget *parent = 0, const char *name = 0);
00088     void setOption(DrBase *opt);
00089     void setValue(const TQString& val);
00090 
00091 protected slots:
00092     void slotSelectionChanged();
00093 
00094 private:
00095     TDEListBox  *m_list;
00096     TQStringList    m_choices;
00097 };
00098 
00099 class OptionBooleanView : public OptionBaseView
00100 {
00101     Q_OBJECT
00102 public:
00103     OptionBooleanView(TQWidget *parent = 0, const char *name = 0);
00104     void setOption(DrBase *opt);
00105     void setValue(const TQString& val);
00106 
00107 protected slots:
00108     void slotSelected(int);
00109 
00110 private:
00111     TQVButtonGroup  *m_group;
00112     TQStringList    m_choices;
00113 };
00114 
00115 class DrOptionView : public TQGroupBox
00116 {
00117     Q_OBJECT
00118 public:
00119     DrOptionView(TQWidget *parent = 0, const char *name = 0);
00120     void setAllowFixed(bool on)     { m_allowfixed = on; }
00121 
00122 signals:
00123     void changed();
00124 
00125 public slots:
00126     void slotValueChanged(const TQString&);
00127     void slotItemSelected(TQListViewItem*);
00128 
00129 private:
00130     TQWidgetStack   *m_stack;
00131     DriverItem  *m_item;
00132     bool        m_block;
00133     bool        m_allowfixed;
00134 };
00135 
00136 #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.7.1
This website is maintained by Timothy Pearson.