/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the tools applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain
** additional rights. These rights are described in the Nokia Qt LGPL
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
** package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://www.qtsoftware.com/contact.
** $QT_END_LICENSE$
**
****************************************************************************/
#include "ui4_p.h"
#ifdef QUILOADER_QDOM_READ
#include <QtXml/QDomElement>
#endif
QT_BEGIN_NAMESPACE
#ifdef QFORMINTERNAL_NAMESPACE
using namespace QFormInternal;
#endif
/*******************************************************************************
** Implementations
*/
void DomUI::clear(bool clear_all)
{
delete m_widget;
delete m_layoutDefault;
delete m_layoutFunction;
delete m_customWidgets;
delete m_tabStops;
delete m_images;
delete m_includes;
delete m_resources;
delete m_connections;
delete m_designerdata;
delete m_slots;
delete m_buttonGroups;
if (clear_all) {
m_text.clear();
m_has_attr_version = false;
m_has_attr_language = false;
m_has_attr_displayname = false;
m_has_attr_stdsetdef = false;
m_attr_stdsetdef = 0;
m_has_attr_stdSetDef = false;
m_attr_stdSetDef = 0;
}
m_children = 0;
m_widget = 0;
m_layoutDefault = 0;
m_layoutFunction = 0;
m_customWidgets = 0;
m_tabStops = 0;
m_images = 0;
m_includes = 0;
m_resources = 0;
m_connections = 0;
m_designerdata = 0;
m_slots = 0;
m_buttonGroups = 0;
}
DomUI::DomUI()
{
m_children = 0;
m_has_attr_version = false;
m_has_attr_language = false;
m_has_attr_displayname = false;
m_has_attr_stdsetdef = false;
m_attr_stdsetdef = 0;
m_has_attr_stdSetDef = false;
m_attr_stdSetDef = 0;
m_widget = 0;
m_layoutDefault = 0;
m_layoutFunction = 0;
m_customWidgets = 0;
m_tabStops = 0;
m_images = 0;
m_includes = 0;
m_resources = 0;
m_connections = 0;
m_designerdata = 0;
m_slots = 0;
m_buttonGroups = 0;
}
DomUI::~DomUI()
{
delete m_widget;
delete m_layoutDefault;
delete m_layoutFunction;
delete m_customWidgets;
delete m_tabStops;
delete m_images;
delete m_includes;
delete m_resources;
delete m_connections;
delete m_designerdata;
delete m_slots;
delete m_buttonGroups;
}
void DomUI::read(QXmlStreamReader &reader)
{
foreach (const QXmlStreamAttribute &attribute, reader.attributes()) {
QStringRef name = attribute.name();
if (name == QLatin1String("version")) {
setAttributeVersion(attribute.value().toString());
continue;
}
if (name == QLatin1String("language")) {
setAttributeLanguage(attribute.value().toString());
continue;
}
if (name == QLatin1String("displayname")) {
setAttributeDisplayname(attribute.value().toString());
continue;
}
if (name == QLatin1String("stdsetdef")) {
setAttributeStdsetdef(attribute.value().toString().toInt());
continue;
}
if (name == QLatin1String("stdSetDef")) {
setAttributeStdSetDef(attribute.value().toString().toInt());
continue;
}
reader.raiseError(QLatin1String("Unexpected attribute ") + name.toString());
}
for (bool finished = false; !finished && !reader.hasError();) {
switch (reader.readNext()) {
case QXmlStreamReader::StartElement : {
const QString tag = reader.name().toString().toLower();
if (tag == QLatin1String("author")) {
setElementAuthor(reader.readElementText());
continue;
}
if (tag == QLatin1String("comment")) {
setElementComment(reader.readElementText());
continue;
}
if (tag == QLatin1String("exportmacro")) {
setElementExportMacro(reader.readElementText());
continue;
}
if (tag == QLatin1String("class")) {
setElementClass(reader.readElementText());
continue;
}
if (tag == QLatin1String("widget")) {
DomWidget *v = new DomWidget();
v->read(reader);
setElementWidget(v);
continue;
}
if (tag == QLatin1String("layoutdefault")) {
DomLayoutDefault *v = new DomLayoutDefault();
v->read(reader);
setElementLayoutDefault(v);
continue;
}
if (tag == QLatin1String("layoutfunction")) {
DomLayoutFunction *v = new DomLayoutFunction();
v->read(reader);
setElementLayoutFunction(v);
continue;
}
if (tag == QLatin1String("pixmapfunction")) {
setElementPixmapFunction(reader.readElementText());
continue;
}
if (tag == QLatin1String("customwidgets")) {
DomCustomWidgets *v = new DomCustomWidgets();
v->read(reader);
setElementCustomWidgets(v);
continue;
}
if (tag == QLatin1String("tabstops")) {
DomTabStops *v = new DomTabStops();
v->read(reader);
setElementTabStops(v);
continue;
}
if (tag == QLatin1String("images")) {
DomImages *v = new DomImages();
v->read(reader);
setElementImages(v);
continue;
}
if (tag == QLatin1String("includes")) {
DomIncludes *v = new DomIncludes();
v->read(reader);
setElementIncludes(v);
continue;
}
if (tag == QLatin1String("resources")) {
DomResources *v = new DomResources();
v->read(reader);
setElementResources(v);
continue;
}
if (tag == QLatin1String("connections")) {
DomConnections *v = new DomConnections();
v->read(reader);
setElementConnections(v);
continue;
}
if (tag ==
没有合适的资源?快使用搜索试试~ 我知道了~
QtDesigner for linux 源代码包
共776个文件
h:275个
cpp:244个
png:177个
2星 需积分: 14 67 下载量 172 浏览量
2009-10-28
14:11:47
上传
评论
收藏 5.68MB RAR 举报
温馨提示
QtDesigner for linux 的源代码包,网上不太好下载到,诺基亚官方网有,但是那个网站似乎怎么也连不上去..。看到CSDN上也没有这些资源,发一个上来大家分享吧。
资源推荐
资源详情
资源评论
收起资源包目录
QtDesigner for linux 源代码包 (776个子文件)
ui4.cpp 283KB
qdesigner_resource.cpp 110KB
designerpropertymanager.cpp 102KB
abstractformbuilder.cpp 99KB
qdesigner_command.cpp 90KB
formwindow.cpp 90KB
qtresourceeditordialog.cpp 83KB
qlayout_widget.cpp 81KB
qdesigner_propertysheet.cpp 62KB
qdesigner_propertycommand.cpp 59KB
qdesigner_actions.cpp 50KB
propertyeditor.cpp 47KB
connectionedit.cpp 46KB
layout.cpp 43KB
formwindowmanager.cpp 39KB
qdesigner_menu.cpp 38KB
qdesigner_workbench.cpp 37KB
widgetfactory.cpp 33KB
widgetboxtreewidget.cpp 33KB
widgetdatabase.cpp 31KB
objectinspector.cpp 30KB
quiloader.cpp 29KB
qdesigner_taskmenu.cpp 29KB
actioneditor.cpp 28KB
previewmanager.cpp 27KB
signalsloteditorwindow.cpp 27KB
qdesigner_menubar.cpp 26KB
qdesigner_utils.cpp 25KB
button_taskmenu.cpp 25KB
qtresourceview.cpp 25KB
properties.cpp 24KB
morphmenu.cpp 24KB
abstractformwindow.cpp 24KB
qtresourcemodel.cpp 22KB
richtexteditor.cpp 22KB
layout_propertysheet.cpp 22KB
pluginmanager.cpp 22KB
widgetselection.cpp 22KB
treewidgeteditor.cpp 22KB
qscripthighlighter.cpp 21KB
newformwidget.cpp 21KB
qdesigner_tabwidget.cpp 21KB
objectinspectormodel.cpp 20KB
paletteeditor.cpp 20KB
actionrepository.cpp 20KB
signalslotdialog.cpp 19KB
iconselector.cpp 19KB
formlayoutmenu.cpp 19KB
qdesigner_promotiondialog.cpp 19KB
qdesigner_formbuilder.cpp 18KB
formbuilder.cpp 17KB
formbuilderextra.cpp 17KB
qdesigner_integration.cpp 17KB
signalsloteditor.cpp 17KB
zoomwidget.cpp 17KB
itemlisteditor.cpp 16KB
qdesigner_toolbox.cpp 16KB
qdesigner_toolbar.cpp 16KB
abstractformeditor.cpp 16KB
widgetboxcategorylistview.cpp 16KB
qdesigner_promotion.cpp 16KB
formwindowbase.cpp 16KB
textpropertyeditor.cpp 15KB
stylesheeteditor.cpp 15KB
qdesigner_stackedbox.cpp 15KB
buddyeditor.cpp 15KB
embeddedoptionspage.cpp 15KB
fontpropertymanager.cpp 15KB
tablewidgeteditor.cpp 15KB
appfontdialog.cpp 15KB
qdesigner_introspection.cpp 15KB
abstractintrospection.cpp 14KB
mainwindow.cpp 14KB
abstractformwindowmanager.cpp 14KB
view3d.cpp 14KB
qdesigner_toolwindow.cpp 14KB
previewconfigurationwidget.cpp 14KB
q3widget_plugins.cpp 13KB
signalslot_utils.cpp 13KB
deviceprofile.cpp 13KB
promotiontaskmenu.cpp 13KB
qdesigner_membersheet.cpp 13KB
containerwidget_taskmenu.cpp 13KB
tabordereditor.cpp 12KB
qdesigner_widgetitem.cpp 12KB
tool_widgeteditor.cpp 12KB
brushpropertymanager.cpp 12KB
brushmanagerproxy.cpp 11KB
qdesigner.cpp 11KB
itemview_propertysheet.cpp 11KB
connectdialog.cpp 11KB
qdesigner_components.cpp 10KB
shared_settings.cpp 10KB
layoutinfo.cpp 10KB
qdesigner_formwindow.cpp 10KB
abstractwidgetdatabase.cpp 10KB
qdesigner_dnditem.cpp 10KB
qsimpleresource.cpp 10KB
dialoggui.cpp 9KB
formwindowsettings.cpp 9KB
共 776 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- songeforcode2012-04-23缺少文件啊,兄弟。。。src/qt_targets.pri和qtgradientmanager.h找不到啊,编译过不去
- LESHANLJT2012-11-13编译无法通过
- f_choco2014-07-13还可以,比较旧了
- clook8192014-06-30下载这么贵,还不能用,有职业道德没有。
- buptrh2012-07-12编译不过。。
FreyrLin
- 粉丝: 124
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- TestBrightness2.zip
- 用DAC0832产生锯齿波电压_单片机C语言实例(纯C语言源代码).zip
- [其他类别]SimpleID 0.6.5_simpleid-codepub.rar
- [图片动画]Singapore v0.10.0_singapore-0.10.0.rar
- NiceChord 好和弦:Wiwi寫給想做音樂的你,厲害的人都在用!超過80個寫歌、編曲創作原理.pdf
- IMG_20240420_234000.jpg
- [其他类别]PHP Web admin System v1.0_webadmin_php.rar
- 实用密码锁_单片机C语言实例(纯C语言源代码).zip
- 女孩写字.zip
- 请问更好发挥和规范化风格化发货
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功