2011-04-19 07:16:25 +00:00
|
|
|
#include "Command.h"
|
|
|
|
|
2011-04-20 23:02:20 +00:00
|
|
|
class QWebFrame;
|
2011-04-19 07:16:25 +00:00
|
|
|
|
|
|
|
class FrameFocus : public Command {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-04-04 22:18:17 +00:00
|
|
|
FrameFocus(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
2012-03-16 23:58:58 +00:00
|
|
|
virtual void start();
|
2011-04-20 23:02:20 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void findFrames();
|
|
|
|
|
|
|
|
void focusParent();
|
|
|
|
|
|
|
|
void focusIndex(int index);
|
|
|
|
bool isFrameAtIndex(int index);
|
|
|
|
|
|
|
|
void focusId(QString id);
|
|
|
|
|
|
|
|
void success();
|
|
|
|
void frameNotFound();
|
|
|
|
|
|
|
|
QList<QWebFrame *> frames;
|
2011-04-19 07:16:25 +00:00
|
|
|
};
|
|
|
|
|