2
* This file is part of the KDE libraries
3
* Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
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.
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.
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.
23
#if !defined( _KDEPRINT_COMPILE ) && defined( __GNUC__ )
24
#warning internal header, do not use except if you are a KDEPrint developer
28
#include <kdeprint/kpreloadobject.h>
29
#include <kmainwindow.h>
35
class KActionCollection;
48
* This class is internal to KDEPrint and is not intended to be
49
* used outside it. Please do not make use of this header, except
50
* if you're a KDEPrint developer. The API might change in the
51
* future and binary compatibility might be broken.
53
class KDEPRINT_EXPORT KMMainView : public QWidget, public KPReloadObject
57
KMMainView(QWidget *parent = 0, const char *name = 0, KActionCollection *coll = 0);
60
void setOrientation(int);
61
int orientation() const;
62
void setViewType(int);
64
void enableToolbar(bool on = true);
65
KAction* action(const char *name);
66
void showPrinterInfos(bool on);
67
bool printerInfosShown() const;
71
void slotShowPrinterInfos(bool);
72
void slotChangePrinterState();
76
void slotHardDefault();
77
void slotSoftDefault();
79
void slotServerRestart();
80
void slotServerConfigure();
81
void slotManagerConfigure();
82
void slotAddSpecial();
84
void slotToolSelected(int);
85
void slotToggleFilter(bool);
89
void slotPrinterSelected(const QString&);
90
void slotRightButtonClicked(const QString&, const QPoint&);
91
void slotToggleToolBar(bool);
92
void slotToggleMenuBar(bool);
93
void slotChangeView(int);
94
void slotChangeDirection(int);
95
void slotUpdatePossible( bool );
100
void showErrorMsg(const QString& msg, bool usemgr = true);
101
void restoreSettings();
103
void loadParameters();
105
void configChanged();
106
//void aboutToReload();
107
void loadPluginActions();
108
void removePluginActions();
109
void createMessageWindow( const QString&, int delay = 500 );
110
void destroyMessageWindow();
111
void reset( const QString& msg = QString::null, bool useDelay = true, bool holdTimer = true );
114
KMPrinterView *m_printerview;
115
KMPages *m_printerpages;
117
KActionCollection *m_actions;
118
KMPrinter *m_current;
120
PluginComboBox *m_plugin;
122
QStringList m_toollist;
124
QBoxLayout *m_boxlayout;
125
class KMainWindowPrivate;
126
KMainWindowPrivate *d;
130
KDEPRINT_EXPORT int kdeprint_management_add_printer_wizard( QWidget* parent );