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);
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 );
101 void showErrorMsg(
const TQString& msg,
bool usemgr =
true);
102 void restoreSettings();
104 void loadParameters();
106 void configChanged();
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 );
115 KMPrinterView *m_printerview;
116 KMPages *m_printerpages;
118 TDEActionCollection *m_actions;
119 KMPrinter *m_current;
120 TDEToolBar *m_toolbar;
121 PluginComboBox *m_plugin;
123 TQStringList m_toollist;
125 TQBoxLayout *m_boxlayout;
126 class TDEMainWindowPrivate;
127 TDEMainWindowPrivate *d;
128 TDEToolBar *m_menubar;
131 TDEPRINT_EXPORT
int tdeprint_management_add_printer_wizard( TQWidget* parent );