1 #ifndef __mainwindow_h__
2 #define __mainwindow_h__
4 #include <kxmlguiwindow.h>
7 #include <kparts/browserextension.h>
20 class MainWindow
: public KXmlGuiWindow
23 Q_CLASSINFO("D-Bus Interface", "org.kde.khelpcenter.khelpcenter")
29 Q_SCRIPTABLE
void openUrl( const QString
&url
);
30 Q_SCRIPTABLE
void openUrl( const QString
&url
, const QByteArray
& startup_id
);
31 Q_SCRIPTABLE
void showHome();
32 Q_SCRIPTABLE
void lastSearch();
36 void statusBarMessage(const QString
&m
);
38 void slotLastSearch();
39 void showSearchStderr();
41 Show document corresponding to given URL in viewer part.
43 void viewUrl( const QString
& );
46 Open document corresponding to given URL, i.e. show it in the viewer part
47 and select the corresponding entry in the navigator widget.
49 void openUrl( const KUrl
&url
);
54 Show document corresponding to given URL in viewer part.
56 void viewUrl( const KUrl
&url
,
57 const KParts::OpenUrlArguments
&args
= KParts::OpenUrlArguments(),
58 const KParts::BrowserArguments
&browserArgs
= KParts::BrowserArguments() );
60 virtual void saveProperties( KConfigGroup
&config
);
61 virtual void readProperties( const KConfigGroup
&config
);
67 void enableLastSearchAction();
68 void enableCopyTextAction();
74 void slotGlossSelected(const GlossaryEntry
&entry
);
75 void slotStarted(KIO::Job
*job
);
76 void slotInfoMessage(KJob
*, const QString
&);
77 void goInternalUrl( const KUrl
& );
79 This function is called when the user clicks on a link in the viewer part.
81 void slotOpenURLRequest( const KUrl
&url
,
82 const KParts::OpenUrlArguments
&args
= KParts::OpenUrlArguments(),
83 const KParts::BrowserArguments
&browserArgs
= KParts::BrowserArguments());
84 void documentCompleted();
85 void slotIncFontSizes();
86 void slotDecFontSizes();
87 void slotConfigureFonts();
88 void slotCopySelectedText();
91 void updateZoomActions();
95 Navigator
*mNavigator
;
97 QAction
*mLastSearchAction
;
99 LogDialog
*mLogDialog
;