You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.0 KiB
56 lines
1.0 KiB
15 years ago
|
#ifndef TESTKHTML_H
|
||
|
#define TESTKHTML_H
|
||
|
|
||
|
#include <kdebug.h>
|
||
14 years ago
|
#include <tqvaluelist.h>
|
||
|
#include <tqdatetime.h>
|
||
15 years ago
|
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
14 years ago
|
class Dummy : public TQObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
Dummy( KHTMLPart *part ) : TQObject( part ) { m_part = part; };
|
||
15 years ago
|
|
||
|
private slots:
|
||
|
void slotOpenURL( const KURL &url, const KParts::URLArgs &args )
|
||
|
{
|
||
|
m_part->browserExtension()->setURLArgs( args );
|
||
|
m_part->openURL( url );
|
||
|
}
|
||
|
void reload()
|
||
|
{
|
||
|
KParts::URLArgs args; args.reload = true;
|
||
|
m_part->browserExtension()->setURLArgs( args );
|
||
|
m_part->openURL( m_part->url() );
|
||
|
}
|
||
|
|
||
|
void toggleNavigable(bool s)
|
||
|
{
|
||
|
m_part->setCaretMode(s);
|
||
|
}
|
||
|
|
||
|
void toggleEditable(bool s)
|
||
|
{
|
||
|
kdDebug() << "editable: " << s << endl;
|
||
|
m_part->setEditable(s);
|
||
|
}
|
||
|
|
||
|
void doBenchmark();
|
||
|
|
||
|
void handleDone();
|
||
|
|
||
|
private:
|
||
|
KHTMLPart *m_part;
|
||
14 years ago
|
TQValueList<TQString> filesToBenchmark;
|
||
|
TQMap<TQString, TQValueList<int> > results;
|
||
15 years ago
|
int benchmarkRun;
|
||
14 years ago
|
TQTime loadTimer;
|
||
15 years ago
|
|
||
|
void nextRun();
|
||
|
};
|
||
|
|
||
|
#endif
|