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.
66 lines
1.5 KiB
66 lines
1.5 KiB
14 years ago
|
/*! @file
|
||
|
|
||
|
@id $Id$
|
||
|
*/
|
||
|
// 1 2 3 4 5 6 7 8
|
||
|
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||
|
|
||
|
#ifndef __WEBVIEWWIDGETIFC_HXX
|
||
|
#define __WEBVIEWWIDGETIFC_HXX
|
||
|
|
||
|
#include <qbrowserlib/webview.hxx>
|
||
|
#include <QtDesigner>
|
||
|
|
||
|
//! WebView widget for Qt Designer
|
||
|
class WebViewWidgetIfc: public QObject, public QDesignerCustomWidgetInterface {
|
||
|
Q_OBJECT;
|
||
|
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
||
|
public:
|
||
|
bool isContainer() const {
|
||
|
return false;
|
||
|
}
|
||
|
bool isInitialized() const {
|
||
|
return _initialized;
|
||
|
}
|
||
|
QIcon icon() const {
|
||
|
return QIcon(QPixmap("qrc:/icons/webview.png"));
|
||
|
}
|
||
|
QString domXml() const {
|
||
|
return
|
||
|
" <property name=\"geometry\">\n"
|
||
|
" <rect>\n"
|
||
|
" <x>0</x>\n"
|
||
|
" <y>0</y>\n"
|
||
|
" <width>100</width>\n"
|
||
|
" <height>100</height>\n"
|
||
|
" </rect>\n"
|
||
|
" </property>\n";
|
||
|
}
|
||
|
QString group() const {
|
||
|
return "DisplayWidgets";
|
||
|
}
|
||
|
QString includeFile() const {
|
||
|
return "qbrowserlib/webview.hxx";
|
||
|
}
|
||
|
QString name() const {
|
||
|
return "SwissWebView";
|
||
|
}
|
||
|
QString toolTip() const {
|
||
|
return "SwissWebView";
|
||
|
}
|
||
|
QString whatsThis() const {
|
||
|
return "SwissWebView";
|
||
|
}
|
||
|
QWidget *createWidget(QWidget *parent) {
|
||
|
return new WebView(parent);
|
||
|
}
|
||
|
void initialize(QDesignerFormEditorInterface *core) {
|
||
|
_initialized = true;
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
bool _initialized;
|
||
|
};
|
||
|
|
||
|
#endif
|