File indexing completed on 2024-04-28 15:25:15
0001 #ifndef TESTKHTMLNEW_H 0002 #define TESTKHTMLNEW_H 0003 0004 #include <kxmlguiwindow.h> 0005 0006 class KHTMLPart; 0007 class QComboBox; 0008 class QToolButton; 0009 class QLineEdit; 0010 class QUrl; 0011 class KHTMLGlobal; 0012 class QLabel; 0013 class QMovie; 0014 0015 namespace KParts 0016 { 0017 struct BrowserArguments; 0018 class OpenUrlArguments; 0019 } 0020 0021 /** 0022 * @internal 0023 */ 0024 class TestKHTML : public KXmlGuiWindow 0025 { 0026 Q_OBJECT 0027 public: 0028 TestKHTML(); 0029 ~TestKHTML(); 0030 0031 KHTMLPart *doc() const; 0032 0033 public Q_SLOTS: 0034 void openUrl(const QUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &args); 0035 void openUrl(const QUrl &url); 0036 void openUrl(const QString &url); 0037 void openUrl(); 0038 0039 void reload(); 0040 void toggleNavigable(bool s); 0041 void toggleEditable(bool s); 0042 0043 private Q_SLOTS: 0044 void startLoading(); 0045 void finishedLoading(); 0046 0047 private: 0048 void setupActions(); 0049 0050 KHTMLPart *m_part; 0051 QComboBox *m_combo; 0052 QToolButton *m_goButton; 0053 QToolButton *m_reloadButton; 0054 QLineEdit *m_comboEdit; 0055 QLabel *m_indicator; 0056 QMovie *m_movie; 0057 0058 #ifndef __KDE_HAVE_GCC_VISIBILITY 0059 KHTMLGlobal *m_factory; 0060 #endif 0061 0062 }; 0063 0064 #endif