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;
53 class KDEPRINT_EXPORT KMMainView :
public TQWidget,
public KPReloadObject
57 KMMainView(TQWidget *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 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 KActionCollection *m_actions;
118 KMPrinter *m_current;
120 PluginComboBox *m_plugin;
122 TQStringList m_toollist;
124 TQBoxLayout *m_boxlayout;
125 class KMainWindowPrivate;
126 KMainWindowPrivate *d;
130 KDEPRINT_EXPORT
int kdeprint_management_add_printer_wizard( TQWidget* parent );