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

tdeprint

  • tdeprint
  • management
kmmainview.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 KMMAINVIEW_H
21#define KMMAINVIEW_H
22
23#if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24#warning internal header, do not use except if you are a TDEPrint developer
25#endif
26
27#include <tqwidget.h>
28#include <tdeprint/kpreloadobject.h>
29#include <tdemainwindow.h>
30
31class KMManager;
32class KMPrinterView;
33class KMPrinter;
34class KMPages;
35class TDEActionCollection;
36class TQPopupMenu;
37class TQTimer;
38class TQSplitter;
39class TDEToolBar;
40class TDEAction;
41class PluginComboBox;
42class TQBoxLayout;
43class MessageWindow;
44class TQMenuBar;
45
53class TDEPRINT_EXPORT KMMainView : public TQWidget, public KPReloadObject
54{
55 TQ_OBJECT
56public:
57 KMMainView(TQWidget *parent = 0, const char *name = 0, TDEActionCollection *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 TDEAction* action(const char *name);
66 void showPrinterInfos(bool on);
67 bool printerInfosShown() const;
68
69public 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
88protected 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
98protected:
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
113private:
114 KMPrinterView *m_printerview;
115 KMPages *m_printerpages;
116 TQPopupMenu *m_pop;
117 TDEActionCollection *m_actions;
118 KMPrinter *m_current;
119 TDEToolBar *m_toolbar;
120 PluginComboBox *m_plugin;
121 int m_pactionsindex;
122 TQStringList m_toollist;
123 bool m_first;
124 TQBoxLayout *m_boxlayout;
125 class TDEMainWindowPrivate;
126 TDEMainWindowPrivate *d;
127 TDEToolBar *m_menubar;
128};
129
130TDEPRINT_EXPORT int tdeprint_management_add_printer_wizard( TQWidget* parent );
131
132#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.