• 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  void slotHelp();
88 
89 protected slots:
90  void slotPrinterSelected(const TQString&);
91  void slotRightButtonClicked(const TQString&, const TQPoint&);
92  void slotToggleToolBar(bool);
93  void slotToggleMenuBar(bool);
94  void slotChangeView(int);
95  void slotChangeDirection(int);
96  void slotUpdatePossible( bool );
97  void slotInit();
98 
99 protected:
100  void initActions();
101  void showErrorMsg(const TQString& msg, bool usemgr = true);
102  void restoreSettings();
103  void saveSettings();
104  void loadParameters();
105  void reload();
106  void configChanged();
107  //void aboutToReload();
108  void loadPluginActions();
109  void removePluginActions();
110  void createMessageWindow( const TQString&, int delay = 500 );
111  void destroyMessageWindow();
112  void reset( const TQString& msg = TQString::null, bool useDelay = true, bool holdTimer = true );
113 
114 private:
115  KMPrinterView *m_printerview;
116  KMPages *m_printerpages;
117  TQPopupMenu *m_pop;
118  KActionCollection *m_actions;
119  KMPrinter *m_current;
120  KToolBar *m_toolbar;
121  PluginComboBox *m_plugin;
122  int m_pactionsindex;
123  TQStringList m_toollist;
124  bool m_first;
125  TQBoxLayout *m_boxlayout;
126  class KMainWindowPrivate;
127  KMainWindowPrivate *d;
128  KToolBar *m_menubar;
129 };
130 
131 KDEPRINT_EXPORT int kdeprint_management_add_printer_wizard( TQWidget* parent );
132 
133 #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.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |