fix logic
[personal-kdelibs.git] / khtml / tests / testkhtmlnew.h
blobb6888fdd1ea5061bc080d68db995b3b116b1c904
1 #ifndef TESTKHTMLNEW_H
2 #define TESTKHTMLNEW_H
4 #include <kxmlguiwindow.h>
6 class KHTMLPart;
7 class KComboBox;
8 class QToolButton;
9 class QLineEdit;
10 class KUrl;
11 class KHTMLGlobal;
12 class QLabel;
13 class QMovie;
15 namespace KParts
17 struct BrowserArguments;
18 class OpenUrlArguments;
21 /**
22 * @internal
24 class TestKHTML : public KXmlGuiWindow
26 Q_OBJECT
27 public:
28 TestKHTML();
29 ~TestKHTML();
31 KHTMLPart *doc() const;
33 public Q_SLOTS:
34 void openUrl(const KUrl &url, const KParts::OpenUrlArguments&, const KParts::BrowserArguments &args);
35 void openUrl(const KUrl &url);
36 void openUrl(const QString &url);
37 void openUrl();
39 void reload();
40 void toggleNavigable(bool s);
41 void toggleEditable(bool s);
43 private Q_SLOTS:
44 void startLoading();
45 void finishedLoading();
47 private:
48 void setupActions();
50 KHTMLPart *m_part;
51 KComboBox *m_combo;
52 QToolButton *m_goButton;
53 QToolButton *m_reloadButton;
54 QLineEdit *m_comboEdit;
55 QLabel *m_indicator;
56 QMovie *m_movie;
58 #ifndef __KDE_HAVE_GCC_VISIBILITY
59 KHTMLGlobal *m_factory;
60 #endif
64 #endif