uic: Remove Q3Support.

Remove code and tests.
This commit is contained in:
Friedemann Kleint 2011-05-06 09:31:21 +02:00
parent 1edc451057
commit ec88a76127
13 changed files with 15 additions and 6735 deletions

View File

@ -124,22 +124,6 @@ void WriteIncludes::acceptUI(DomUI *node)
add(QLatin1String("QButtonGroup")); // ### only if it is really necessary
add(QLatin1String("QHeaderView"));
if (m_uic->hasExternalPixmap() && m_uic->pixmapFunction() == QLatin1String("qPixmapFromMimeSource")) {
#ifdef QT_NO_QT3_SUPPORT
qWarning("%s: Warning: The form file has external pixmaps or qPixmapFromMimeSource() set as a pixmap function. "
"This requires Qt 3 support, which is disabled. The resulting code will not compile.",
qPrintable(m_uic->option().messagePrefix()));
#endif
add(QLatin1String("Q3MimeSourceFactory"));
}
if (m_uic->databaseInfo()->connections().size()) {
add(QLatin1String("QSqlDatabase"));
add(QLatin1String("Q3SqlCursor"));
add(QLatin1String("QSqlRecord"));
add(QLatin1String("Q3SqlForm"));
}
TreeWalker::acceptUI(node);
writeHeaders(m_globalIncludes, true);
@ -241,10 +225,6 @@ void WriteIncludes::add(const QString &className, bool determineHeader, const QS
return;
}
if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ListView")) ||
m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3Table"))) {
add(QLatin1String("Q3Header"));
}
if (determineHeader)
insertIncludeForClass(className, header, global);
}

View File

@ -636,7 +636,7 @@ void WriteInitialization::acceptWidget(DomWidget *node)
const QString savedParentWidget = parentWidget;
if (m_uic->isContainer(parentClass) || m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("Q3ToolBar")))
if (m_uic->isContainer(parentClass))
parentWidget.clear();
if (m_widgetChain.size() != 1)
@ -644,9 +644,7 @@ void WriteInitialization::acceptWidget(DomWidget *node)
parentWidget = savedParentWidget;
if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ComboBox"))) {
initializeComboBox3(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QComboBox"))) {
if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QComboBox"))) {
initializeComboBox(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QListWidget"))) {
initializeListWidget(node);
@ -654,18 +652,6 @@ void WriteInitialization::acceptWidget(DomWidget *node)
initializeTreeWidget(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QTableWidget"))) {
initializeTableWidget(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ListBox"))) {
initializeQ3ListBox(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ListView"))) {
initializeQ3ListView(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3IconView"))) {
initializeQ3IconView(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3Table"))) {
initializeQ3Table(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3DataTable"))) {
initializeQ3SqlDataTable(node);
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3DataBrowser"))) {
initializeQ3SqlDataBrowser(node);
}
if (m_uic->isButton(className))
@ -706,12 +692,9 @@ void WriteInitialization::acceptWidget(DomWidget *node)
id = pid->elementNumber();
}
if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("QMainWindow"))
|| m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("Q3MainWindow"))) {
if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("QMainWindow"))) {
if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QMenuBar"))) {
if (!m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("Q3MainWindow")))
m_output << m_indent << parentWidget << "->setMenuBar(" << varName <<");\n";
m_output << m_indent << parentWidget << "->setMenuBar(" << varName <<");\n";
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QToolBar"))) {
m_output << m_indent << parentWidget << "->addToolBar("
<< toolBarAreaStringFromDOMAttributes(attributes) << varName << ");\n";
@ -733,8 +716,7 @@ void WriteInitialization::acceptWidget(DomWidget *node)
m_output << m_indent << parentWidget << "->addDockWidget(" << area << varName << ");\n";
} else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QStatusBar"))) {
m_output << m_indent << parentWidget << "->setStatusBar(" << varName << ");\n";
} else if (!m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3DockWindow"))
&& !m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ToolBar"))) {
} else {
m_output << m_indent << parentWidget << "->setCentralWidget(" << varName << ");\n";
}
}
@ -747,8 +729,6 @@ void WriteInitialization::acceptWidget(DomWidget *node)
m_output << m_indent << parentWidget << "->addWidget(" << varName << ");\n";
} else if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("QToolBar"))) {
m_output << m_indent << parentWidget << "->addWidget(" << varName << ");\n";
} else if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("Q3WidgetStack"))) {
m_output << m_indent << parentWidget << "->addWidget(" << varName << ", " << id << ");\n";
} else if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("QDockWidget"))) {
m_output << m_indent << parentWidget << "->setWidget(" << varName << ");\n";
} else if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("QScrollArea"))) {
@ -809,15 +789,6 @@ void WriteInitialization::acceptWidget(DomWidget *node)
<< parentWidget << "->indexOf(" << varName << "), " << autoTrCall(pwhatsThis->elementString()) << ");\n";
}
#endif // QT_NO_WHATSTHIS
} else if (m_uic->customWidgetsInfo()->extends(parentClass, QLatin1String("Q3Wizard"))) {
const DomProperty *ptitle = attributes.value(QLatin1String("title"));
DomString *ptitleString = ptitle ? ptitle->elementString() : 0;
m_output << m_indent << parentWidget << "->addPage(" << varName << ", " << noTrCall(ptitleString, pageDefaultString) << ");\n";
autoTrOutput(ptitleString, pageDefaultString) << m_indent << parentWidget << "->setTitle("
<< varName << ", " << autoTrCall(ptitleString, pageDefaultString) << ");\n";
}
//
@ -937,28 +908,6 @@ void WriteInitialization::acceptLayout(DomLayout *node)
bool isGroupBox = false;
if (m_widgetChain.top()) {
const QString parentWidget = m_widgetChain.top()->attributeClass();
if (!m_layoutChain.top() && (m_uic->customWidgetsInfo()->extends(parentWidget, QLatin1String("Q3GroupBox"))
|| m_uic->customWidgetsInfo()->extends(parentWidget, QLatin1String("Q3ButtonGroup")))) {
const QString parent = m_driver->findOrInsertWidget(m_widgetChain.top());
isGroupBox = true;
// special case for group box
m_output << m_indent << parent << "->setColumnLayout(0, Qt::Vertical);\n";
QString objectName = parent;
objectName += QLatin1String("->layout()");
int marginType = Use43UiFile;
if (oldLayoutProperties)
marginType = m_layoutMarginType;
m_LayoutDefaultHandler.writeProperties(m_indent,
objectName, properties, marginType, false, m_output);
}
}
m_output << m_indent << varName << " = new " << className << '(';
if (!m_layoutChain.top() && !isGroupBox)
@ -966,24 +915,12 @@ void WriteInitialization::acceptLayout(DomLayout *node)
m_output << ");\n";
if (isGroupBox) {
const QString tempName = m_driver->unique(QLatin1String("boxlayout"));
m_output << m_indent << "QBoxLayout *" << tempName << " = qobject_cast<QBoxLayout *>(" <<
m_driver->findOrInsertWidget(m_widgetChain.top()) << "->layout());\n";
m_output << m_indent << "if (" << tempName << ")\n";
m_output << m_dindent << tempName << "->addLayout(" << varName << ");\n";
}
if (isGroupBox) {
m_output << m_indent << varName << "->setAlignment(Qt::AlignTop);\n";
} else {
// Suppress margin on a read child layout
const bool suppressMarginDefault = m_layoutChain.top();
int marginType = Use43UiFile;
if (oldLayoutProperties)
marginType = m_layoutMarginType;
m_LayoutDefaultHandler.writeProperties(m_indent, varName, properties, marginType, suppressMarginDefault, m_output);
}
// Suppress margin on a read child layout
const bool suppressMarginDefault = m_layoutChain.top();
int marginType = Use43UiFile;
if (oldLayoutProperties)
marginType = m_layoutMarginType;
m_LayoutDefaultHandler.writeProperties(m_indent, varName, properties, marginType, suppressMarginDefault, m_output);
m_layoutMarginType = SubLayoutMargin;
@ -1175,13 +1112,8 @@ void WriteInitialization::acceptActionRef(DomActionRef *node)
return;
} else if (m_driver->actionGroupByName(actionName)) {
return;
} else if (DomWidget *w = m_driver->widgetByName(actionName)) {
} else if (const DomWidget *w = m_driver->widgetByName(actionName)) {
isMenu = m_uic->isMenu(w->attributeClass());
bool inQ3ToolBar = m_uic->customWidgetsInfo()->extends(m_widgetChain.top()->attributeClass(), QLatin1String("Q3ToolBar"));
if (!isMenu && inQ3ToolBar) {
m_actionOut << m_indent << actionName << "->setParent(" << varName << ");\n";
return;
}
} else if (!(m_driver->actionByName(actionName) || isSeparator)) {
fprintf(stderr, "%s: Warning: action `%s' not declared\n",
qPrintable(m_option.messagePrefix()),
@ -1217,8 +1149,6 @@ void WriteInitialization::writeProperties(const QString &varName,
}
}
DomWidget *buttonGroupWidget = findWidget(QLatin1String("Q3ButtonGroup"));
QString indent;
if (!m_widgetChain.top()) {
indent = m_option.indent;
@ -1244,11 +1174,6 @@ void WriteInitialization::writeProperties(const QString &varName,
const DomRect *r = p->elementRect();
m_output << m_indent << varName << "->resize(" << r->elementWidth() << ", " << r->elementHeight() << ");\n";
continue;
} else if (propertyName == QLatin1String("buttonGroupId")) { // Q3ButtonGroup support
if (buttonGroupWidget)
m_output << m_indent << m_driver->findOrInsertWidget(buttonGroupWidget) << "->insert("
<< varName << ", " << p->elementNumber() << ");\n";
continue;
} else if (propertyName == QLatin1String("currentRow") // QListWidget::currentRow
&& m_uic->customWidgetsInfo()->extends(className, QLatin1String("QListWidget"))) {
m_delayedOut << m_indent << varName << "->setCurrentRow("
@ -1568,16 +1493,7 @@ void WriteInitialization::writeProperties(const QString &varName,
}
}
if (leftMargin != -1 || topMargin != -1 || rightMargin != -1 || bottomMargin != -1) {
QString objectName = varName;
if (m_widgetChain.top()) {
const QString parentWidget = m_widgetChain.top()->attributeClass();
if (!m_layoutChain.top() && (m_uic->customWidgetsInfo()->extends(parentWidget, QLatin1String("Q3GroupBox"))
|| m_uic->customWidgetsInfo()->extends(parentWidget, QLatin1String("Q3ButtonGroup")))) {
objectName = m_driver->findOrInsertWidget(m_widgetChain.top()) + QLatin1String("->layout()");
}
}
m_output << m_indent << objectName << QLatin1String("->setContentsMargins(")
m_output << m_indent << varName << QLatin1String("->setContentsMargins(")
<< leftMargin << QLatin1String(", ")
<< topMargin << QLatin1String(", ")
<< rightMargin << QLatin1String(", ")
@ -1934,199 +1850,6 @@ void WriteInitialization::acceptTabStops(DomTabStops *tabStops)
}
}
void WriteInitialization::initializeQ3ListBox(DomWidget *w)
{
const QString varName = m_driver->findOrInsertWidget(w);
const QString className = w->attributeClass();
const QList<DomItem*> items = w->elementItem();
if (items.isEmpty())
return;
m_refreshOut << m_indent << varName << "->clear();\n";
for (int i=0; i<items.size(); ++i) {
const DomItem *item = items.at(i);
const DomPropertyMap properties = propertyMap(item->elementProperty());
const DomProperty *text = properties.value(QLatin1String("text"));
const DomProperty *pixmap = properties.value(QLatin1String("pixmap"));
if (!(text || pixmap))
continue;
m_refreshOut << m_indent << varName << "->insertItem(";
if (pixmap) {
m_refreshOut << pixCall(pixmap);
if (text)
m_refreshOut << ", ";
}
if (text)
m_refreshOut << trCall(text->elementString());
m_refreshOut << ");\n";
}
}
void WriteInitialization::initializeQ3IconView(DomWidget *w)
{
const QString varName = m_driver->findOrInsertWidget(w);
const QString className = w->attributeClass();
const QList<DomItem*> items = w->elementItem();
if (items.isEmpty())
return;
m_refreshOut << m_indent << varName << "->clear();\n";
for (int i=0; i<items.size(); ++i) {
const DomItem *item = items.at(i);
const DomPropertyMap properties = propertyMap(item->elementProperty());
const DomProperty *text = properties.value(QLatin1String("text"));
const DomProperty *pixmap = properties.value(QLatin1String("pixmap"));
if (!(text || pixmap))
continue;
const QString itemName = m_driver->unique(QLatin1String("__item"));
m_refreshOut << "\n";
m_refreshOut << m_indent << "Q3IconViewItem *" << itemName << " = new Q3IconViewItem(" << varName << ");\n";
if (pixmap) {
m_refreshOut << m_indent << itemName << "->setPixmap(" << pixCall(pixmap) << ");\n";
}
if (text) {
m_refreshOut << m_indent << itemName << "->setText(" << trCall(text->elementString()) << ");\n";
}
}
}
void WriteInitialization::initializeQ3ListView(DomWidget *w)
{
const QString varName = m_driver->findOrInsertWidget(w);
const QString className = w->attributeClass();
// columns
const QList<DomColumn*> columns = w->elementColumn();
for (int i=0; i<columns.size(); ++i) {
const DomColumn *column = columns.at(i);
const DomPropertyMap properties = propertyMap(column->elementProperty());
const DomProperty *text = properties.value(QLatin1String("text"));
const DomProperty *pixmap = properties.value(QLatin1String("pixmap"));
const DomProperty *clickable = properties.value(QLatin1String("clickable"));
const DomProperty *resizable = properties.value(QLatin1String("resizable"));
const QString txt = trCall(text->elementString());
m_output << m_indent << varName << "->addColumn(" << txt << ");\n";
m_refreshOut << m_indent << varName << "->header()->setLabel(" << i << ", " << txt << ");\n";
if (pixmap) {
m_output << m_indent << varName << "->header()->setLabel("
<< varName << "->header()->count() - 1, " << pixCall(pixmap) << ", " << txt << ");\n";
}
if (clickable != 0) {
m_output << m_indent << varName << "->header()->setClickEnabled(" << clickable->elementBool() << ", " << varName << "->header()->count() - 1);\n";
}
if (resizable != 0) {
m_output << m_indent << varName << "->header()->setResizeEnabled(" << resizable->elementBool() << ", " << varName << "->header()->count() - 1);\n";
}
}
if (w->elementItem().size()) {
m_refreshOut << m_indent << varName << "->clear();\n";
initializeQ3ListViewItems(className, varName, w->elementItem());
}
}
void WriteInitialization::initializeQ3ListViewItems(const QString &className, const QString &varName, const QList<DomItem *> &items)
{
if (items.isEmpty())
return;
// items
for (int i=0; i<items.size(); ++i) {
const DomItem *item = items.at(i);
const QString itemName = m_driver->unique(QLatin1String("__item"));
m_refreshOut << "\n";
m_refreshOut << m_indent << "Q3ListViewItem *" << itemName << " = new Q3ListViewItem(" << varName << ");\n";
int textCount = 0, pixCount = 0;
const DomPropertyList properties = item->elementProperty();
for (int i=0; i<properties.size(); ++i) {
const DomProperty *p = properties.at(i);
if (p->attributeName() == QLatin1String("text"))
m_refreshOut << m_indent << itemName << "->setText(" << textCount++ << ", "
<< trCall(p->elementString()) << ");\n";
if (p->attributeName() == QLatin1String("pixmap"))
m_refreshOut << m_indent << itemName << "->setPixmap(" << pixCount++ << ", "
<< pixCall(p) << ");\n";
}
if (item->elementItem().size()) {
m_refreshOut << m_indent << itemName << "->setOpen(true);\n";
initializeQ3ListViewItems(className, itemName, item->elementItem());
}
}
}
void WriteInitialization::initializeQ3Table(DomWidget *w)
{
const QString varName = m_driver->findOrInsertWidget(w);
const QString className = w->attributeClass();
// columns
const QList<DomColumn*> columns = w->elementColumn();
for (int i=0; i<columns.size(); ++i) {
const DomColumn *column = columns.at(i);
const DomPropertyMap properties = propertyMap(column->elementProperty());
const DomProperty *text = properties.value(QLatin1String("text"));
const DomProperty *pixmap = properties.value(QLatin1String("pixmap"));
m_refreshOut << m_indent << varName << "->horizontalHeader()->setLabel(" << i << ", ";
if (pixmap) {
m_refreshOut << pixCall(pixmap) << ", ";
}
m_refreshOut << trCall(text->elementString()) << ");\n";
}
// rows
const QList<DomRow*> rows = w->elementRow();
for (int i=0; i<rows.size(); ++i) {
const DomRow *row = rows.at(i);
const DomPropertyMap properties = propertyMap(row->elementProperty());
const DomProperty *text = properties.value(QLatin1String("text"));
const DomProperty *pixmap = properties.value(QLatin1String("pixmap"));
m_refreshOut << m_indent << varName << "->verticalHeader()->setLabel(" << i << ", ";
if (pixmap) {
m_refreshOut << pixCall(pixmap) << ", ";
}
m_refreshOut << trCall(text->elementString()) << ");\n";
}
//initializeQ3TableItems(className, varName, w->elementItem());
}
void WriteInitialization::initializeQ3TableItems(const QString &className, const QString &varName, const QList<DomItem *> &items)
{
Q_UNUSED(className);
Q_UNUSED(varName);
Q_UNUSED(items);
}
QString WriteInitialization::iconCall(const DomProperty *icon)
{
if (icon->kind() == DomProperty::IconSet)
@ -2194,26 +1917,6 @@ QString WriteInitialization::pixCall(const QString &t, const QString &text) cons
return type;
}
void WriteInitialization::initializeComboBox3(DomWidget *w)
{
const QList<DomItem*> items = w->elementItem();
if (items.empty())
return;
// Basic legacy Qt3 support, write out translatable text items, ignore pixmaps
const QString varName = m_driver->findOrInsertWidget(w);
const QString textProperty = QLatin1String("text");
m_refreshOut << m_indent << varName << "->clear();\n";
m_refreshOut << m_indent << varName << "->insertStringList(QStringList()" << '\n';
const int itemCount = items.size();
for (int i = 0; i< itemCount; ++i) {
const DomItem *item = items.at(i);
if (const DomProperty *text = propertyMap(item->elementProperty()).value(textProperty))
m_refreshOut << m_indent << " << " << autoTrCall(text->elementString()) << "\n";
}
m_refreshOut << m_indent << ", 0);\n";
}
void WriteInitialization::initializeComboBox(DomWidget *w)
{
const QString varName = m_driver->findOrInsertWidget(w);
@ -2617,86 +2320,6 @@ QString WriteInitialization::trCall(const QString &str, const QString &commentHi
return result;
}
void WriteInitialization::initializeQ3SqlDataTable(DomWidget *w)
{
const DomPropertyMap properties = propertyMap(w->elementProperty());
const DomProperty *frameworkCode = properties.value(QLatin1String("frameworkCode"), 0);
if (frameworkCode && toBool(frameworkCode->elementBool()) == false)
return;
QString connection;
QString table;
QString field;
const DomProperty *db = properties.value(QLatin1String("database"), 0);
if (db && db->elementStringList()) {
const QStringList info = db->elementStringList()->elementString();
connection = info.size() > 0 ? info.at(0) : QString();
table = info.size() > 1 ? info.at(1) : QString();
field = info.size() > 2 ? info.at(2) : QString();
}
if (table.isEmpty() || connection.isEmpty()) {
fprintf(stderr, "%s: Warning: Invalid database connection\n", qPrintable(m_option.messagePrefix()));
return;
}
const QString varName = m_driver->findOrInsertWidget(w);
m_output << m_indent << "if (!" << varName << "->sqlCursor()) {\n";
m_output << m_dindent << varName << "->setSqlCursor(";
if (connection == QLatin1String("(default)")) {
m_output << "new Q3SqlCursor(" << fixString(table, m_dindent) << "), false, true);\n";
} else {
m_output << "new Q3SqlCursor(" << fixString(table, m_dindent) << ", true, " << connection << "Connection" << "), false, true);\n";
}
m_output << m_dindent << varName << "->refresh(Q3DataTable::RefreshAll);\n";
m_output << m_indent << "}\n";
}
void WriteInitialization::initializeQ3SqlDataBrowser(DomWidget *w)
{
const DomPropertyMap properties = propertyMap(w->elementProperty());
const DomProperty *frameworkCode = properties.value(QLatin1String("frameworkCode"), 0);
if (frameworkCode && toBool(frameworkCode->elementBool()) == false)
return;
QString connection;
QString table;
QString field;
const DomProperty *db = properties.value(QLatin1String("database"), 0);
if (db && db->elementStringList()) {
const QStringList info = db->elementStringList()->elementString();
connection = info.size() > 0 ? info.at(0) : QString();
table = info.size() > 1 ? info.at(1) : QString();
field = info.size() > 2 ? info.at(2) : QString();
}
if (table.isEmpty() || connection.isEmpty()) {
fprintf(stderr, "%s: Warning: Invalid database connection\n", qPrintable(m_option.messagePrefix()));
return;
}
const QString varName = m_driver->findOrInsertWidget(w);
m_output << m_indent << "if (!" << varName << "->sqlCursor()) {\n";
m_output << m_dindent << varName << "->setSqlCursor(";
if (connection == QLatin1String("(default)")) {
m_output << "new Q3SqlCursor(" << fixString(table, m_dindent) << "), true);\n";
} else {
m_output << "new Q3SqlCursor(" << fixString(table, m_dindent) << ", true, " << connection << "Connection" << "), false, true);\n";
}
m_output << m_dindent << varName << "->refresh();\n";
m_output << m_indent << "}\n";
}
void WriteInitialization::initializeMenu(DomWidget *w, const QString &/*parentWidget*/)
{
const QString menuName = m_driver->findOrInsertWidget(w);

View File

@ -241,7 +241,6 @@ private:
void initializeMenu(DomWidget *w, const QString &parentWidget);
void initializeComboBox(DomWidget *w);
void initializeComboBox3(DomWidget *w);
void initializeListWidget(DomWidget *w);
void initializeTreeWidget(DomWidget *w);
QList<Item *> initializeTreeWidgetItems(const QList<DomItem *> &domItems);
@ -250,22 +249,6 @@ private:
QString disableSorting(DomWidget *w, const QString &varName);
void enableSorting(DomWidget *w, const QString &varName, const QString &tempName);
//
// special initialization for the Q3 support classes
//
void initializeQ3ListBox(DomWidget *w);
void initializeQ3IconView(DomWidget *w);
void initializeQ3ListView(DomWidget *w);
void initializeQ3ListViewItems(const QString &className, const QString &varName, const QList<DomItem*> &items);
void initializeQ3Table(DomWidget *w);
void initializeQ3TableItems(const QString &className, const QString &varName, const QList<DomItem*> &items);
//
// Sql
//
void initializeQ3SqlDataTable(DomWidget *w);
void initializeQ3SqlDataBrowser(DomWidget *w);
QString findDeclaration(const QString &name);
DomWidget *findWidget(const QLatin1String &widgetClass);
DomImage *findImage(const QString &name) const;

View File

@ -333,14 +333,12 @@ void Uic::writeHeaderProtectionEnd()
bool Uic::isMainWindow(const QString &className) const
{
return customWidgetsInfo()->extends(className, QLatin1String("Q3MainWindow"))
|| customWidgetsInfo()->extends(className, QLatin1String("QMainWindow"));
return customWidgetsInfo()->extends(className, QLatin1String("QMainWindow"));
}
bool Uic::isToolBar(const QString &className) const
{
return customWidgetsInfo()->extends(className, QLatin1String("Q3ToolBar"))
|| customWidgetsInfo()->extends(className, QLatin1String("QToolBar"));
return customWidgetsInfo()->extends(className, QLatin1String("QToolBar"));
}
bool Uic::isButton(const QString &className) const

File diff suppressed because it is too large Load Diff

View File

@ -1,716 +0,0 @@
/*
*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************
*/
/********************************************************************************
** Form generated from reading UI file 'config_fromuic3.ui'
**
** Created: Thu Dec 17 12:48:42 2009
** by: Qt User Interface Compiler version 4.6.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CONFIG_FROMUIC3_H
#define CONFIG_FROMUIC3_H
#include <Qt3Support/Q3ButtonGroup>
#include <Qt3Support/Q3GroupBox>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QSlider>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QVBoxLayout>
#include "gammaview.h"
QT_BEGIN_NAMESPACE
class Ui_Config
{
public:
QGridLayout *gridLayout;
Q3ButtonGroup *ButtonGroup2;
QRadioButton *depth_1;
QRadioButton *depth_4gray;
QRadioButton *depth_8;
QRadioButton *depth_12;
QRadioButton *depth_16;
QRadioButton *depth_32;
QHBoxLayout *hboxLayout;
QSpacerItem *Horizontal_Spacing2;
QPushButton *buttonOk;
QPushButton *buttonCancel;
QCheckBox *touchScreen;
Q3GroupBox *GroupBox1;
QGridLayout *gridLayout1;
QLabel *TextLabel3;
QSlider *bslider;
QLabel *blabel;
QSpacerItem *Spacer3;
QLabel *TextLabel2;
QSlider *gslider;
QLabel *glabel;
QLabel *TextLabel7;
QLabel *TextLabel8;
QSlider *gammaslider;
QLabel *TextLabel1_2;
QLabel *rlabel;
QSlider *rslider;
QSpacerItem *Spacer2;
QSpacerItem *Spacer4;
QPushButton *PushButton3;
GammaView *MyCustomWidget1;
QSpacerItem *Spacer5;
Q3ButtonGroup *ButtonGroup1;
QVBoxLayout *vboxLayout;
QRadioButton *size_240_320;
QRadioButton *size_320_240;
QRadioButton *size_640_480;
QHBoxLayout *hboxLayout1;
QRadioButton *size_custom;
QSpinBox *size_width;
QSpinBox *size_height;
QHBoxLayout *hboxLayout2;
QRadioButton *size_skin;
QComboBox *skin;
QLabel *TextLabel1;
QRadioButton *test_for_useless_buttongroupId;
void setupUi(QDialog *Config)
{
if (Config->objectName().isEmpty())
Config->setObjectName(QString::fromUtf8("Config"));
Config->resize(481, 645);
Config->setWindowIcon(QPixmap(QString::fromUtf8("logo.png")));
Config->setSizeGripEnabled(true);
gridLayout = new QGridLayout(Config);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
ButtonGroup2 = new Q3ButtonGroup(Config);
ButtonGroup2->setObjectName(QString::fromUtf8("ButtonGroup2"));
depth_1 = new QRadioButton(ButtonGroup2);
depth_1->setObjectName(QString::fromUtf8("depth_1"));
depth_1->setGeometry(QRect(11, 19, 229, 19));
depth_4gray = new QRadioButton(ButtonGroup2);
depth_4gray->setObjectName(QString::fromUtf8("depth_4gray"));
depth_4gray->setGeometry(QRect(11, 44, 229, 19));
depth_8 = new QRadioButton(ButtonGroup2);
depth_8->setObjectName(QString::fromUtf8("depth_8"));
depth_8->setGeometry(QRect(11, 69, 229, 19));
depth_12 = new QRadioButton(ButtonGroup2);
depth_12->setObjectName(QString::fromUtf8("depth_12"));
depth_12->setGeometry(QRect(11, 94, 229, 19));
depth_16 = new QRadioButton(ButtonGroup2);
depth_16->setObjectName(QString::fromUtf8("depth_16"));
depth_16->setGeometry(QRect(11, 119, 229, 19));
depth_32 = new QRadioButton(ButtonGroup2);
depth_32->setObjectName(QString::fromUtf8("depth_32"));
depth_32->setGeometry(QRect(11, 144, 229, 19));
gridLayout->addWidget(ButtonGroup2, 0, 1, 1, 1);
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(6);
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
Horizontal_Spacing2 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(Horizontal_Spacing2);
buttonOk = new QPushButton(Config);
buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
buttonOk->setAutoDefault(true);
buttonOk->setDefault(true);
hboxLayout->addWidget(buttonOk);
buttonCancel = new QPushButton(Config);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
buttonCancel->setAutoDefault(true);
hboxLayout->addWidget(buttonCancel);
gridLayout->addLayout(hboxLayout, 4, 0, 1, 2);
touchScreen = new QCheckBox(Config);
touchScreen->setObjectName(QString::fromUtf8("touchScreen"));
gridLayout->addWidget(touchScreen, 2, 0, 1, 2);
GroupBox1 = new Q3GroupBox(Config);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
GroupBox1->setColumnLayout(0, Qt::Vertical);
GroupBox1->layout()->setSpacing(6);
GroupBox1->layout()->setContentsMargins(11, 11, 11, 11);
gridLayout1 = new QGridLayout();
QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(GroupBox1->layout());
if (boxlayout)
boxlayout->addLayout(gridLayout1);
gridLayout1->setAlignment(Qt::AlignTop);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
TextLabel3 = new QLabel(GroupBox1);
TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
TextLabel3->setWordWrap(false);
gridLayout1->addWidget(TextLabel3, 6, 0, 1, 1);
bslider = new QSlider(GroupBox1);
bslider->setObjectName(QString::fromUtf8("bslider"));
QPalette palette;
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(1), QColor(0, 0, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(2), QColor(127, 127, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(3), QColor(63, 63, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(4), QColor(0, 0, 127));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(5), QColor(0, 0, 170));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(1), QColor(0, 0, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(2), QColor(127, 127, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(3), QColor(38, 38, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(4), QColor(0, 0, 127));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(5), QColor(0, 0, 170));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(0), QColor(128, 128, 128));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(1), QColor(0, 0, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(2), QColor(127, 127, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(3), QColor(38, 38, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(4), QColor(0, 0, 127));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(5), QColor(0, 0, 170));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(8), QColor(128, 128, 128));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
bslider->setPalette(palette);
bslider->setMaximum(400);
bslider->setValue(100);
bslider->setOrientation(Qt::Horizontal);
gridLayout1->addWidget(bslider, 6, 1, 1, 1);
blabel = new QLabel(GroupBox1);
blabel->setObjectName(QString::fromUtf8("blabel"));
blabel->setWordWrap(false);
gridLayout1->addWidget(blabel, 6, 2, 1, 1);
Spacer3 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout1->addItem(Spacer3, 5, 1, 1, 1);
TextLabel2 = new QLabel(GroupBox1);
TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
TextLabel2->setWordWrap(false);
gridLayout1->addWidget(TextLabel2, 4, 0, 1, 1);
gslider = new QSlider(GroupBox1);
gslider->setObjectName(QString::fromUtf8("gslider"));
QPalette palette1;
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(1), QColor(0, 255, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(2), QColor(127, 255, 127));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(3), QColor(63, 255, 63));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(4), QColor(0, 127, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(5), QColor(0, 170, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette1.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(1), QColor(0, 255, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(2), QColor(127, 255, 127));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(3), QColor(38, 255, 38));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(4), QColor(0, 127, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(5), QColor(0, 170, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette1.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(0), QColor(128, 128, 128));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(1), QColor(0, 255, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(2), QColor(127, 255, 127));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(3), QColor(38, 255, 38));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(4), QColor(0, 127, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(5), QColor(0, 170, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(8), QColor(128, 128, 128));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette1.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
gslider->setPalette(palette1);
gslider->setMaximum(400);
gslider->setValue(100);
gslider->setOrientation(Qt::Horizontal);
gridLayout1->addWidget(gslider, 4, 1, 1, 1);
glabel = new QLabel(GroupBox1);
glabel->setObjectName(QString::fromUtf8("glabel"));
glabel->setWordWrap(false);
gridLayout1->addWidget(glabel, 4, 2, 1, 1);
TextLabel7 = new QLabel(GroupBox1);
TextLabel7->setObjectName(QString::fromUtf8("TextLabel7"));
TextLabel7->setWordWrap(false);
gridLayout1->addWidget(TextLabel7, 0, 0, 1, 1);
TextLabel8 = new QLabel(GroupBox1);
TextLabel8->setObjectName(QString::fromUtf8("TextLabel8"));
TextLabel8->setWordWrap(false);
gridLayout1->addWidget(TextLabel8, 0, 2, 1, 1);
gammaslider = new QSlider(GroupBox1);
gammaslider->setObjectName(QString::fromUtf8("gammaslider"));
QPalette palette2;
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(1), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(2), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(3), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(4), QColor(127, 127, 127));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(5), QColor(170, 170, 170));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette2.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(1), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(2), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(3), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(4), QColor(127, 127, 127));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(5), QColor(170, 170, 170));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette2.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(0), QColor(128, 128, 128));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(1), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(2), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(3), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(4), QColor(127, 127, 127));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(5), QColor(170, 170, 170));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(8), QColor(128, 128, 128));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette2.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
gammaslider->setPalette(palette2);
gammaslider->setMaximum(400);
gammaslider->setValue(100);
gammaslider->setOrientation(Qt::Horizontal);
gridLayout1->addWidget(gammaslider, 0, 1, 1, 1);
TextLabel1_2 = new QLabel(GroupBox1);
TextLabel1_2->setObjectName(QString::fromUtf8("TextLabel1_2"));
TextLabel1_2->setWordWrap(false);
gridLayout1->addWidget(TextLabel1_2, 2, 0, 1, 1);
rlabel = new QLabel(GroupBox1);
rlabel->setObjectName(QString::fromUtf8("rlabel"));
rlabel->setWordWrap(false);
gridLayout1->addWidget(rlabel, 2, 2, 1, 1);
rslider = new QSlider(GroupBox1);
rslider->setObjectName(QString::fromUtf8("rslider"));
QPalette palette3;
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(1), QColor(255, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(2), QColor(255, 127, 127));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(3), QColor(255, 63, 63));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(4), QColor(127, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(5), QColor(170, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette3.setColor(QPalette::Active, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(0), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(1), QColor(255, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(2), QColor(255, 127, 127));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(3), QColor(255, 38, 38));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(4), QColor(127, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(5), QColor(170, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(8), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette3.setColor(QPalette::Inactive, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(0), QColor(128, 128, 128));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(1), QColor(255, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(2), QColor(255, 127, 127));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(3), QColor(255, 38, 38));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(4), QColor(127, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(5), QColor(170, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(6), QColor(0, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(7), QColor(255, 255, 255));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(8), QColor(128, 128, 128));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(9), QColor(255, 255, 255));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(10), QColor(220, 220, 220));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(11), QColor(0, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(12), QColor(10, 95, 137));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(13), QColor(255, 255, 255));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(14), QColor(0, 0, 0));
palette3.setColor(QPalette::Disabled, static_cast<QPalette::ColorRole>(15), QColor(0, 0, 0));
rslider->setPalette(palette3);
rslider->setMaximum(400);
rslider->setValue(100);
rslider->setOrientation(Qt::Horizontal);
gridLayout1->addWidget(rslider, 2, 1, 1, 1);
Spacer2 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout1->addItem(Spacer2, 3, 1, 1, 1);
Spacer4 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout1->addItem(Spacer4, 1, 1, 1, 1);
PushButton3 = new QPushButton(GroupBox1);
PushButton3->setObjectName(QString::fromUtf8("PushButton3"));
gridLayout1->addWidget(PushButton3, 8, 0, 1, 3);
MyCustomWidget1 = new GammaView(GroupBox1);
MyCustomWidget1->setObjectName(QString::fromUtf8("MyCustomWidget1"));
gridLayout1->addWidget(MyCustomWidget1, 0, 3, 9, 1);
Spacer5 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout1->addItem(Spacer5, 7, 1, 1, 1);
gridLayout->addWidget(GroupBox1, 3, 0, 1, 2);
ButtonGroup1 = new Q3ButtonGroup(Config);
ButtonGroup1->setObjectName(QString::fromUtf8("ButtonGroup1"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(5));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(ButtonGroup1->sizePolicy().hasHeightForWidth());
ButtonGroup1->setSizePolicy(sizePolicy);
ButtonGroup1->setColumnLayout(0, Qt::Vertical);
ButtonGroup1->layout()->setSpacing(6);
ButtonGroup1->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout = new QVBoxLayout();
QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(ButtonGroup1->layout());
if (boxlayout1)
boxlayout1->addLayout(vboxLayout);
vboxLayout->setAlignment(Qt::AlignTop);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
size_240_320 = new QRadioButton(ButtonGroup1);
size_240_320->setObjectName(QString::fromUtf8("size_240_320"));
vboxLayout->addWidget(size_240_320);
size_320_240 = new QRadioButton(ButtonGroup1);
size_320_240->setObjectName(QString::fromUtf8("size_320_240"));
vboxLayout->addWidget(size_320_240);
size_640_480 = new QRadioButton(ButtonGroup1);
size_640_480->setObjectName(QString::fromUtf8("size_640_480"));
vboxLayout->addWidget(size_640_480);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
size_custom = new QRadioButton(ButtonGroup1);
size_custom->setObjectName(QString::fromUtf8("size_custom"));
hboxLayout1->addWidget(size_custom);
size_width = new QSpinBox(ButtonGroup1);
size_width->setObjectName(QString::fromUtf8("size_width"));
size_width->setMaximum(1280);
size_width->setMinimum(1);
size_width->setSingleStep(16);
size_width->setValue(400);
hboxLayout1->addWidget(size_width);
size_height = new QSpinBox(ButtonGroup1);
size_height->setObjectName(QString::fromUtf8("size_height"));
size_height->setMaximum(1024);
size_height->setMinimum(1);
size_height->setSingleStep(16);
size_height->setValue(300);
hboxLayout1->addWidget(size_height);
vboxLayout->addLayout(hboxLayout1);
hboxLayout2 = new QHBoxLayout();
hboxLayout2->setSpacing(6);
hboxLayout2->setContentsMargins(0, 0, 0, 0);
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
size_skin = new QRadioButton(ButtonGroup1);
size_skin->setObjectName(QString::fromUtf8("size_skin"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(size_skin->sizePolicy().hasHeightForWidth());
size_skin->setSizePolicy(sizePolicy1);
hboxLayout2->addWidget(size_skin);
skin = new QComboBox(ButtonGroup1);
skin->setObjectName(QString::fromUtf8("skin"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(skin->sizePolicy().hasHeightForWidth());
skin->setSizePolicy(sizePolicy2);
hboxLayout2->addWidget(skin);
vboxLayout->addLayout(hboxLayout2);
gridLayout->addWidget(ButtonGroup1, 0, 0, 1, 1);
TextLabel1 = new QLabel(Config);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
TextLabel1->setWordWrap(false);
gridLayout->addWidget(TextLabel1, 1, 0, 1, 2);
test_for_useless_buttongroupId = new QRadioButton(Config);
test_for_useless_buttongroupId->setObjectName(QString::fromUtf8("test_for_useless_buttongroupId"));
gridLayout->addWidget(test_for_useless_buttongroupId, 0, 0, 1, 1);
retranslateUi(Config);
QObject::connect(buttonOk, SIGNAL(clicked()), Config, SLOT(accept()));
QObject::connect(buttonCancel, SIGNAL(clicked()), Config, SLOT(reject()));
QMetaObject::connectSlotsByName(Config);
} // setupUi
void retranslateUi(QDialog *Config)
{
Config->setWindowTitle(QApplication::translate("Config", "Configure", 0, QApplication::UnicodeUTF8));
ButtonGroup2->setTitle(QApplication::translate("Config", "Depth", 0, QApplication::UnicodeUTF8));
depth_1->setText(QApplication::translate("Config", "1 bit monochrome", 0, QApplication::UnicodeUTF8));
depth_4gray->setText(QApplication::translate("Config", "4 bit grayscale", 0, QApplication::UnicodeUTF8));
depth_8->setText(QApplication::translate("Config", "8 bit", 0, QApplication::UnicodeUTF8));
depth_12->setText(QApplication::translate("Config", "12 (16) bit", 0, QApplication::UnicodeUTF8));
depth_16->setText(QApplication::translate("Config", "16 bit", 0, QApplication::UnicodeUTF8));
depth_32->setText(QApplication::translate("Config", "32 bit", 0, QApplication::UnicodeUTF8));
buttonOk->setText(QApplication::translate("Config", "&OK", 0, QApplication::UnicodeUTF8));
buttonCancel->setText(QApplication::translate("Config", "&Cancel", 0, QApplication::UnicodeUTF8));
touchScreen->setText(QApplication::translate("Config", "Emulate touch screen (no mouse move).", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("Config", "Gamma", 0, QApplication::UnicodeUTF8));
TextLabel3->setText(QApplication::translate("Config", "Blue", 0, QApplication::UnicodeUTF8));
blabel->setText(QApplication::translate("Config", "1.0", 0, QApplication::UnicodeUTF8));
TextLabel2->setText(QApplication::translate("Config", "Green", 0, QApplication::UnicodeUTF8));
glabel->setText(QApplication::translate("Config", "1.0", 0, QApplication::UnicodeUTF8));
TextLabel7->setText(QApplication::translate("Config", "All", 0, QApplication::UnicodeUTF8));
TextLabel8->setText(QApplication::translate("Config", "1.0", 0, QApplication::UnicodeUTF8));
TextLabel1_2->setText(QApplication::translate("Config", "Red", 0, QApplication::UnicodeUTF8));
rlabel->setText(QApplication::translate("Config", "1.0", 0, QApplication::UnicodeUTF8));
PushButton3->setText(QApplication::translate("Config", "Set all to 1.0", 0, QApplication::UnicodeUTF8));
ButtonGroup1->setTitle(QApplication::translate("Config", "Size", 0, QApplication::UnicodeUTF8));
size_240_320->setText(QApplication::translate("Config", "240x320 \"PDA\"", 0, QApplication::UnicodeUTF8));
size_320_240->setText(QApplication::translate("Config", "320x240 \"TV\"", 0, QApplication::UnicodeUTF8));
size_640_480->setText(QApplication::translate("Config", "640x480 \"VGA\"", 0, QApplication::UnicodeUTF8));
size_custom->setText(QApplication::translate("Config", "Custom", 0, QApplication::UnicodeUTF8));
size_skin->setText(QApplication::translate("Config", "Skin", 0, QApplication::UnicodeUTF8));
skin->clear();
skin->insertItems(0, QStringList()
<< QApplication::translate("Config", "pda.skin", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("Config", "ipaq.skin", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("Config", "qpe.skin", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("Config", "cassiopeia.skin", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("Config", "other.skin", 0, QApplication::UnicodeUTF8)
);
TextLabel1->setText(QApplication::translate("Config", "<p>Note that any applications using the virtual framebuffer will be terminated if you change the Size or Depth <i>above</i>. You may freely modify the Gamma <i>below</i>.", 0, QApplication::UnicodeUTF8));
test_for_useless_buttongroupId->setText(QApplication::translate("Config", "Test", 0, QApplication::UnicodeUTF8));
} // retranslateUi
protected:
enum IconID
{
image0_ID,
unknown_ID
};
static QPixmap qt_get_icon(IconID id)
{
/* XPM */
static const char* const image0_data[] = {
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};
switch (id) {
case image0_ID: return QPixmap((const char**)image0_data);
default: return QPixmap();
} // switch
} // icon
};
namespace Ui {
class Config: public Ui_Config {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CONFIG_FROMUIC3_H

File diff suppressed because it is too large Load Diff

View File

@ -1,968 +0,0 @@
/*
*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************
*/
/********************************************************************************
** Form generated from reading UI file 'mainwindowbase.ui'
**
** Created: Fri Sep 4 10:17:14 2009
** by: Qt User Interface Compiler version 4.6.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef MAINWINDOWBASE_H
#define MAINWINDOWBASE_H
#include <Qt3Support/Q3Frame>
#include <Qt3Support/Q3ListBox>
#include <Qt3Support/Q3MainWindow>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QMenu>
#include <QtGui/QMenuBar>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QTabWidget>
#include <QtGui/QTextEdit>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "colorbutton.h"
#include "previewframe.h"
QT_BEGIN_NAMESPACE
class Ui_MainWindowBase
{
public:
QAction *fileSaveAction;
QAction *fileExitAction;
QAction *helpAboutAction;
QAction *helpAboutQtAction;
QWidget *widget;
QHBoxLayout *hboxLayout;
QTextEdit *helpview;
QTabWidget *TabWidget3;
QWidget *tab1;
QVBoxLayout *vboxLayout;
QGroupBox *GroupBox40;
QHBoxLayout *hboxLayout1;
QLabel *gstylebuddy;
QComboBox *gstylecombo;
QGroupBox *groupAutoPalette;
QHBoxLayout *hboxLayout2;
QLabel *labelMainColor;
ColorButton *buttonMainColor;
QLabel *labelMainColor2;
ColorButton *buttonMainColor2;
QSpacerItem *spacerItem;
QPushButton *btnAdvanced;
QGroupBox *GroupBox126;
QGridLayout *gridLayout;
QLabel *TextLabel1;
QComboBox *paletteCombo;
PreviewFrame *previewFrame;
QWidget *tab2;
QVBoxLayout *vboxLayout1;
QGroupBox *GroupBox1;
QGridLayout *gridLayout1;
QComboBox *stylecombo;
QComboBox *familycombo;
QComboBox *psizecombo;
QLabel *stylebuddy;
QLabel *psizebuddy;
QLabel *familybuddy;
QLineEdit *samplelineedit;
QGroupBox *GroupBox2;
QVBoxLayout *vboxLayout2;
QHBoxLayout *hboxLayout3;
QLabel *famsubbuddy;
QComboBox *familysubcombo;
QFrame *Line1;
QLabel *TextLabel5;
Q3ListBox *sublistbox;
QHBoxLayout *hboxLayout4;
QPushButton *PushButton2;
QPushButton *PushButton3;
QPushButton *PushButton4;
QFrame *Line2;
QHBoxLayout *hboxLayout5;
QLabel *choosebuddy;
QComboBox *choosesubcombo;
QPushButton *PushButton1;
QWidget *tab;
QVBoxLayout *vboxLayout3;
QGroupBox *GroupBox4;
QGridLayout *gridLayout2;
QSpinBox *dcispin;
QLabel *dcibuddy;
QSpinBox *cfispin;
QLabel *cfibuddy;
QSpinBox *wslspin;
QLabel *wslbuddy;
QCheckBox *resolvelinks;
QGroupBox *GroupBox3;
QVBoxLayout *vboxLayout4;
QCheckBox *effectcheckbox;
Q3Frame *effectbase;
QGridLayout *gridLayout3;
QLabel *meffectbuddy;
QLabel *ceffectbuddy;
QLabel *teffectbuddy;
QLabel *beffectbuddy;
QComboBox *menueffect;
QComboBox *comboeffect;
QComboBox *tooltipeffect;
QComboBox *toolboxeffect;
QGroupBox *GroupBox5;
QGridLayout *gridLayout4;
QLabel *swbuddy;
QLabel *shbuddy;
QSpinBox *strutwidth;
QSpinBox *strutheight;
QCheckBox *rtlExtensions;
QLabel *inputStyleLabel;
QComboBox *inputStyle;
QSpacerItem *spacerItem1;
QWidget *tab3;
QVBoxLayout *vboxLayout5;
QCheckBox *fontembeddingcheckbox;
QGroupBox *GroupBox10;
QVBoxLayout *vboxLayout6;
QGridLayout *gridLayout5;
QPushButton *PushButton11;
QPushButton *PushButton13;
QPushButton *PushButton12;
Q3ListBox *fontpathlistbox;
QGridLayout *gridLayout6;
QSpacerItem *spacerItem2;
QPushButton *PushButton15;
QPushButton *PushButton14;
QLabel *TextLabel15_2;
QLineEdit *fontpathlineedit;
QMenuBar *menubar;
QAction *action;
QAction *action1;
QAction *action2;
QMenu *PopupMenu;
QAction *action3;
QAction *action4;
QAction *action5;
QMenu *PopupMenu_2;
void setupUi(Q3MainWindow *MainWindowBase)
{
if (MainWindowBase->objectName().isEmpty())
MainWindowBase->setObjectName(QString::fromUtf8("MainWindowBase"));
MainWindowBase->resize(724, 615);
fileSaveAction = new QAction(MainWindowBase);
fileSaveAction->setObjectName(QString::fromUtf8("fileSaveAction"));
fileExitAction = new QAction(MainWindowBase);
fileExitAction->setObjectName(QString::fromUtf8("fileExitAction"));
helpAboutAction = new QAction(MainWindowBase);
helpAboutAction->setObjectName(QString::fromUtf8("helpAboutAction"));
helpAboutQtAction = new QAction(MainWindowBase);
helpAboutQtAction->setObjectName(QString::fromUtf8("helpAboutQtAction"));
widget = new QWidget(MainWindowBase);
widget->setObjectName(QString::fromUtf8("widget"));
widget->setGeometry(QRect(0, 28, 724, 587));
hboxLayout = new QHBoxLayout(widget);
hboxLayout->setSpacing(4);
hboxLayout->setContentsMargins(8, 8, 8, 8);
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
helpview = new QTextEdit(widget);
helpview->setObjectName(QString::fromUtf8("helpview"));
helpview->setMinimumSize(QSize(200, 0));
helpview->setReadOnly(true);
hboxLayout->addWidget(helpview);
TabWidget3 = new QTabWidget(widget);
TabWidget3->setObjectName(QString::fromUtf8("TabWidget3"));
tab1 = new QWidget();
tab1->setObjectName(QString::fromUtf8("tab1"));
vboxLayout = new QVBoxLayout(tab1);
vboxLayout->setSpacing(4);
vboxLayout->setContentsMargins(4, 4, 4, 4);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
GroupBox40 = new QGroupBox(tab1);
GroupBox40->setObjectName(QString::fromUtf8("GroupBox40"));
hboxLayout1 = new QHBoxLayout(GroupBox40);
hboxLayout1->setSpacing(4);
hboxLayout1->setContentsMargins(8, 8, 8, 8);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
gstylebuddy = new QLabel(GroupBox40);
gstylebuddy->setObjectName(QString::fromUtf8("gstylebuddy"));
hboxLayout1->addWidget(gstylebuddy);
gstylecombo = new QComboBox(GroupBox40);
gstylecombo->setObjectName(QString::fromUtf8("gstylecombo"));
hboxLayout1->addWidget(gstylecombo);
vboxLayout->addWidget(GroupBox40);
groupAutoPalette = new QGroupBox(tab1);
groupAutoPalette->setObjectName(QString::fromUtf8("groupAutoPalette"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(groupAutoPalette->sizePolicy().hasHeightForWidth());
groupAutoPalette->setSizePolicy(sizePolicy);
hboxLayout2 = new QHBoxLayout(groupAutoPalette);
hboxLayout2->setSpacing(4);
hboxLayout2->setContentsMargins(8, 8, 8, 8);
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
labelMainColor = new QLabel(groupAutoPalette);
labelMainColor->setObjectName(QString::fromUtf8("labelMainColor"));
hboxLayout2->addWidget(labelMainColor);
buttonMainColor = new ColorButton(groupAutoPalette);
buttonMainColor->setObjectName(QString::fromUtf8("buttonMainColor"));
hboxLayout2->addWidget(buttonMainColor);
labelMainColor2 = new QLabel(groupAutoPalette);
labelMainColor2->setObjectName(QString::fromUtf8("labelMainColor2"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(1));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(labelMainColor2->sizePolicy().hasHeightForWidth());
labelMainColor2->setSizePolicy(sizePolicy1);
labelMainColor2->setMinimumSize(QSize(50, 0));
labelMainColor2->setLineWidth(1);
labelMainColor2->setMidLineWidth(0);
labelMainColor2->setAlignment(Qt::AlignVCenter);
labelMainColor2->setMargin(0);
hboxLayout2->addWidget(labelMainColor2);
buttonMainColor2 = new ColorButton(groupAutoPalette);
buttonMainColor2->setObjectName(QString::fromUtf8("buttonMainColor2"));
hboxLayout2->addWidget(buttonMainColor2);
spacerItem = new QSpacerItem(70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout2->addItem(spacerItem);
btnAdvanced = new QPushButton(groupAutoPalette);
btnAdvanced->setObjectName(QString::fromUtf8("btnAdvanced"));
hboxLayout2->addWidget(btnAdvanced);
vboxLayout->addWidget(groupAutoPalette);
GroupBox126 = new QGroupBox(tab1);
GroupBox126->setObjectName(QString::fromUtf8("GroupBox126"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(7));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(GroupBox126->sizePolicy().hasHeightForWidth());
GroupBox126->setSizePolicy(sizePolicy2);
gridLayout = new QGridLayout(GroupBox126);
gridLayout->setSpacing(4);
gridLayout->setContentsMargins(8, 8, 8, 8);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
TextLabel1 = new QLabel(GroupBox126);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
gridLayout->addWidget(TextLabel1, 0, 0, 1, 1);
paletteCombo = new QComboBox(GroupBox126);
paletteCombo->setObjectName(QString::fromUtf8("paletteCombo"));
gridLayout->addWidget(paletteCombo, 0, 1, 1, 1);
previewFrame = new PreviewFrame(GroupBox126);
previewFrame->setObjectName(QString::fromUtf8("previewFrame"));
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(previewFrame->sizePolicy().hasHeightForWidth());
previewFrame->setSizePolicy(sizePolicy3);
previewFrame->setMinimumSize(QSize(410, 260));
gridLayout->addWidget(previewFrame, 1, 0, 1, 2);
vboxLayout->addWidget(GroupBox126);
TabWidget3->addTab(tab1, QString());
tab2 = new QWidget();
tab2->setObjectName(QString::fromUtf8("tab2"));
vboxLayout1 = new QVBoxLayout(tab2);
vboxLayout1->setSpacing(4);
vboxLayout1->setContentsMargins(8, 8, 8, 8);
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
GroupBox1 = new QGroupBox(tab2);
GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
gridLayout1 = new QGridLayout(GroupBox1);
gridLayout1->setSpacing(4);
gridLayout1->setContentsMargins(8, 8, 8, 8);
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
stylecombo = new QComboBox(GroupBox1);
stylecombo->setObjectName(QString::fromUtf8("stylecombo"));
stylecombo->setAutoCompletion(true);
stylecombo->setDuplicatesEnabled(false);
gridLayout1->addWidget(stylecombo, 1, 1, 1, 1);
familycombo = new QComboBox(GroupBox1);
familycombo->setObjectName(QString::fromUtf8("familycombo"));
familycombo->setAutoCompletion(true);
familycombo->setDuplicatesEnabled(false);
gridLayout1->addWidget(familycombo, 0, 1, 1, 1);
psizecombo = new QComboBox(GroupBox1);
psizecombo->setObjectName(QString::fromUtf8("psizecombo"));
psizecombo->setEditable(true);
psizecombo->setAutoCompletion(true);
psizecombo->setDuplicatesEnabled(false);
gridLayout1->addWidget(psizecombo, 2, 1, 1, 1);
stylebuddy = new QLabel(GroupBox1);
stylebuddy->setObjectName(QString::fromUtf8("stylebuddy"));
gridLayout1->addWidget(stylebuddy, 1, 0, 1, 1);
psizebuddy = new QLabel(GroupBox1);
psizebuddy->setObjectName(QString::fromUtf8("psizebuddy"));
gridLayout1->addWidget(psizebuddy, 2, 0, 1, 1);
familybuddy = new QLabel(GroupBox1);
familybuddy->setObjectName(QString::fromUtf8("familybuddy"));
gridLayout1->addWidget(familybuddy, 0, 0, 1, 1);
samplelineedit = new QLineEdit(GroupBox1);
samplelineedit->setObjectName(QString::fromUtf8("samplelineedit"));
samplelineedit->setAlignment(Qt::AlignHCenter);
gridLayout1->addWidget(samplelineedit, 3, 0, 1, 2);
vboxLayout1->addWidget(GroupBox1);
GroupBox2 = new QGroupBox(tab2);
GroupBox2->setObjectName(QString::fromUtf8("GroupBox2"));
vboxLayout2 = new QVBoxLayout(GroupBox2);
vboxLayout2->setSpacing(4);
vboxLayout2->setContentsMargins(8, 8, 8, 8);
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
hboxLayout3 = new QHBoxLayout();
hboxLayout3->setSpacing(4);
#ifndef Q_OS_MAC
hboxLayout3->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
famsubbuddy = new QLabel(GroupBox2);
famsubbuddy->setObjectName(QString::fromUtf8("famsubbuddy"));
hboxLayout3->addWidget(famsubbuddy);
familysubcombo = new QComboBox(GroupBox2);
familysubcombo->setObjectName(QString::fromUtf8("familysubcombo"));
familysubcombo->setEditable(true);
familysubcombo->setAutoCompletion(true);
familysubcombo->setDuplicatesEnabled(false);
hboxLayout3->addWidget(familysubcombo);
vboxLayout2->addLayout(hboxLayout3);
Line1 = new QFrame(GroupBox2);
Line1->setObjectName(QString::fromUtf8("Line1"));
Line1->setFrameShape(QFrame::HLine);
Line1->setFrameShadow(QFrame::Sunken);
Line1->setFrameShape(QFrame::HLine);
vboxLayout2->addWidget(Line1);
TextLabel5 = new QLabel(GroupBox2);
TextLabel5->setObjectName(QString::fromUtf8("TextLabel5"));
vboxLayout2->addWidget(TextLabel5);
sublistbox = new Q3ListBox(GroupBox2);
sublistbox->setObjectName(QString::fromUtf8("sublistbox"));
vboxLayout2->addWidget(sublistbox);
hboxLayout4 = new QHBoxLayout();
hboxLayout4->setSpacing(4);
hboxLayout4->setContentsMargins(0, 0, 0, 0);
hboxLayout4->setObjectName(QString::fromUtf8("hboxLayout4"));
PushButton2 = new QPushButton(GroupBox2);
PushButton2->setObjectName(QString::fromUtf8("PushButton2"));
hboxLayout4->addWidget(PushButton2);
PushButton3 = new QPushButton(GroupBox2);
PushButton3->setObjectName(QString::fromUtf8("PushButton3"));
hboxLayout4->addWidget(PushButton3);
PushButton4 = new QPushButton(GroupBox2);
PushButton4->setObjectName(QString::fromUtf8("PushButton4"));
hboxLayout4->addWidget(PushButton4);
vboxLayout2->addLayout(hboxLayout4);
Line2 = new QFrame(GroupBox2);
Line2->setObjectName(QString::fromUtf8("Line2"));
Line2->setFrameShape(QFrame::HLine);
Line2->setFrameShadow(QFrame::Sunken);
Line2->setFrameShape(QFrame::HLine);
vboxLayout2->addWidget(Line2);
hboxLayout5 = new QHBoxLayout();
hboxLayout5->setSpacing(4);
hboxLayout5->setContentsMargins(0, 0, 0, 0);
hboxLayout5->setObjectName(QString::fromUtf8("hboxLayout5"));
choosebuddy = new QLabel(GroupBox2);
choosebuddy->setObjectName(QString::fromUtf8("choosebuddy"));
hboxLayout5->addWidget(choosebuddy);
choosesubcombo = new QComboBox(GroupBox2);
choosesubcombo->setObjectName(QString::fromUtf8("choosesubcombo"));
choosesubcombo->setAutoCompletion(true);
choosesubcombo->setDuplicatesEnabled(false);
hboxLayout5->addWidget(choosesubcombo);
PushButton1 = new QPushButton(GroupBox2);
PushButton1->setObjectName(QString::fromUtf8("PushButton1"));
hboxLayout5->addWidget(PushButton1);
vboxLayout2->addLayout(hboxLayout5);
vboxLayout1->addWidget(GroupBox2);
TabWidget3->addTab(tab2, QString());
tab = new QWidget();
tab->setObjectName(QString::fromUtf8("tab"));
vboxLayout3 = new QVBoxLayout(tab);
vboxLayout3->setSpacing(4);
vboxLayout3->setContentsMargins(7, 7, 7, 7);
vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3"));
GroupBox4 = new QGroupBox(tab);
GroupBox4->setObjectName(QString::fromUtf8("GroupBox4"));
gridLayout2 = new QGridLayout(GroupBox4);
gridLayout2->setSpacing(4);
gridLayout2->setContentsMargins(8, 8, 8, 8);
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
dcispin = new QSpinBox(GroupBox4);
dcispin->setObjectName(QString::fromUtf8("dcispin"));
dcispin->setMaximum(10000);
dcispin->setMinimum(10);
gridLayout2->addWidget(dcispin, 0, 1, 1, 1);
dcibuddy = new QLabel(GroupBox4);
dcibuddy->setObjectName(QString::fromUtf8("dcibuddy"));
gridLayout2->addWidget(dcibuddy, 0, 0, 1, 1);
cfispin = new QSpinBox(GroupBox4);
cfispin->setObjectName(QString::fromUtf8("cfispin"));
cfispin->setMaximum(10000);
cfispin->setMinimum(9);
gridLayout2->addWidget(cfispin, 1, 1, 1, 1);
cfibuddy = new QLabel(GroupBox4);
cfibuddy->setObjectName(QString::fromUtf8("cfibuddy"));
gridLayout2->addWidget(cfibuddy, 1, 0, 1, 1);
wslspin = new QSpinBox(GroupBox4);
wslspin->setObjectName(QString::fromUtf8("wslspin"));
wslspin->setMaximum(20);
wslspin->setMinimum(1);
gridLayout2->addWidget(wslspin, 2, 1, 1, 1);
wslbuddy = new QLabel(GroupBox4);
wslbuddy->setObjectName(QString::fromUtf8("wslbuddy"));
gridLayout2->addWidget(wslbuddy, 2, 0, 1, 1);
resolvelinks = new QCheckBox(GroupBox4);
resolvelinks->setObjectName(QString::fromUtf8("resolvelinks"));
gridLayout2->addWidget(resolvelinks, 3, 0, 1, 2);
vboxLayout3->addWidget(GroupBox4);
GroupBox3 = new QGroupBox(tab);
GroupBox3->setObjectName(QString::fromUtf8("GroupBox3"));
vboxLayout4 = new QVBoxLayout(GroupBox3);
vboxLayout4->setSpacing(4);
vboxLayout4->setContentsMargins(8, 8, 8, 8);
vboxLayout4->setObjectName(QString::fromUtf8("vboxLayout4"));
effectcheckbox = new QCheckBox(GroupBox3);
effectcheckbox->setObjectName(QString::fromUtf8("effectcheckbox"));
vboxLayout4->addWidget(effectcheckbox);
effectbase = new Q3Frame(GroupBox3);
effectbase->setObjectName(QString::fromUtf8("effectbase"));
effectbase->setFrameShape(QFrame::NoFrame);
effectbase->setFrameShadow(QFrame::Plain);
gridLayout3 = new QGridLayout(effectbase);
gridLayout3->setSpacing(4);
gridLayout3->setContentsMargins(0, 0, 0, 0);
gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
meffectbuddy = new QLabel(effectbase);
meffectbuddy->setObjectName(QString::fromUtf8("meffectbuddy"));
gridLayout3->addWidget(meffectbuddy, 0, 0, 1, 1);
ceffectbuddy = new QLabel(effectbase);
ceffectbuddy->setObjectName(QString::fromUtf8("ceffectbuddy"));
gridLayout3->addWidget(ceffectbuddy, 1, 0, 1, 1);
teffectbuddy = new QLabel(effectbase);
teffectbuddy->setObjectName(QString::fromUtf8("teffectbuddy"));
gridLayout3->addWidget(teffectbuddy, 2, 0, 1, 1);
beffectbuddy = new QLabel(effectbase);
beffectbuddy->setObjectName(QString::fromUtf8("beffectbuddy"));
gridLayout3->addWidget(beffectbuddy, 3, 0, 1, 1);
menueffect = new QComboBox(effectbase);
menueffect->setObjectName(QString::fromUtf8("menueffect"));
menueffect->setAutoCompletion(true);
gridLayout3->addWidget(menueffect, 0, 1, 1, 1);
comboeffect = new QComboBox(effectbase);
comboeffect->setObjectName(QString::fromUtf8("comboeffect"));
gridLayout3->addWidget(comboeffect, 1, 1, 1, 1);
tooltipeffect = new QComboBox(effectbase);
tooltipeffect->setObjectName(QString::fromUtf8("tooltipeffect"));
gridLayout3->addWidget(tooltipeffect, 2, 1, 1, 1);
toolboxeffect = new QComboBox(effectbase);
toolboxeffect->setObjectName(QString::fromUtf8("toolboxeffect"));
gridLayout3->addWidget(toolboxeffect, 3, 1, 1, 1);
vboxLayout4->addWidget(effectbase);
vboxLayout3->addWidget(GroupBox3);
GroupBox5 = new QGroupBox(tab);
GroupBox5->setObjectName(QString::fromUtf8("GroupBox5"));
gridLayout4 = new QGridLayout(GroupBox5);
gridLayout4->setSpacing(4);
gridLayout4->setContentsMargins(8, 8, 8, 8);
gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
swbuddy = new QLabel(GroupBox5);
swbuddy->setObjectName(QString::fromUtf8("swbuddy"));
gridLayout4->addWidget(swbuddy, 0, 0, 1, 1);
shbuddy = new QLabel(GroupBox5);
shbuddy->setObjectName(QString::fromUtf8("shbuddy"));
gridLayout4->addWidget(shbuddy, 1, 0, 1, 1);
strutwidth = new QSpinBox(GroupBox5);
strutwidth->setObjectName(QString::fromUtf8("strutwidth"));
strutwidth->setMaximum(1000);
gridLayout4->addWidget(strutwidth, 0, 1, 1, 1);
strutheight = new QSpinBox(GroupBox5);
strutheight->setObjectName(QString::fromUtf8("strutheight"));
strutheight->setMaximum(1000);
gridLayout4->addWidget(strutheight, 1, 1, 1, 1);
vboxLayout3->addWidget(GroupBox5);
rtlExtensions = new QCheckBox(tab);
rtlExtensions->setObjectName(QString::fromUtf8("rtlExtensions"));
vboxLayout3->addWidget(rtlExtensions);
inputStyleLabel = new QLabel(tab);
inputStyleLabel->setObjectName(QString::fromUtf8("inputStyleLabel"));
vboxLayout3->addWidget(inputStyleLabel);
inputStyle = new QComboBox(tab);
inputStyle->setObjectName(QString::fromUtf8("inputStyle"));
vboxLayout3->addWidget(inputStyle);
spacerItem1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout3->addItem(spacerItem1);
TabWidget3->addTab(tab, QString());
tab3 = new QWidget();
tab3->setObjectName(QString::fromUtf8("tab3"));
vboxLayout5 = new QVBoxLayout(tab3);
vboxLayout5->setSpacing(4);
vboxLayout5->setContentsMargins(8, 8, 8, 8);
vboxLayout5->setObjectName(QString::fromUtf8("vboxLayout5"));
fontembeddingcheckbox = new QCheckBox(tab3);
fontembeddingcheckbox->setObjectName(QString::fromUtf8("fontembeddingcheckbox"));
fontembeddingcheckbox->setChecked(true);
vboxLayout5->addWidget(fontembeddingcheckbox);
GroupBox10 = new QGroupBox(tab3);
GroupBox10->setObjectName(QString::fromUtf8("GroupBox10"));
sizePolicy2.setHeightForWidth(GroupBox10->sizePolicy().hasHeightForWidth());
GroupBox10->setSizePolicy(sizePolicy2);
vboxLayout6 = new QVBoxLayout(GroupBox10);
vboxLayout6->setSpacing(4);
vboxLayout6->setContentsMargins(8, 8, 8, 8);
vboxLayout6->setObjectName(QString::fromUtf8("vboxLayout6"));
gridLayout5 = new QGridLayout();
gridLayout5->setSpacing(4);
#ifndef Q_OS_MAC
gridLayout5->setContentsMargins(0, 0, 0, 0);
#endif
gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
PushButton11 = new QPushButton(GroupBox10);
PushButton11->setObjectName(QString::fromUtf8("PushButton11"));
gridLayout5->addWidget(PushButton11, 1, 0, 1, 1);
PushButton13 = new QPushButton(GroupBox10);
PushButton13->setObjectName(QString::fromUtf8("PushButton13"));
gridLayout5->addWidget(PushButton13, 1, 2, 1, 1);
PushButton12 = new QPushButton(GroupBox10);
PushButton12->setObjectName(QString::fromUtf8("PushButton12"));
gridLayout5->addWidget(PushButton12, 1, 1, 1, 1);
fontpathlistbox = new Q3ListBox(GroupBox10);
fontpathlistbox->setObjectName(QString::fromUtf8("fontpathlistbox"));
gridLayout5->addWidget(fontpathlistbox, 0, 0, 1, 3);
vboxLayout6->addLayout(gridLayout5);
gridLayout6 = new QGridLayout();
gridLayout6->setSpacing(4);
gridLayout6->setContentsMargins(0, 0, 0, 0);
gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
spacerItem2 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
gridLayout6->addItem(spacerItem2, 2, 0, 1, 1);
PushButton15 = new QPushButton(GroupBox10);
PushButton15->setObjectName(QString::fromUtf8("PushButton15"));
gridLayout6->addWidget(PushButton15, 2, 2, 1, 1);
PushButton14 = new QPushButton(GroupBox10);
PushButton14->setObjectName(QString::fromUtf8("PushButton14"));
gridLayout6->addWidget(PushButton14, 2, 1, 1, 1);
TextLabel15_2 = new QLabel(GroupBox10);
TextLabel15_2->setObjectName(QString::fromUtf8("TextLabel15_2"));
gridLayout6->addWidget(TextLabel15_2, 0, 0, 1, 3);
fontpathlineedit = new QLineEdit(GroupBox10);
fontpathlineedit->setObjectName(QString::fromUtf8("fontpathlineedit"));
gridLayout6->addWidget(fontpathlineedit, 1, 0, 1, 3);
vboxLayout6->addLayout(gridLayout6);
vboxLayout5->addWidget(GroupBox10);
TabWidget3->addTab(tab3, QString());
hboxLayout->addWidget(TabWidget3);
MainWindowBase->setCentralWidget(widget);
menubar = new QMenuBar(MainWindowBase);
menubar->setObjectName(QString::fromUtf8("menubar"));
menubar->setGeometry(QRect(0, 0, 724, 27));
action = new QAction(menubar);
action->setObjectName(QString::fromUtf8("action"));
action1 = new QAction(menubar);
action1->setObjectName(QString::fromUtf8("action1"));
action2 = new QAction(menubar);
action2->setObjectName(QString::fromUtf8("action2"));
PopupMenu = new QMenu(menubar);
PopupMenu->setObjectName(QString::fromUtf8("PopupMenu"));
PopupMenu->setGeometry(QRect(0, 0, 800, 480));
action3 = new QAction(PopupMenu);
action3->setObjectName(QString::fromUtf8("action3"));
action4 = new QAction(PopupMenu);
action4->setObjectName(QString::fromUtf8("action4"));
action5 = new QAction(PopupMenu);
action5->setObjectName(QString::fromUtf8("action5"));
PopupMenu_2 = new QMenu(menubar);
PopupMenu_2->setObjectName(QString::fromUtf8("PopupMenu_2"));
PopupMenu_2->setGeometry(QRect(0, 0, 800, 480));
#ifndef QT_NO_SHORTCUT
gstylebuddy->setBuddy(gstylecombo);
labelMainColor->setBuddy(buttonMainColor);
labelMainColor2->setBuddy(buttonMainColor2);
TextLabel1->setBuddy(paletteCombo);
stylebuddy->setBuddy(stylecombo);
psizebuddy->setBuddy(psizecombo);
familybuddy->setBuddy(familycombo);
famsubbuddy->setBuddy(familysubcombo);
choosebuddy->setBuddy(choosesubcombo);
dcibuddy->setBuddy(dcispin);
cfibuddy->setBuddy(cfispin);
wslbuddy->setBuddy(wslspin);
meffectbuddy->setBuddy(menueffect);
ceffectbuddy->setBuddy(comboeffect);
teffectbuddy->setBuddy(tooltipeffect);
beffectbuddy->setBuddy(toolboxeffect);
swbuddy->setBuddy(strutwidth);
shbuddy->setBuddy(strutheight);
#endif // QT_NO_SHORTCUT
QWidget::setTabOrder(helpview, TabWidget3);
QWidget::setTabOrder(TabWidget3, familycombo);
QWidget::setTabOrder(familycombo, stylecombo);
QWidget::setTabOrder(stylecombo, psizecombo);
QWidget::setTabOrder(psizecombo, samplelineedit);
QWidget::setTabOrder(samplelineedit, familysubcombo);
QWidget::setTabOrder(familysubcombo, PushButton2);
QWidget::setTabOrder(PushButton2, PushButton3);
QWidget::setTabOrder(PushButton3, PushButton4);
QWidget::setTabOrder(PushButton4, choosesubcombo);
QWidget::setTabOrder(choosesubcombo, PushButton1);
QWidget::setTabOrder(PushButton1, dcispin);
QWidget::setTabOrder(dcispin, cfispin);
QWidget::setTabOrder(cfispin, wslspin);
QWidget::setTabOrder(wslspin, effectcheckbox);
QWidget::setTabOrder(effectcheckbox, menueffect);
QWidget::setTabOrder(menueffect, comboeffect);
QWidget::setTabOrder(comboeffect, tooltipeffect);
QWidget::setTabOrder(tooltipeffect, strutwidth);
QWidget::setTabOrder(strutwidth, strutheight);
QWidget::setTabOrder(strutheight, sublistbox);
menubar->addAction(PopupMenu->menuAction());
menubar->addSeparator();
menubar->addAction(PopupMenu_2->menuAction());
PopupMenu->addAction(fileSaveAction);
PopupMenu->addSeparator();
PopupMenu->addAction(fileExitAction);
PopupMenu_2->addAction(helpAboutAction);
PopupMenu_2->addAction(helpAboutQtAction);
retranslateUi(MainWindowBase);
menueffect->setCurrentIndex(0);
inputStyle->setCurrentIndex(0);
QMetaObject::connectSlotsByName(MainWindowBase);
} // setupUi
void retranslateUi(Q3MainWindow *MainWindowBase)
{
MainWindowBase->setWindowTitle(QApplication::translate("MainWindowBase", "Qt Configuration", 0, QApplication::UnicodeUTF8));
fileSaveAction->setText(QApplication::translate("MainWindowBase", "&Save", 0, QApplication::UnicodeUTF8));
fileSaveAction->setIconText(QApplication::translate("MainWindowBase", "Save", 0, QApplication::UnicodeUTF8));
fileSaveAction->setShortcut(QApplication::translate("MainWindowBase", "Ctrl+S", 0, QApplication::UnicodeUTF8));
fileExitAction->setText(QApplication::translate("MainWindowBase", "E&xit", 0, QApplication::UnicodeUTF8));
fileExitAction->setIconText(QApplication::translate("MainWindowBase", "Exit", 0, QApplication::UnicodeUTF8));
fileExitAction->setShortcut(QString());
helpAboutAction->setText(QApplication::translate("MainWindowBase", "&About", 0, QApplication::UnicodeUTF8));
helpAboutAction->setIconText(QApplication::translate("MainWindowBase", "About", 0, QApplication::UnicodeUTF8));
helpAboutAction->setShortcut(QString());
helpAboutQtAction->setText(QApplication::translate("MainWindowBase", "About &Qt", 0, QApplication::UnicodeUTF8));
helpAboutQtAction->setIconText(QApplication::translate("MainWindowBase", "About Qt", 0, QApplication::UnicodeUTF8));
GroupBox40->setTitle(QApplication::translate("MainWindowBase", "GUI Style", 0, QApplication::UnicodeUTF8));
gstylebuddy->setText(QApplication::translate("MainWindowBase", "Select GUI &Style:", 0, QApplication::UnicodeUTF8));
groupAutoPalette->setTitle(QApplication::translate("MainWindowBase", "Build Palette", 0, QApplication::UnicodeUTF8));
labelMainColor->setText(QApplication::translate("MainWindowBase", "&3-D Effects:", 0, QApplication::UnicodeUTF8));
labelMainColor2->setText(QApplication::translate("MainWindowBase", "Window Back&ground:", 0, QApplication::UnicodeUTF8));
btnAdvanced->setText(QApplication::translate("MainWindowBase", "&Tune Palette...", 0, QApplication::UnicodeUTF8));
GroupBox126->setTitle(QApplication::translate("MainWindowBase", "Preview", 0, QApplication::UnicodeUTF8));
TextLabel1->setText(QApplication::translate("MainWindowBase", "Select &Palette:", 0, QApplication::UnicodeUTF8));
paletteCombo->clear();
paletteCombo->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "Active Palette", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Inactive Palette", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Disabled Palette", 0, QApplication::UnicodeUTF8)
);
TabWidget3->setTabText(TabWidget3->indexOf(tab1), QApplication::translate("MainWindowBase", "Appearance", 0, QApplication::UnicodeUTF8));
GroupBox1->setTitle(QApplication::translate("MainWindowBase", "Default Font", 0, QApplication::UnicodeUTF8));
stylebuddy->setText(QApplication::translate("MainWindowBase", "&Style:", 0, QApplication::UnicodeUTF8));
psizebuddy->setText(QApplication::translate("MainWindowBase", "&Point Size:", 0, QApplication::UnicodeUTF8));
familybuddy->setText(QApplication::translate("MainWindowBase", "F&amily:", 0, QApplication::UnicodeUTF8));
samplelineedit->setText(QApplication::translate("MainWindowBase", "Sample Text", 0, QApplication::UnicodeUTF8));
GroupBox2->setTitle(QApplication::translate("MainWindowBase", "Font Substitution", 0, QApplication::UnicodeUTF8));
famsubbuddy->setText(QApplication::translate("MainWindowBase", "S&elect or Enter a Family:", 0, QApplication::UnicodeUTF8));
TextLabel5->setText(QApplication::translate("MainWindowBase", "Current Substitutions:", 0, QApplication::UnicodeUTF8));
PushButton2->setText(QApplication::translate("MainWindowBase", "Up", 0, QApplication::UnicodeUTF8));
PushButton3->setText(QApplication::translate("MainWindowBase", "Down", 0, QApplication::UnicodeUTF8));
PushButton4->setText(QApplication::translate("MainWindowBase", "Remove", 0, QApplication::UnicodeUTF8));
choosebuddy->setText(QApplication::translate("MainWindowBase", "Select s&ubstitute Family:", 0, QApplication::UnicodeUTF8));
PushButton1->setText(QApplication::translate("MainWindowBase", "Add", 0, QApplication::UnicodeUTF8));
TabWidget3->setTabText(TabWidget3->indexOf(tab2), QApplication::translate("MainWindowBase", "Fonts", 0, QApplication::UnicodeUTF8));
GroupBox4->setTitle(QApplication::translate("MainWindowBase", "Feel Settings", 0, QApplication::UnicodeUTF8));
dcispin->setSuffix(QApplication::translate("MainWindowBase", " ms", 0, QApplication::UnicodeUTF8));
dcibuddy->setText(QApplication::translate("MainWindowBase", "&Double Click Interval:", 0, QApplication::UnicodeUTF8));
cfispin->setSpecialValueText(QApplication::translate("MainWindowBase", "No blinking", 0, QApplication::UnicodeUTF8));
cfispin->setSuffix(QApplication::translate("MainWindowBase", " ms", 0, QApplication::UnicodeUTF8));
cfibuddy->setText(QApplication::translate("MainWindowBase", "&Cursor Flash Time:", 0, QApplication::UnicodeUTF8));
wslspin->setSuffix(QApplication::translate("MainWindowBase", " lines", 0, QApplication::UnicodeUTF8));
wslbuddy->setText(QApplication::translate("MainWindowBase", "Wheel &Scroll Lines:", 0, QApplication::UnicodeUTF8));
resolvelinks->setText(QApplication::translate("MainWindowBase", "Resolve symlinks in URLs", 0, QApplication::UnicodeUTF8));
GroupBox3->setTitle(QApplication::translate("MainWindowBase", "GUI Effects", 0, QApplication::UnicodeUTF8));
effectcheckbox->setText(QApplication::translate("MainWindowBase", "&Enable", 0, QApplication::UnicodeUTF8));
effectcheckbox->setShortcut(QApplication::translate("MainWindowBase", "Alt+E", 0, QApplication::UnicodeUTF8));
meffectbuddy->setText(QApplication::translate("MainWindowBase", "&Menu Effect:", 0, QApplication::UnicodeUTF8));
ceffectbuddy->setText(QApplication::translate("MainWindowBase", "C&omboBox Effect:", 0, QApplication::UnicodeUTF8));
teffectbuddy->setText(QApplication::translate("MainWindowBase", "&ToolTip Effect:", 0, QApplication::UnicodeUTF8));
beffectbuddy->setText(QApplication::translate("MainWindowBase", "Tool&Box Effect:", 0, QApplication::UnicodeUTF8));
menueffect->clear();
menueffect->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "Disable", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Animate", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Fade", 0, QApplication::UnicodeUTF8)
);
comboeffect->clear();
comboeffect->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "Disable", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Animate", 0, QApplication::UnicodeUTF8)
);
tooltipeffect->clear();
tooltipeffect->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "Disable", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Animate", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Fade", 0, QApplication::UnicodeUTF8)
);
toolboxeffect->clear();
toolboxeffect->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "Disable", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Animate", 0, QApplication::UnicodeUTF8)
);
GroupBox5->setTitle(QApplication::translate("MainWindowBase", "Global Strut", 0, QApplication::UnicodeUTF8));
swbuddy->setText(QApplication::translate("MainWindowBase", "Minimum &Width:", 0, QApplication::UnicodeUTF8));
shbuddy->setText(QApplication::translate("MainWindowBase", "Minimum Hei&ght:", 0, QApplication::UnicodeUTF8));
strutwidth->setSuffix(QApplication::translate("MainWindowBase", " pixels", 0, QApplication::UnicodeUTF8));
strutheight->setSuffix(QApplication::translate("MainWindowBase", " pixels", 0, QApplication::UnicodeUTF8));
rtlExtensions->setText(QApplication::translate("MainWindowBase", "Enhanced support for languages written right-to-left", 0, QApplication::UnicodeUTF8));
inputStyleLabel->setText(QApplication::translate("MainWindowBase", "XIM Input Style:", 0, QApplication::UnicodeUTF8));
inputStyle->clear();
inputStyle->insertItems(0, QStringList()
<< QApplication::translate("MainWindowBase", "On The Spot", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Over The Spot", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Off The Spot", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("MainWindowBase", "Root", 0, QApplication::UnicodeUTF8)
);
TabWidget3->setTabText(TabWidget3->indexOf(tab), QApplication::translate("MainWindowBase", "Interface", 0, QApplication::UnicodeUTF8));
fontembeddingcheckbox->setText(QApplication::translate("MainWindowBase", "Enable Font embedding", 0, QApplication::UnicodeUTF8));
GroupBox10->setTitle(QApplication::translate("MainWindowBase", "Font Paths", 0, QApplication::UnicodeUTF8));
PushButton11->setText(QApplication::translate("MainWindowBase", "Up", 0, QApplication::UnicodeUTF8));
PushButton13->setText(QApplication::translate("MainWindowBase", "Remove", 0, QApplication::UnicodeUTF8));
PushButton12->setText(QApplication::translate("MainWindowBase", "Down", 0, QApplication::UnicodeUTF8));
PushButton15->setText(QApplication::translate("MainWindowBase", "Add", 0, QApplication::UnicodeUTF8));
PushButton14->setText(QApplication::translate("MainWindowBase", "Browse...", 0, QApplication::UnicodeUTF8));
TextLabel15_2->setText(QApplication::translate("MainWindowBase", "Press the <b>Browse</b> button or enter a directory and press Enter to add them to the list.", 0, QApplication::UnicodeUTF8));
TabWidget3->setTabText(TabWidget3->indexOf(tab3), QApplication::translate("MainWindowBase", "Printer", 0, QApplication::UnicodeUTF8));
PopupMenu->setTitle(QApplication::translate("MainWindowBase", "&File", 0, QApplication::UnicodeUTF8));
PopupMenu_2->setTitle(QApplication::translate("MainWindowBase", "&Help", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class MainWindowBase: public Ui_MainWindowBase {};
} // namespace Ui
QT_END_NAMESPACE
#endif // MAINWINDOWBASE_H

View File

@ -10,7 +10,6 @@
#ifndef MYDIALOG_H
#define MYDIALOG_H
#include <Qt3Support/Q3MimeSourceFactory>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>

View File

@ -1,617 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<exportmacro></exportmacro>
<class>PaletteEditorAdvancedBase</class>
<widget class="QDialog" name="PaletteEditorAdvancedBase" >
<property name="objectName" >
<string notr="true" >PaletteEditorAdvancedBase</string>
</property>
<property name="enabled" >
<bool>true</bool>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>295</width>
<height>346</height>
</rect>
</property>
<property name="windowTitle" >
<string>Tune Palette</string>
</property>
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
<property name="whatsThis" stdset="0" >
<string>&lt;b>Edit Palette&lt;/b>&lt;p>Change the palette of the current widget or form.&lt;/p>&lt;p>Use a generated palette or select colors for each color group and each color role.&lt;/p>&lt;p>The palette can be tested with different widget layouts in the preview section.&lt;/p></string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="TextLabel1" >
<property name="objectName" >
<string notr="true" >TextLabel1</string>
</property>
<property name="text" >
<string>Select &amp;Palette:</string>
</property>
<property name="buddy" stdset="0" >
<cstring>paletteCombo</cstring>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="paletteCombo" >
<property name="objectName" >
<string notr="true" >paletteCombo</string>
</property>
<item>
<property name="text" >
<string>Active Palette</string>
</property>
</item>
<item>
<property name="text" >
<string>Inactive Palette</string>
</property>
</item>
<item>
<property name="text" >
<string>Disabled Palette</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Q3ButtonGroup" name="ButtonGroup1" >
<property name="objectName" >
<string notr="true" >ButtonGroup1</string>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>4</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Auto</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="checkBuildInactive" >
<property name="objectName" >
<string notr="true" >checkBuildInactive</string>
</property>
<property name="text" >
<string>Build inactive palette from active</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBuildDisabled" >
<property name="objectName" >
<string notr="true" >checkBuildDisabled</string>
</property>
<property name="text" >
<string>Build disabled palette from active</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Q3GroupBox" name="groupCentral" >
<property name="objectName" >
<string notr="true" >groupCentral</string>
</property>
<property name="title" >
<string>Central color &amp;roles</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QComboBox" name="comboCentral" >
<property name="objectName" >
<string notr="true" >comboCentral</string>
</property>
<property name="toolTip" stdset="0" >
<string>Choose central color role</string>
</property>
<property name="whatsThis" stdset="0" >
<string>&lt;b>Select a color role.&lt;/b>&lt;p>Available central roles are: &lt;ul> &lt;li>Window - general background color.&lt;/li> &lt;li>WindowText - general foreground color. &lt;/li> &lt;li>Base - used as background color for e.g. text entry widgets, usually white or another light color. &lt;/li> &lt;li>Text - the foreground color used with Base. Usually this is the same as WindowText, in what case it must provide good contrast both with Window and Base. &lt;/li> &lt;li>Button - general button background color, where buttons need a background different from Window, as in the Macintosh style. &lt;/li> &lt;li>ButtonText - a foreground color used with the Button color. &lt;/li> &lt;li>Highlight - a color to indicate a selected or highlighted item. &lt;/li> &lt;li>HighlightedText - a text color that contrasts to Highlight. &lt;/li> &lt;li>BrightText - a text color that is very different from WindowText and contrasts well with e.g. black. &lt;/li> &lt;/ul> &lt;/p></string>
</property>
<item>
<property name="text" >
<string>Window</string>
</property>
</item>
<item>
<property name="text" >
<string>WindowText</string>
</property>
</item>
<item>
<property name="text" >
<string>Button</string>
</property>
</item>
<item>
<property name="text" >
<string>Base</string>
</property>
</item>
<item>
<property name="text" >
<string>Text</string>
</property>
</item>
<item>
<property name="text" >
<string>BrightText</string>
</property>
</item>
<item>
<property name="text" >
<string>ButtonText</string>
</property>
</item>
<item>
<property name="text" >
<string>Highlight</string>
</property>
</item>
<item>
<property name="text" >
<string>HighlightedText</string>
</property>
</item>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer name="Horizontal_Spacing1" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="labelCentral" >
<property name="objectName" >
<string notr="true" >labelCentral</string>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text" >
<string>&amp;Select Color:</string>
</property>
<property name="buddy" stdset="0" >
<cstring>buttonCentral</cstring>
</property>
</widget>
</item>
<item>
<widget class="ColorButton" name="buttonCentral" >
<property name="objectName" >
<string notr="true" >buttonCentral</string>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy" >
<enum>Qt::TabFocus</enum>
</property>
<property name="toolTip" stdset="0" >
<string>Choose a color</string>
</property>
<property name="whatsThis" stdset="0" >
<string>Choose a color for the selected central color role.</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Q3GroupBox" name="groupEffect" >
<property name="objectName" >
<string notr="true" >groupEffect</string>
</property>
<property name="title" >
<string>3-D shadow &amp;effects</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="checkBuildEffect" >
<property name="objectName" >
<string notr="true" >checkBuildEffect</string>
</property>
<property name="text" >
<string>Build &amp;from button color</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
<property name="toolTip" stdset="0" >
<string>Generate shadings</string>
</property>
<property name="whatsThis" stdset="0" >
<string>Check to let 3D-effect colors be calculated from button-color.</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboEffect" >
<property name="objectName" >
<string notr="true" >comboEffect</string>
</property>
<property name="toolTip" stdset="0" >
<string>Choose 3D-effect color role</string>
</property>
<property name="whatsThis" stdset="0" >
<string>&lt;b>Select a color role.&lt;/b>&lt;p>Available effect roles are: &lt;ul> &lt;li>Light - lighter than Button color. &lt;/li> &lt;li>Midlight - between Button and Light. &lt;/li> &lt;li>Mid - between Button and Dark. &lt;/li> &lt;li>Dark - darker than Button. &lt;/li> &lt;li>Shadow - a very dark color. &lt;/li> &lt;/ul></string>
</property>
<item>
<property name="text" >
<string>Light</string>
</property>
</item>
<item>
<property name="text" >
<string>Midlight</string>
</property>
</item>
<item>
<property name="text" >
<string>Mid</string>
</property>
</item>
<item>
<property name="text" >
<string>Dark</string>
</property>
</item>
<item>
<property name="text" >
<string>Shadow</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer name="Horizontal_Spacing3" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="labelEffect" >
<property name="objectName" >
<string notr="true" >labelEffect</string>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text" >
<string>Select Co&amp;lor:</string>
</property>
<property name="buddy" stdset="0" >
<cstring>buttonEffect</cstring>
</property>
</widget>
</item>
<item>
<widget class="ColorButton" name="buttonEffect" >
<property name="objectName" >
<string notr="true" >buttonEffect</string>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy" >
<enum>Qt::TabFocus</enum>
</property>
<property name="toolTip" stdset="0" >
<string>Choose a color</string>
</property>
<property name="whatsThis" stdset="0" >
<string>Choose a color for the selected effect color role.</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer name="Horizontal_Spacing2" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonOk" >
<property name="objectName" >
<string notr="true" >buttonOk</string>
</property>
<property name="text" >
<string>OK</string>
</property>
<property name="autoDefault" >
<bool>true</bool>
</property>
<property name="default" >
<bool>true</bool>
</property>
<property name="whatsThis" stdset="0" >
<string>Close dialog and apply all changes.</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonCancel" >
<property name="objectName" >
<string notr="true" >buttonCancel</string>
</property>
<property name="text" >
<string>Cancel</string>
</property>
<property name="autoDefault" >
<bool>true</bool>
</property>
<property name="whatsThis" stdset="0" >
<string>Close dialog and discard all changes.</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>ColorButton</class>
<extends></extends>
<header location="local" >colorbutton.h</header>
<sizehint>
<width>40</width>
<height>25</height>
</sizehint>
<container>0</container>
<sizepolicy>
<hordata>5</hordata>
<verdata>5</verdata>
</sizepolicy>
<pixmap>image0</pixmap>
<properties>
<property type="Color" >color</property>
<property type="Pixmap" >pixmap</property>
</properties>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
<tabstop>paletteCombo</tabstop>
<tabstop>checkBuildInactive</tabstop>
<tabstop>checkBuildDisabled</tabstop>
<tabstop>comboCentral</tabstop>
<tabstop>buttonCentral</tabstop>
<tabstop>checkBuildEffect</tabstop>
<tabstop>comboEffect</tabstop>
<tabstop>buttonEffect</tabstop>
</tabstops>
<images>
<image name="image0" >
<data format="XPM.GZ" length="646" >789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
</image>
</images>
</ui>

View File

@ -1,485 +0,0 @@
/*
*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************
*/
/********************************************************************************
** Form generated from reading UI file 'paletteeditoradvancedbase.ui'
**
** Created: Fri Sep 4 10:17:14 2009
** by: Qt User Interface Compiler version 4.6.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef PALETTEEDITORADVANCEDBASE_H
#define PALETTEEDITORADVANCEDBASE_H
#include <Qt3Support/Q3ButtonGroup>
#include <Qt3Support/Q3GroupBox>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QDialog>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include "colorbutton.h"
QT_BEGIN_NAMESPACE
class Ui_PaletteEditorAdvancedBase
{
public:
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
QLabel *TextLabel1;
QComboBox *paletteCombo;
Q3ButtonGroup *ButtonGroup1;
QVBoxLayout *vboxLayout1;
QCheckBox *checkBuildInactive;
QCheckBox *checkBuildDisabled;
Q3GroupBox *groupCentral;
QVBoxLayout *vboxLayout2;
QComboBox *comboCentral;
QHBoxLayout *hboxLayout1;
QSpacerItem *Horizontal_Spacing1;
QLabel *labelCentral;
ColorButton *buttonCentral;
Q3GroupBox *groupEffect;
QVBoxLayout *vboxLayout3;
QHBoxLayout *hboxLayout2;
QCheckBox *checkBuildEffect;
QComboBox *comboEffect;
QHBoxLayout *hboxLayout3;
QSpacerItem *Horizontal_Spacing3;
QLabel *labelEffect;
ColorButton *buttonEffect;
QHBoxLayout *hboxLayout4;
QSpacerItem *Horizontal_Spacing2;
QPushButton *buttonOk;
QPushButton *buttonCancel;
void setupUi(QDialog *PaletteEditorAdvancedBase)
{
if (PaletteEditorAdvancedBase->objectName().isEmpty())
PaletteEditorAdvancedBase->setObjectName(QString::fromUtf8("PaletteEditorAdvancedBase"));
PaletteEditorAdvancedBase->setEnabled(true);
PaletteEditorAdvancedBase->resize(295, 346);
PaletteEditorAdvancedBase->setSizeGripEnabled(true);
vboxLayout = new QVBoxLayout(PaletteEditorAdvancedBase);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(11, 11, 11, 11);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
vboxLayout->setObjectName(QString::fromUtf8("unnamed"));
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
hboxLayout->setObjectName(QString::fromUtf8("unnamed"));
TextLabel1 = new QLabel(PaletteEditorAdvancedBase);
TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
hboxLayout->addWidget(TextLabel1);
paletteCombo = new QComboBox(PaletteEditorAdvancedBase);
paletteCombo->setObjectName(QString::fromUtf8("paletteCombo"));
hboxLayout->addWidget(paletteCombo);
vboxLayout->addLayout(hboxLayout);
ButtonGroup1 = new Q3ButtonGroup(PaletteEditorAdvancedBase);
ButtonGroup1->setObjectName(QString::fromUtf8("ButtonGroup1"));
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(4));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(ButtonGroup1->sizePolicy().hasHeightForWidth());
ButtonGroup1->setSizePolicy(sizePolicy);
ButtonGroup1->setColumnLayout(0, Qt::Vertical);
#ifndef Q_OS_MAC
ButtonGroup1->layout()->setSpacing(6);
#endif
ButtonGroup1->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout1 = new QVBoxLayout();
QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(ButtonGroup1->layout());
if (boxlayout)
boxlayout->addLayout(vboxLayout1);
vboxLayout1->setAlignment(Qt::AlignTop);
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
vboxLayout1->setObjectName(QString::fromUtf8("unnamed"));
checkBuildInactive = new QCheckBox(ButtonGroup1);
checkBuildInactive->setObjectName(QString::fromUtf8("checkBuildInactive"));
checkBuildInactive->setChecked(true);
vboxLayout1->addWidget(checkBuildInactive);
checkBuildDisabled = new QCheckBox(ButtonGroup1);
checkBuildDisabled->setObjectName(QString::fromUtf8("checkBuildDisabled"));
checkBuildDisabled->setChecked(true);
vboxLayout1->addWidget(checkBuildDisabled);
vboxLayout->addWidget(ButtonGroup1);
groupCentral = new Q3GroupBox(PaletteEditorAdvancedBase);
groupCentral->setObjectName(QString::fromUtf8("groupCentral"));
groupCentral->setColumnLayout(0, Qt::Vertical);
#ifndef Q_OS_MAC
groupCentral->layout()->setSpacing(6);
#endif
groupCentral->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout2 = new QVBoxLayout();
QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(groupCentral->layout());
if (boxlayout1)
boxlayout1->addLayout(vboxLayout2);
vboxLayout2->setAlignment(Qt::AlignTop);
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
vboxLayout2->setObjectName(QString::fromUtf8("unnamed"));
comboCentral = new QComboBox(groupCentral);
comboCentral->setObjectName(QString::fromUtf8("comboCentral"));
vboxLayout2->addWidget(comboCentral);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
hboxLayout1->setObjectName(QString::fromUtf8("unnamed"));
Horizontal_Spacing1 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(Horizontal_Spacing1);
labelCentral = new QLabel(groupCentral);
labelCentral->setObjectName(QString::fromUtf8("labelCentral"));
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(1));
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(labelCentral->sizePolicy().hasHeightForWidth());
labelCentral->setSizePolicy(sizePolicy1);
labelCentral->setMinimumSize(QSize(0, 0));
hboxLayout1->addWidget(labelCentral);
buttonCentral = new ColorButton(groupCentral);
buttonCentral->setObjectName(QString::fromUtf8("buttonCentral"));
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(buttonCentral->sizePolicy().hasHeightForWidth());
buttonCentral->setSizePolicy(sizePolicy2);
buttonCentral->setFocusPolicy(Qt::TabFocus);
hboxLayout1->addWidget(buttonCentral);
vboxLayout2->addLayout(hboxLayout1);
vboxLayout->addWidget(groupCentral);
groupEffect = new Q3GroupBox(PaletteEditorAdvancedBase);
groupEffect->setObjectName(QString::fromUtf8("groupEffect"));
groupEffect->setColumnLayout(0, Qt::Vertical);
#ifndef Q_OS_MAC
groupEffect->layout()->setSpacing(6);
#endif
groupEffect->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout3 = new QVBoxLayout();
QBoxLayout *boxlayout2 = qobject_cast<QBoxLayout *>(groupEffect->layout());
if (boxlayout2)
boxlayout2->addLayout(vboxLayout3);
vboxLayout3->setAlignment(Qt::AlignTop);
vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3"));
vboxLayout3->setObjectName(QString::fromUtf8("unnamed"));
hboxLayout2 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout2->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout2->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
hboxLayout2->setObjectName(QString::fromUtf8("unnamed"));
checkBuildEffect = new QCheckBox(groupEffect);
checkBuildEffect->setObjectName(QString::fromUtf8("checkBuildEffect"));
checkBuildEffect->setChecked(true);
hboxLayout2->addWidget(checkBuildEffect);
comboEffect = new QComboBox(groupEffect);
comboEffect->setObjectName(QString::fromUtf8("comboEffect"));
hboxLayout2->addWidget(comboEffect);
vboxLayout3->addLayout(hboxLayout2);
hboxLayout3 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout3->setSpacing(6);
#endif
hboxLayout3->setContentsMargins(0, 0, 0, 0);
hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
hboxLayout3->setObjectName(QString::fromUtf8("unnamed"));
Horizontal_Spacing3 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout3->addItem(Horizontal_Spacing3);
labelEffect = new QLabel(groupEffect);
labelEffect->setObjectName(QString::fromUtf8("labelEffect"));
sizePolicy1.setHeightForWidth(labelEffect->sizePolicy().hasHeightForWidth());
labelEffect->setSizePolicy(sizePolicy1);
labelEffect->setMinimumSize(QSize(0, 0));
hboxLayout3->addWidget(labelEffect);
buttonEffect = new ColorButton(groupEffect);
buttonEffect->setObjectName(QString::fromUtf8("buttonEffect"));
sizePolicy2.setHeightForWidth(buttonEffect->sizePolicy().hasHeightForWidth());
buttonEffect->setSizePolicy(sizePolicy2);
buttonEffect->setFocusPolicy(Qt::TabFocus);
hboxLayout3->addWidget(buttonEffect);
vboxLayout3->addLayout(hboxLayout3);
vboxLayout->addWidget(groupEffect);
hboxLayout4 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout4->setSpacing(6);
#endif
hboxLayout4->setContentsMargins(0, 0, 0, 0);
hboxLayout4->setObjectName(QString::fromUtf8("hboxLayout4"));
hboxLayout4->setObjectName(QString::fromUtf8("unnamed"));
Horizontal_Spacing2 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout4->addItem(Horizontal_Spacing2);
buttonOk = new QPushButton(PaletteEditorAdvancedBase);
buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
buttonOk->setAutoDefault(true);
buttonOk->setDefault(true);
hboxLayout4->addWidget(buttonOk);
buttonCancel = new QPushButton(PaletteEditorAdvancedBase);
buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
buttonCancel->setAutoDefault(true);
hboxLayout4->addWidget(buttonCancel);
vboxLayout->addLayout(hboxLayout4);
#ifndef QT_NO_SHORTCUT
TextLabel1->setBuddy(paletteCombo);
labelCentral->setBuddy(buttonCentral);
labelEffect->setBuddy(buttonEffect);
#endif // QT_NO_SHORTCUT
QWidget::setTabOrder(buttonOk, buttonCancel);
QWidget::setTabOrder(buttonCancel, paletteCombo);
QWidget::setTabOrder(paletteCombo, checkBuildInactive);
QWidget::setTabOrder(checkBuildInactive, checkBuildDisabled);
QWidget::setTabOrder(checkBuildDisabled, comboCentral);
QWidget::setTabOrder(comboCentral, buttonCentral);
QWidget::setTabOrder(buttonCentral, checkBuildEffect);
QWidget::setTabOrder(checkBuildEffect, comboEffect);
QWidget::setTabOrder(comboEffect, buttonEffect);
retranslateUi(PaletteEditorAdvancedBase);
QMetaObject::connectSlotsByName(PaletteEditorAdvancedBase);
} // setupUi
void retranslateUi(QDialog *PaletteEditorAdvancedBase)
{
PaletteEditorAdvancedBase->setWindowTitle(QApplication::translate("PaletteEditorAdvancedBase", "Tune Palette", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_WHATSTHIS
PaletteEditorAdvancedBase->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "<b>Edit Palette</b><p>Change the palette of the current widget or form.</p><p>Use a generated palette or select colors for each color group and each color role.</p><p>The palette can be tested with different widget layouts in the preview section.</p>", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
TextLabel1->setText(QApplication::translate("PaletteEditorAdvancedBase", "Select &Palette:", 0, QApplication::UnicodeUTF8));
paletteCombo->clear();
paletteCombo->insertItems(0, QStringList()
<< QApplication::translate("PaletteEditorAdvancedBase", "Active Palette", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Inactive Palette", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Disabled Palette", 0, QApplication::UnicodeUTF8)
);
ButtonGroup1->setTitle(QApplication::translate("PaletteEditorAdvancedBase", "Auto", 0, QApplication::UnicodeUTF8));
checkBuildInactive->setText(QApplication::translate("PaletteEditorAdvancedBase", "Build inactive palette from active", 0, QApplication::UnicodeUTF8));
checkBuildDisabled->setText(QApplication::translate("PaletteEditorAdvancedBase", "Build disabled palette from active", 0, QApplication::UnicodeUTF8));
groupCentral->setTitle(QApplication::translate("PaletteEditorAdvancedBase", "Central color &roles", 0, QApplication::UnicodeUTF8));
comboCentral->clear();
comboCentral->insertItems(0, QStringList()
<< QApplication::translate("PaletteEditorAdvancedBase", "Window", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "WindowText", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Button", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Base", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Text", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "BrightText", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "ButtonText", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Highlight", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "HighlightedText", 0, QApplication::UnicodeUTF8)
);
#ifndef QT_NO_TOOLTIP
comboCentral->setProperty("toolTip", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose central color role", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_TOOLTIP
#ifndef QT_NO_WHATSTHIS
comboCentral->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "<b>Select a color role.</b><p>Available central roles are: <ul> <li>Window - general background color.</li> <li>WindowText - general foreground color. </li> <li>Base - used as background color for e.g. text entry widgets, usually white or another light color. </li> <li>Text - the foreground color used with Base. Usually this is the same as WindowText, in what case it must provide good contrast both with Window and Base. </li> <li>Button - general button background color, where buttons need a background different from Window, as in the Macintosh style. </li> <li>ButtonText - a foreground color used with the Button color. </li> <li>Highlight - a color to indicate a selected or highlighted item. </li> <li>HighlightedText - a text color that contrasts to Highlight. </li> <li>BrightText - a text color that is very different from WindowText and contrasts well with e.g. black. </li> </ul> </p>", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
labelCentral->setText(QApplication::translate("PaletteEditorAdvancedBase", "&Select Color:", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
buttonCentral->setProperty("toolTip", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose a color", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_TOOLTIP
#ifndef QT_NO_WHATSTHIS
buttonCentral->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose a color for the selected central color role.", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
groupEffect->setTitle(QApplication::translate("PaletteEditorAdvancedBase", "3-D shadow &effects", 0, QApplication::UnicodeUTF8));
checkBuildEffect->setText(QApplication::translate("PaletteEditorAdvancedBase", "Build &from button color", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
checkBuildEffect->setProperty("toolTip", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Generate shadings", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_TOOLTIP
#ifndef QT_NO_WHATSTHIS
checkBuildEffect->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Check to let 3D-effect colors be calculated from button-color.", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
comboEffect->clear();
comboEffect->insertItems(0, QStringList()
<< QApplication::translate("PaletteEditorAdvancedBase", "Light", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Midlight", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Mid", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Dark", 0, QApplication::UnicodeUTF8)
<< QApplication::translate("PaletteEditorAdvancedBase", "Shadow", 0, QApplication::UnicodeUTF8)
);
#ifndef QT_NO_TOOLTIP
comboEffect->setProperty("toolTip", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose 3D-effect color role", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_TOOLTIP
#ifndef QT_NO_WHATSTHIS
comboEffect->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "<b>Select a color role.</b><p>Available effect roles are: <ul> <li>Light - lighter than Button color. </li> <li>Midlight - between Button and Light. </li> <li>Mid - between Button and Dark. </li> <li>Dark - darker than Button. </li> <li>Shadow - a very dark color. </li> </ul>", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
labelEffect->setText(QApplication::translate("PaletteEditorAdvancedBase", "Select Co&lor:", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
buttonEffect->setProperty("toolTip", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose a color", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_TOOLTIP
#ifndef QT_NO_WHATSTHIS
buttonEffect->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Choose a color for the selected effect color role.", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
buttonOk->setText(QApplication::translate("PaletteEditorAdvancedBase", "OK", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_WHATSTHIS
buttonOk->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Close dialog and apply all changes.", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
buttonCancel->setText(QApplication::translate("PaletteEditorAdvancedBase", "Cancel", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_WHATSTHIS
buttonCancel->setProperty("whatsThis", QVariant(QApplication::translate("PaletteEditorAdvancedBase", "Close dialog and discard all changes.", 0, QApplication::UnicodeUTF8)));
#endif // QT_NO_WHATSTHIS
} // retranslateUi
protected:
enum IconID
{
image0_ID,
unknown_ID
};
static QPixmap qt_get_icon(IconID id)
{
/* XPM */
static const char* const image0_data[] = {
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};
switch (id) {
case image0_ID: return QPixmap((const char**)image0_data);
default: return QPixmap();
} // switch
} // icon
};
namespace Ui {
class PaletteEditorAdvancedBase: public Ui_PaletteEditorAdvancedBase {};
} // namespace Ui
QT_END_NAMESPACE
#endif // PALETTEEDITORADVANCEDBASE_H

View File

@ -1,340 +0,0 @@
<ui version="4.0" stdsetdef="1" >
<author></author>
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<exportmacro></exportmacro>
<class>PreviewWidgetBase</class>
<widget class="QWidget" name="PreviewWidgetBase" >
<property name="objectName" >
<string notr="true" >PreviewWidgetBase</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>378</width>
<height>236</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Preview Window</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="Q3ButtonGroup" name="ButtonGroup1" >
<property name="objectName" >
<string notr="true" >ButtonGroup1</string>
</property>
<property name="title" >
<string>ButtonGroup</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QRadioButton" name="RadioButton1" >
<property name="objectName" >
<string notr="true" >RadioButton1</string>
</property>
<property name="text" >
<string>RadioButton1</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="RadioButton2" >
<property name="objectName" >
<string notr="true" >RadioButton2</string>
</property>
<property name="text" >
<string>RadioButton2</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="RadioButton3" >
<property name="objectName" >
<string notr="true" >RadioButton3</string>
</property>
<property name="text" >
<string>RadioButton3</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Q3ButtonGroup" name="ButtonGroup2" >
<property name="objectName" >
<string notr="true" >ButtonGroup2</string>
</property>
<property name="title" >
<string>ButtonGroup2</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="CheckBox1" >
<property name="objectName" >
<string notr="true" >CheckBox1</string>
</property>
<property name="text" >
<string>CheckBox1</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="CheckBox2" >
<property name="objectName" >
<string notr="true" >CheckBox2</string>
</property>
<property name="text" >
<string>CheckBox2</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QProgressBar" name="ProgressBar1" >
<property name="objectName" >
<string notr="true" >ProgressBar1</string>
</property>
<property name="value" >
<number>50</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="LineEdit1" >
<property name="objectName" >
<string notr="true" >LineEdit1</string>
</property>
<property name="text" >
<string>LineEdit</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="ComboBox1" >
<property name="objectName" >
<string notr="true" >ComboBox1</string>
</property>
<item>
<property name="text" >
<string>ComboBox</string>
</property>
</item>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" >unnamed</string>
</property>
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QSpinBox" name="SpinBox1" >
<property name="objectName" >
<string notr="true" >SpinBox1</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="PushButton1" >
<property name="objectName" >
<string notr="true" >PushButton1</string>
</property>
<property name="text" >
<string>PushButton</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QScrollBar" name="ScrollBar1" >
<property name="objectName" >
<string notr="true" >ScrollBar1</string>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="Slider1" >
<property name="objectName" >
<string notr="true" >Slider1</string>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="textView" >
<property name="objectName" >
<string notr="true" >textView</string>
</property>
<property name="maximumSize" >
<size>
<width>32767</width>
<height>50</height>
</size>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="text" >
<string>&lt;p>
&lt;a href=&quot;http://qt.nokia.com&quot;>http://qt.nokia.com&lt;/a>
&lt;/p>
&lt;p>
&lt;a href=&quot;http://www.kde.org&quot;>http://www.kde.org&lt;/a>
&lt;/p></string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="Spacer2" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="sizeType" >
<enum>Expanding</enum>
</property>
<property name="orientation" >
<enum>Vertical</enum>
</property>
</spacer>
</item>
</layout>
</widget>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>

View File

@ -1,316 +0,0 @@
/*
*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**
**
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************
*/
/********************************************************************************
** Form generated from reading UI file 'previewwidgetbase.ui'
**
** Created: Fri Sep 4 10:17:14 2009
** by: Qt User Interface Compiler version 4.6.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef PREVIEWWIDGETBASE_H
#define PREVIEWWIDGETBASE_H
#include <Qt3Support/Q3ButtonGroup>
#include <Qt3Support/Q3MimeSourceFactory>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLineEdit>
#include <QtGui/QProgressBar>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QScrollBar>
#include <QtGui/QSlider>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QTextEdit>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class Ui_PreviewWidgetBase
{
public:
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
QVBoxLayout *vboxLayout1;
Q3ButtonGroup *ButtonGroup1;
QVBoxLayout *vboxLayout2;
QRadioButton *RadioButton1;
QRadioButton *RadioButton2;
QRadioButton *RadioButton3;
Q3ButtonGroup *ButtonGroup2;
QVBoxLayout *vboxLayout3;
QCheckBox *CheckBox1;
QCheckBox *CheckBox2;
QProgressBar *ProgressBar1;
QVBoxLayout *vboxLayout4;
QLineEdit *LineEdit1;
QComboBox *ComboBox1;
QHBoxLayout *hboxLayout1;
QSpinBox *SpinBox1;
QPushButton *PushButton1;
QScrollBar *ScrollBar1;
QSlider *Slider1;
QTextEdit *textView;
QSpacerItem *Spacer2;
void setupUi(QWidget *PreviewWidgetBase)
{
if (PreviewWidgetBase->objectName().isEmpty())
PreviewWidgetBase->setObjectName(QString::fromUtf8("PreviewWidgetBase"));
PreviewWidgetBase->resize(378, 236);
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(1));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(PreviewWidgetBase->sizePolicy().hasHeightForWidth());
PreviewWidgetBase->setSizePolicy(sizePolicy);
vboxLayout = new QVBoxLayout(PreviewWidgetBase);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(11, 11, 11, 11);
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
vboxLayout->setObjectName(QString::fromUtf8("unnamed"));
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
hboxLayout->setObjectName(QString::fromUtf8("unnamed"));
vboxLayout1 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(0, 0, 0, 0);
#endif
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
vboxLayout1->setObjectName(QString::fromUtf8("unnamed"));
ButtonGroup1 = new Q3ButtonGroup(PreviewWidgetBase);
ButtonGroup1->setObjectName(QString::fromUtf8("ButtonGroup1"));
ButtonGroup1->setColumnLayout(0, Qt::Vertical);
#ifndef Q_OS_MAC
ButtonGroup1->layout()->setSpacing(6);
#endif
ButtonGroup1->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout2 = new QVBoxLayout();
QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(ButtonGroup1->layout());
if (boxlayout)
boxlayout->addLayout(vboxLayout2);
vboxLayout2->setAlignment(Qt::AlignTop);
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
vboxLayout2->setObjectName(QString::fromUtf8("unnamed"));
RadioButton1 = new QRadioButton(ButtonGroup1);
RadioButton1->setObjectName(QString::fromUtf8("RadioButton1"));
RadioButton1->setChecked(true);
vboxLayout2->addWidget(RadioButton1);
RadioButton2 = new QRadioButton(ButtonGroup1);
RadioButton2->setObjectName(QString::fromUtf8("RadioButton2"));
vboxLayout2->addWidget(RadioButton2);
RadioButton3 = new QRadioButton(ButtonGroup1);
RadioButton3->setObjectName(QString::fromUtf8("RadioButton3"));
vboxLayout2->addWidget(RadioButton3);
vboxLayout1->addWidget(ButtonGroup1);
ButtonGroup2 = new Q3ButtonGroup(PreviewWidgetBase);
ButtonGroup2->setObjectName(QString::fromUtf8("ButtonGroup2"));
ButtonGroup2->setColumnLayout(0, Qt::Vertical);
#ifndef Q_OS_MAC
ButtonGroup2->layout()->setSpacing(6);
#endif
ButtonGroup2->layout()->setContentsMargins(11, 11, 11, 11);
vboxLayout3 = new QVBoxLayout();
QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(ButtonGroup2->layout());
if (boxlayout1)
boxlayout1->addLayout(vboxLayout3);
vboxLayout3->setAlignment(Qt::AlignTop);
vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3"));
vboxLayout3->setObjectName(QString::fromUtf8("unnamed"));
CheckBox1 = new QCheckBox(ButtonGroup2);
CheckBox1->setObjectName(QString::fromUtf8("CheckBox1"));
CheckBox1->setChecked(true);
vboxLayout3->addWidget(CheckBox1);
CheckBox2 = new QCheckBox(ButtonGroup2);
CheckBox2->setObjectName(QString::fromUtf8("CheckBox2"));
vboxLayout3->addWidget(CheckBox2);
vboxLayout1->addWidget(ButtonGroup2);
ProgressBar1 = new QProgressBar(PreviewWidgetBase);
ProgressBar1->setObjectName(QString::fromUtf8("ProgressBar1"));
ProgressBar1->setValue(50);
vboxLayout1->addWidget(ProgressBar1);
hboxLayout->addLayout(vboxLayout1);
vboxLayout4 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout4->setSpacing(6);
#endif
vboxLayout4->setContentsMargins(0, 0, 0, 0);
vboxLayout4->setObjectName(QString::fromUtf8("vboxLayout4"));
vboxLayout4->setObjectName(QString::fromUtf8("unnamed"));
LineEdit1 = new QLineEdit(PreviewWidgetBase);
LineEdit1->setObjectName(QString::fromUtf8("LineEdit1"));
vboxLayout4->addWidget(LineEdit1);
ComboBox1 = new QComboBox(PreviewWidgetBase);
ComboBox1->setObjectName(QString::fromUtf8("ComboBox1"));
vboxLayout4->addWidget(ComboBox1);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
hboxLayout1->setObjectName(QString::fromUtf8("unnamed"));
SpinBox1 = new QSpinBox(PreviewWidgetBase);
SpinBox1->setObjectName(QString::fromUtf8("SpinBox1"));
hboxLayout1->addWidget(SpinBox1);
PushButton1 = new QPushButton(PreviewWidgetBase);
PushButton1->setObjectName(QString::fromUtf8("PushButton1"));
hboxLayout1->addWidget(PushButton1);
vboxLayout4->addLayout(hboxLayout1);
ScrollBar1 = new QScrollBar(PreviewWidgetBase);
ScrollBar1->setObjectName(QString::fromUtf8("ScrollBar1"));
ScrollBar1->setOrientation(Qt::Horizontal);
vboxLayout4->addWidget(ScrollBar1);
Slider1 = new QSlider(PreviewWidgetBase);
Slider1->setObjectName(QString::fromUtf8("Slider1"));
Slider1->setOrientation(Qt::Horizontal);
vboxLayout4->addWidget(Slider1);
textView = new QTextEdit(PreviewWidgetBase);
textView->setObjectName(QString::fromUtf8("textView"));
textView->setMaximumSize(QSize(32767, 50));
textView->setReadOnly(true);
vboxLayout4->addWidget(textView);
hboxLayout->addLayout(vboxLayout4);
vboxLayout->addLayout(hboxLayout);
Spacer2 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout->addItem(Spacer2);
retranslateUi(PreviewWidgetBase);
QMetaObject::connectSlotsByName(PreviewWidgetBase);
} // setupUi
void retranslateUi(QWidget *PreviewWidgetBase)
{
PreviewWidgetBase->setWindowTitle(QApplication::translate("PreviewWidgetBase", "Preview Window", 0, QApplication::UnicodeUTF8));
ButtonGroup1->setTitle(QApplication::translate("PreviewWidgetBase", "ButtonGroup", 0, QApplication::UnicodeUTF8));
RadioButton1->setText(QApplication::translate("PreviewWidgetBase", "RadioButton1", 0, QApplication::UnicodeUTF8));
RadioButton2->setText(QApplication::translate("PreviewWidgetBase", "RadioButton2", 0, QApplication::UnicodeUTF8));
RadioButton3->setText(QApplication::translate("PreviewWidgetBase", "RadioButton3", 0, QApplication::UnicodeUTF8));
ButtonGroup2->setTitle(QApplication::translate("PreviewWidgetBase", "ButtonGroup2", 0, QApplication::UnicodeUTF8));
CheckBox1->setText(QApplication::translate("PreviewWidgetBase", "CheckBox1", 0, QApplication::UnicodeUTF8));
CheckBox2->setText(QApplication::translate("PreviewWidgetBase", "CheckBox2", 0, QApplication::UnicodeUTF8));
LineEdit1->setText(QApplication::translate("PreviewWidgetBase", "LineEdit", 0, QApplication::UnicodeUTF8));
ComboBox1->clear();
ComboBox1->insertItems(0, QStringList()
<< QApplication::translate("PreviewWidgetBase", "ComboBox", 0, QApplication::UnicodeUTF8)
);
PushButton1->setText(QApplication::translate("PreviewWidgetBase", "PushButton", 0, QApplication::UnicodeUTF8));
textView->setText(QApplication::translate("PreviewWidgetBase", "<p>\n"
"<a href=\"http://qt.nokia.com\">http://qt.nokia.com</a>\n"
"</p>\n"
"<p>\n"
"<a href=\"http://www.kde.org\">http://www.kde.org</a>\n"
"</p>", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class PreviewWidgetBase: public Ui_PreviewWidgetBase {};
} // namespace Ui
QT_END_NAMESPACE
#endif // PREVIEWWIDGETBASE_H