restructuring; refs #167
This commit is contained in:
@@ -33,16 +33,17 @@ class ButtonLineEditWidgetIfc: public QObject,
|
|||||||
TRC;
|
TRC;
|
||||||
return
|
return
|
||||||
QString
|
QString
|
||||||
("<ui language=\"c++\" displayname=\"%1\">"
|
("<ui language=\"c++\" displayname=\"%2\">"
|
||||||
" <widget class=\"qbrowserlib::%1\" name=\"%2\"/>"
|
" <widget class=\"%1\" name=\"%3\"/>"
|
||||||
" <customwidgets>"
|
" <customwidgets>"
|
||||||
" <customwidget>"
|
" <customwidget>"
|
||||||
" <class>qbrowserlib::%1</class>"
|
" <class>%1</class>"
|
||||||
" </customwidget>"
|
" </customwidget>"
|
||||||
" </customwidgets>"
|
" </customwidgets>"
|
||||||
"</ui>")
|
"</ui>")
|
||||||
.arg(name())
|
.arg(name())
|
||||||
.arg(name().toLower());
|
.arg(className())
|
||||||
|
.arg(className().toLower());
|
||||||
}
|
}
|
||||||
QString group() const {
|
QString group() const {
|
||||||
TRC;
|
TRC;
|
||||||
@@ -52,10 +53,18 @@ class ButtonLineEditWidgetIfc: public QObject,
|
|||||||
TRC;
|
TRC;
|
||||||
return "qbrowserlib/buttonlineedit.hxx";
|
return "qbrowserlib/buttonlineedit.hxx";
|
||||||
}
|
}
|
||||||
QString name() const {
|
QString namespaceName() const {
|
||||||
|
TRC;
|
||||||
|
return "qbrowserlib";
|
||||||
|
}
|
||||||
|
QString className() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "ButtonLineEdit";
|
return "ButtonLineEdit";
|
||||||
}
|
}
|
||||||
|
QString name() const {
|
||||||
|
TRC;
|
||||||
|
return QString("%1::%2").arg(namespaceName()).arg(className());
|
||||||
|
}
|
||||||
QString toolTip() const {
|
QString toolTip() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "";
|
return "";
|
||||||
@@ -68,6 +77,10 @@ class ButtonLineEditWidgetIfc: public QObject,
|
|||||||
TRC;
|
TRC;
|
||||||
return new qbrowserlib::ButtonLineEdit(parent);
|
return new qbrowserlib::ButtonLineEdit(parent);
|
||||||
}
|
}
|
||||||
|
bool isInitialized() {
|
||||||
|
TRC;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//! @}
|
//! @}
|
||||||
|
@@ -21,7 +21,7 @@ class SwissWebViewWidgetIfc: public QObject,
|
|||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
||||||
public:
|
public:
|
||||||
SwissWebViewWidgetIfc(): _initialized(false) {}
|
SwissWebViewWidgetIfc() {}
|
||||||
bool isContainer() const {
|
bool isContainer() const {
|
||||||
TRC;
|
TRC;
|
||||||
return true;
|
return true;
|
||||||
@@ -34,29 +34,38 @@ class SwissWebViewWidgetIfc: public QObject,
|
|||||||
TRC;
|
TRC;
|
||||||
return
|
return
|
||||||
QString
|
QString
|
||||||
("<ui language=\"c++\" displayname=\"%1\">"
|
("<ui language=\"c++\" displayname=\"%2\">"
|
||||||
" <widget class=\"qbrowserlib::%1\" name=\"%2\"/>"
|
" <widget class=\"%1\" name=\"%3\"/>"
|
||||||
" <customwidgets>"
|
" <customwidgets>"
|
||||||
" <customwidget>"
|
" <customwidget>"
|
||||||
" <class>qbrowserlib::%1</class>"
|
" <class>%1</class>"
|
||||||
" </customwidget>"
|
" </customwidget>"
|
||||||
" </customwidgets>"
|
" </customwidgets>"
|
||||||
"</ui>")
|
"</ui>")
|
||||||
.arg(name())
|
.arg(name())
|
||||||
.arg(name().toLower());
|
.arg(className())
|
||||||
|
.arg(className().toLower());
|
||||||
}
|
}
|
||||||
QString group() const {
|
QString group() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "Display Widgets [Examples]";
|
return "Display Widgets";
|
||||||
}
|
}
|
||||||
QString includeFile() const {
|
QString includeFile() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "qbrowserlib/swisswebview.hxx";
|
return "qbrowserlib/swisswebview.hxx";
|
||||||
}
|
}
|
||||||
QString name() const {
|
QString namespaceName() const {
|
||||||
|
TRC;
|
||||||
|
return "qbrowserlib";
|
||||||
|
}
|
||||||
|
QString className() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "SwissWebView";
|
return "SwissWebView";
|
||||||
}
|
}
|
||||||
|
QString name() const {
|
||||||
|
TRC;
|
||||||
|
return QString("%1::%2").arg(namespaceName()).arg(className());
|
||||||
|
}
|
||||||
QString toolTip() const {
|
QString toolTip() const {
|
||||||
TRC;
|
TRC;
|
||||||
return "";
|
return "";
|
||||||
@@ -71,14 +80,9 @@ class SwissWebViewWidgetIfc: public QObject,
|
|||||||
}
|
}
|
||||||
bool isInitialized() {
|
bool isInitialized() {
|
||||||
TRC;
|
TRC;
|
||||||
return _initialized;
|
return true;
|
||||||
}
|
|
||||||
void initialized() {
|
|
||||||
TRC;
|
|
||||||
_initialized = true;
|
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
bool _initialized;
|
|
||||||
QNetworkAccessManager _net;
|
QNetworkAccessManager _net;
|
||||||
qbrowserlib::Executor _executor;
|
qbrowserlib::Executor _executor;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user