kdelibs/khtml/tests/testkhtmlnew.h
Ivailo Monev 39f1e04295 generic: add back khtml and kjs with some changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-09 23:23:53 +02:00

64 lines
1.1 KiB
C++

#ifndef TESTKHTMLNEW_H
#define TESTKHTMLNEW_H
#include <kxmlguiwindow.h>
class KHTMLPart;
class KComboBox;
class QToolButton;
class QLineEdit;
class KUrl;
class KHTMLGlobal;
class QLabel;
class QMovie;
namespace KParts
{
struct BrowserArguments;
class OpenUrlArguments;
}
/**
* @internal
*/
class TestKHTML : public KXmlGuiWindow
{
Q_OBJECT
public:
TestKHTML();
~TestKHTML();
KHTMLPart *doc() const;
public Q_SLOTS:
void openUrl(const KUrl &url, const KParts::OpenUrlArguments&, const KParts::BrowserArguments &args);
void openUrl(const KUrl &url);
void openUrl(const QString &url);
void openUrl();
void reload();
void toggleNavigable(bool s);
void toggleEditable(bool s);
private Q_SLOTS:
void startLoading();
void finishedLoading();
private:
void setupActions();
KHTMLPart *m_part;
KComboBox *m_combo;
QToolButton *m_goButton;
QToolButton *m_reloadButton;
QLineEdit *m_comboEdit;
QLabel *m_indicator;
QMovie *m_movie;
#ifndef __KDE_HAVE_GCC_VISIBILITY
KHTMLGlobal *m_factory;
#endif
};
#endif