23 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a TDEPrint developer
28 #include <tdeprint/kpreloadobject.h>
29 #include <tdemainwindow.h>
35 class TDEActionCollection;
53 class TDEPRINT_EXPORT KMMainView :
public TQWidget,
public KPReloadObject
57 KMMainView(TQWidget *parent = 0,
const char *name = 0, TDEActionCollection *coll = 0);
60 void setOrientation(
int);
61 int orientation()
const;
62 void setViewType(
int);
64 void enableToolbar(
bool on =
true);
65 TDEAction* 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 slotServerConfigureAccess();
82 void slotManagerConfigure();
83 void slotAddSpecial();
85 void slotToolSelected(
int);
86 void slotToggleFilter(
bool);
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 );
100 void showErrorMsg(
const TQString& msg,
bool usemgr =
true);
101 void restoreSettings();
103 void loadParameters();
105 void configChanged();
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 );
114 KMPrinterView *m_printerview;
115 KMPages *m_printerpages;
117 TDEActionCollection *m_actions;
118 KMPrinter *m_current;
119 TDEToolBar *m_toolbar;
120 PluginComboBox *m_plugin;
122 TQStringList m_toollist;
124 TQBoxLayout *m_boxlayout;
125 class TDEMainWindowPrivate;
126 TDEMainWindowPrivate *d;
127 TDEToolBar *m_menubar;
130 TDEPRINT_EXPORT
int tdeprint_management_add_printer_wizard( TQWidget* parent );