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

kdeprint

  • kdeprint
  • management
kmmainview.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@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 KMMAINVIEW_H
21 #define KMMAINVIEW_H
22 
23 #if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a KDEPrint developer
25 #endif
26 
27 #include <tqwidget.h>
28 #include <kdeprint/kpreloadobject.h>
29 #include <kmainwindow.h>
30 
31 class KMManager;
32 class KMPrinterView;
33 class KMPrinter;
34 class KMPages;
35 class KActionCollection;
36 class TQPopupMenu;
37 class TQTimer;
38 class TQSplitter;
39 class KToolBar;
40 class KAction;
41 class PluginComboBox;
42 class TQBoxLayout;
43 class MessageWindow;
44 class TQMenuBar;
45 
53 class KDEPRINT_EXPORT KMMainView : public TQWidget, public KPReloadObject
54 {
55  Q_OBJECT
56 public:
57  KMMainView(TQWidget *parent = 0, const char *name = 0, KActionCollection *coll = 0);
58  ~KMMainView();
59 
60  void setOrientation(int);
61  int orientation() const;
62  void setViewType(int);
63  int viewType() const;
64  void enableToolbar(bool on = true);
65  KAction* action(const char *name);
66  void showPrinterInfos(bool on);
67  bool printerInfosShown() const;
68 
69 public slots:
70  void slotTimer();
71  void slotShowPrinterInfos(bool);
72  void slotChangePrinterState();
73  void slotRemove();
74  void slotConfigure();
75  void slotAdd();
76  void slotHardDefault();
77  void slotSoftDefault();
78  void slotTest();
79  void slotServerRestart();
80  void slotServerConfigure();
81  void slotServerConfigureAccess();
82  void slotManagerConfigure();
83  void slotAddSpecial();
84  void slotRefresh();
85  void slotToolSelected(int);
86  void slotToggleFilter(bool);
87 
88 protected slots:
89  void slotPrinterSelected(const TQString&);
90  void slotRightButtonClicked(const TQString&, const TQPoint&);
91  void slotToggleToolBar(bool);
92  void slotToggleMenuBar(bool);
93  void slotChangeView(int);
94  void slotChangeDirection(int);
95  void slotUpdatePossible( bool );
96  void slotInit();
97 
98 protected:
99  void initActions();
100  void showErrorMsg(const TQString& msg, bool usemgr = true);
101  void restoreSettings();
102  void saveSettings();
103  void loadParameters();
104  void reload();
105  void configChanged();
106  //void aboutToReload();
107  void loadPluginActions();
108  void removePluginActions();
109  void createMessageWindow( const TQString&, int delay = 500 );
110  void destroyMessageWindow();
111  void reset( const TQString& msg = TQString::null, bool useDelay = true, bool holdTimer = true );
112 
113 private:
114  KMPrinterView *m_printerview;
115  KMPages *m_printerpages;
116  TQPopupMenu *m_pop;
117  KActionCollection *m_actions;
118  KMPrinter *m_current;
119  KToolBar *m_toolbar;
120  PluginComboBox *m_plugin;
121  int m_pactionsindex;
122  TQStringList m_toollist;
123  bool m_first;
124  TQBoxLayout *m_boxlayout;
125  class KMainWindowPrivate;
126  KMainWindowPrivate *d;
127  KToolBar *m_menubar;
128 };
129 
130 KDEPRINT_EXPORT int kdeprint_management_add_printer_wizard( TQWidget* parent );
131 
132 #endif

kdeprint

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

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |