+ unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
BIN
src/Gui/iisTaskPanel/tests/styles/images/logo32.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/editcopy.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/editcut.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/editpaste.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/editredo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/editundo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/exportpdf.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/filenew.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/fileopen.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/fileprint.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/filesave.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textbold.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textcenter.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textitalic.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textjustify.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textleft.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textright.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/textunder.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/zoomin.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/mac/zoomout.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/editcopy.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/editcut.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/editpaste.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/editredo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/editundo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/exportpdf.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/filenew.png
Normal file
|
After Width: | Height: | Size: 768 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/fileopen.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/fileprint.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/filesave.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textbold.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textcenter.png
Normal file
|
After Width: | Height: | Size: 627 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textitalic.png
Normal file
|
After Width: | Height: | Size: 829 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textjustify.png
Normal file
|
After Width: | Height: | Size: 695 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textleft.png
Normal file
|
After Width: | Height: | Size: 673 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textright.png
Normal file
|
After Width: | Height: | Size: 677 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/textunder.png
Normal file
|
After Width: | Height: | Size: 971 B |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/zoomin.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/styles/images/win/zoomout.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
11
src/Gui/iisTaskPanel/tests/styles/main.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <QtGui/QApplication>
|
||||
#include "styles.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
test w;
|
||||
w.show();
|
||||
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
|
||||
return a.exec();
|
||||
}
|
||||
104
src/Gui/iisTaskPanel/tests/styles/styles.cpp
Normal file
@@ -0,0 +1,104 @@
|
||||
#include "styles.h"
|
||||
|
||||
#include <iisTaskPanel>
|
||||
|
||||
test::test(QWidget *parent, Qt::WFlags flags)
|
||||
: QMainWindow(parent, flags)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
tb1 = new iisTaskBox(QPixmap(":/images/win/filenew.png"), "Group of Tasks", true, this);
|
||||
ui.panel->addWidget(tb1);
|
||||
|
||||
iisIconLabel *i1 = new iisIconLabel(QPixmap(":/images/win/zoomin.png"), "Do Task 1", tb1);
|
||||
tb1->addIconLabel(i1);
|
||||
connect(i1, SIGNAL(activated()), this, SLOT(task1()));
|
||||
//tb1->groupLayout()->addWidget(i1);
|
||||
iisIconLabel *i2 = new iisIconLabel(QPixmap(":/images/win/zoomout.png"), "Do Task 2", tb1);
|
||||
tb1->addIconLabel(i2);
|
||||
//tb1->groupLayout()->addWidget(i2);
|
||||
|
||||
QHBoxLayout *hbl = new QHBoxLayout();
|
||||
tb1->groupLayout()->addLayout(hbl);
|
||||
|
||||
iisIconLabel *i3 = new iisIconLabel(QPixmap(":/images/win/editcopy.png"), "Do Task 3", tb1);
|
||||
tb1->addIconLabel(i3, false);
|
||||
hbl->addWidget(i3);
|
||||
//tb1->groupLayout()->addWidget(i3);
|
||||
iisIconLabel *i4 = new iisIconLabel(QPixmap(":/images/win/editcut.png"), "Do Task 4", tb1);
|
||||
tb1->addIconLabel(i4, false);
|
||||
hbl->addWidget(i4);
|
||||
i4->setColors(Qt::red, Qt::green, Qt::gray);
|
||||
i4->setFocusPen(QPen());
|
||||
//tb1->groupLayout()->addWidget(i4);
|
||||
iisIconLabel *i5 = new iisIconLabel(QPixmap(":/images/win/editpaste.png"), "Do Task 5", tb1);
|
||||
tb1->addIconLabel(i5);
|
||||
//tb1->groupLayout()->addWidget(i5);
|
||||
|
||||
tb2 = new iisTaskBox(QPixmap(":/images/win/fileprint.png"), "Non-expandable Group", false, this);
|
||||
ui.panel->addWidget(tb2);
|
||||
|
||||
iisIconLabel *i21 = new iisIconLabel(QPixmap(":/images/win/filenew.png"), "Do Task 2.1", tb2);
|
||||
tb2->addIconLabel(i21);
|
||||
//tb2->groupLayout()->addWidget(i21);
|
||||
iisIconLabel *i22 = new iisIconLabel(QPixmap(":/images/win/fileopen.png"), "Do Task 2.2", tb2);
|
||||
tb2->addIconLabel(i22);
|
||||
i22->setEnabled(false);
|
||||
//tb2->groupLayout()->addWidget(i22);
|
||||
iisIconLabel *i23 = new iisIconLabel(QPixmap(":/images/win/filesave.png"), "Do Task 2.3", tb2);
|
||||
tb2->addIconLabel(i23);
|
||||
//tb2->groupLayout()->addWidget(i23);
|
||||
|
||||
tb3 = new iisTaskBox(QPixmap(), "Group without Icons", true, this);
|
||||
ui.panel->addWidget(tb3);
|
||||
|
||||
iisIconLabel *i31 = new iisIconLabel(QPixmap(), "Do Task 3.1", tb3);
|
||||
tb3->addIconLabel(i31);
|
||||
|
||||
iisIconLabel *i32 = new iisIconLabel(QPixmap(), "Do Task 3.2", tb3);
|
||||
tb3->addIconLabel(i32);
|
||||
|
||||
tb3->groupLayout()->addWidget(new QLabel("Widgets also allowed:", this));
|
||||
tb3->groupLayout()->addWidget(new QPushButton("A Button", this));
|
||||
|
||||
|
||||
// Other widgets can be also added to the panel
|
||||
QLabel *l1 = new QLabel("A group without header", this);
|
||||
ui.panel->addWidget(l1);
|
||||
|
||||
|
||||
tb4 = new iisTaskGroup(this);
|
||||
ui.panel->addWidget(tb4);
|
||||
|
||||
iisIconLabel *i41 = new iisIconLabel(QPixmap(":/images/win/textbold.png"), "Do Task 4.1", tb4);
|
||||
tb4->addIconLabel(i41);
|
||||
|
||||
iisIconLabel *i42 = new iisIconLabel(QPixmap(), "Do Task 4.2", tb4);
|
||||
tb4->addIconLabel(i42);
|
||||
|
||||
ui.panel->addStretch();
|
||||
}
|
||||
|
||||
test::~test()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void test::on_rbDefault_clicked()
|
||||
{
|
||||
ui.panel->setScheme(iisTaskPanelScheme::defaultScheme());
|
||||
//tb1->setScheme(iisTaskPanelScheme::defaultScheme());
|
||||
//tb2->setScheme(iisTaskPanelScheme::defaultScheme());
|
||||
//tb3->setScheme(iisTaskPanelScheme::defaultScheme());
|
||||
//tb4->setScheme(iisTaskPanelScheme::defaultScheme());
|
||||
}
|
||||
|
||||
void test::on_rbXP_clicked()
|
||||
{
|
||||
ui.panel->setScheme(iisWinXPTaskPanelScheme::defaultScheme());
|
||||
//tb1->setScheme(iisWinXPTaskPanelScheme::defaultScheme());
|
||||
tb2->setScheme(iisWinXPTaskPanelScheme2::defaultScheme());
|
||||
tb3->setScheme(iisWinXPTaskPanelScheme2::defaultScheme());
|
||||
//tb4->setScheme(iisWinXPTaskPanelScheme::defaultScheme());
|
||||
}
|
||||
|
||||
29
src/Gui/iisTaskPanel/tests/styles/styles.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef TEST_H
|
||||
#define TEST_H
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
#include "ui_styles.h"
|
||||
|
||||
class iisTaskBox;
|
||||
class iisTaskGroup;
|
||||
|
||||
class test : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
test(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
~test();
|
||||
|
||||
protected slots:
|
||||
void on_rbDefault_clicked();
|
||||
void on_rbXP_clicked();
|
||||
|
||||
private:
|
||||
Ui::testClass ui;
|
||||
|
||||
iisTaskBox *tb1, *tb2, *tb3;
|
||||
iisTaskGroup *tb4;
|
||||
};
|
||||
|
||||
#endif // TEST_H
|
||||
12
src/Gui/iisTaskPanel/tests/styles/styles.pro
Normal file
@@ -0,0 +1,12 @@
|
||||
TEMPLATE = app
|
||||
TARGET = styles
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
HEADERS += styles.h
|
||||
SOURCES += styles.cpp main.cpp
|
||||
|
||||
FORMS += styles.ui
|
||||
|
||||
RESOURCES += styles.qrc
|
||||
|
||||
23
src/Gui/iisTaskPanel/tests/styles/styles.qrc
Normal file
@@ -0,0 +1,23 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>images/win/editcopy.png</file>
|
||||
<file>images/win/editcut.png</file>
|
||||
<file>images/win/editpaste.png</file>
|
||||
<file>images/win/editredo.png</file>
|
||||
<file>images/win/editundo.png</file>
|
||||
<file>images/win/exportpdf.png</file>
|
||||
<file>images/win/filenew.png</file>
|
||||
<file>images/win/fileopen.png</file>
|
||||
<file>images/win/fileprint.png</file>
|
||||
<file>images/win/filesave.png</file>
|
||||
<file>images/win/textbold.png</file>
|
||||
<file>images/win/textcenter.png</file>
|
||||
<file>images/win/textitalic.png</file>
|
||||
<file>images/win/textjustify.png</file>
|
||||
<file>images/win/textleft.png</file>
|
||||
<file>images/win/textright.png</file>
|
||||
<file>images/win/textunder.png</file>
|
||||
<file>images/win/zoomin.png</file>
|
||||
<file>images/win/zoomout.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
117
src/Gui/iisTaskPanel/tests/styles/styles.ui
Normal file
@@ -0,0 +1,117 @@
|
||||
<ui version="4.0" >
|
||||
<class>testClass</class>
|
||||
<widget class="QMainWindow" name="testClass" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>678</width>
|
||||
<height>467</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>test</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget" >
|
||||
<layout class="QGridLayout" >
|
||||
<item rowspan="2" row="0" column="0" >
|
||||
<widget class="iisTaskPanel" native="1" name="panel" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QTextBrowser" name="textBrowser" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize" >
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>200</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="html" >
|
||||
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-size:20pt; font-weight:600;">iisTaskPanel</span></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:20pt; font-weight:600;"></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:20pt; font-weight:600;"><span style=" font-size:12pt;">Created for Qt 4.3.x</span></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt; font-weight:600;"></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt; font-weight:600;">www.ii-system.com</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QGroupBox" name="groupBox" >
|
||||
<property name="title" >
|
||||
<string>Choose the style of the Task Panel</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="QRadioButton" name="rbDefault" >
|
||||
<property name="text" >
|
||||
<string>Default</string>
|
||||
</property>
|
||||
<property name="checked" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" >
|
||||
<widget class="QRadioButton" name="rbXP" >
|
||||
<property name="text" >
|
||||
<string>Windows XP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" >
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>678</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>iisTaskPanel</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global" >iisTaskPanel</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
BIN
src/Gui/iisTaskPanel/tests/test/images/logo32.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/editcopy.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/editcut.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/editpaste.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/editredo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/editundo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/exportpdf.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/filenew.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/fileopen.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/fileprint.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/filesave.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textbold.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textcenter.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textitalic.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textjustify.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textleft.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textright.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/textunder.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/zoomin.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/mac/zoomout.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/editcopy.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/editcut.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/editpaste.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/editredo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/editundo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/exportpdf.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/filenew.png
Normal file
|
After Width: | Height: | Size: 768 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/fileopen.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/fileprint.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/filesave.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textbold.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textcenter.png
Normal file
|
After Width: | Height: | Size: 627 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textitalic.png
Normal file
|
After Width: | Height: | Size: 829 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textjustify.png
Normal file
|
After Width: | Height: | Size: 695 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textleft.png
Normal file
|
After Width: | Height: | Size: 673 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textright.png
Normal file
|
After Width: | Height: | Size: 677 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/textunder.png
Normal file
|
After Width: | Height: | Size: 971 B |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/zoomin.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/Gui/iisTaskPanel/tests/test/images/win/zoomout.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
11
src/Gui/iisTaskPanel/tests/test/main.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <QtGui/QApplication>
|
||||
#include "test.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
test w;
|
||||
w.show();
|
||||
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
|
||||
return a.exec();
|
||||
}
|
||||
91
src/Gui/iisTaskPanel/tests/test/test.cpp
Normal file
@@ -0,0 +1,91 @@
|
||||
#include "test.h"
|
||||
|
||||
#include <iisTaskPanel>
|
||||
|
||||
test::test(QWidget *parent, Qt::WFlags flags)
|
||||
: QMainWindow(parent, flags)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
iisTaskBox *tb1 = new iisTaskBox(QPixmap(":/images/win/filenew.png"), "Group of Tasks", true, this);
|
||||
ui.panel->addWidget(tb1);
|
||||
|
||||
iisIconLabel *i1 = new iisIconLabel(QPixmap(":/images/win/zoomin.png"), "Do Task 1", tb1);
|
||||
tb1->addIconLabel(i1);
|
||||
connect(i1, SIGNAL(activated()), this, SLOT(task1()));
|
||||
//tb1->groupLayout()->addWidget(i1);
|
||||
iisIconLabel *i2 = new iisIconLabel(QPixmap(":/images/win/zoomout.png"), "Do Task 2", tb1);
|
||||
tb1->addIconLabel(i2);
|
||||
//tb1->groupLayout()->addWidget(i2);
|
||||
|
||||
QHBoxLayout *hbl = new QHBoxLayout();
|
||||
tb1->groupLayout()->addLayout(hbl);
|
||||
|
||||
iisIconLabel *i3 = new iisIconLabel(QPixmap(":/images/win/editcopy.png"), "Do Task 3", tb1);
|
||||
tb1->addIconLabel(i3, false);
|
||||
hbl->addWidget(i3);
|
||||
//tb1->groupLayout()->addWidget(i3);
|
||||
iisIconLabel *i4 = new iisIconLabel(QPixmap(":/images/win/editcut.png"), "Do Task 4", tb1);
|
||||
tb1->addIconLabel(i4, false);
|
||||
hbl->addWidget(i4);
|
||||
i4->setColors(Qt::red, Qt::green, Qt::gray);
|
||||
i4->setFocusPen(QPen());
|
||||
//tb1->groupLayout()->addWidget(i4);
|
||||
iisIconLabel *i5 = new iisIconLabel(QPixmap(":/images/win/editpaste.png"), "Do Task 5", tb1);
|
||||
tb1->addIconLabel(i5);
|
||||
//tb1->groupLayout()->addWidget(i5);
|
||||
|
||||
iisTaskBox *tb2 = new iisTaskBox(QPixmap(":/images/win/fileprint.png"), "Another Group of Tasks", true, this);
|
||||
ui.panel->addWidget(tb2);
|
||||
|
||||
iisIconLabel *i21 = new iisIconLabel(QPixmap(":/images/win/filenew.png"), "Do Task 2.1", tb2);
|
||||
tb2->addIconLabel(i21);
|
||||
//tb2->groupLayout()->addWidget(i21);
|
||||
iisIconLabel *i22 = new iisIconLabel(QPixmap(":/images/win/fileopen.png"), "Do Task 2.2", tb2);
|
||||
tb2->addIconLabel(i22);
|
||||
i22->setEnabled(false);
|
||||
//tb2->groupLayout()->addWidget(i22);
|
||||
iisIconLabel *i23 = new iisIconLabel(QPixmap(":/images/win/filesave.png"), "Do Task 2.3", tb2);
|
||||
tb2->addIconLabel(i23);
|
||||
//tb2->groupLayout()->addWidget(i23);
|
||||
|
||||
iisTaskBox *tb3 = new iisTaskBox(QPixmap(), "Group without Icons", true, this);
|
||||
ui.panel->addWidget(tb3);
|
||||
|
||||
iisIconLabel *i31 = new iisIconLabel(QPixmap(), "Do Task 3.1", tb3);
|
||||
tb3->addIconLabel(i31);
|
||||
|
||||
iisIconLabel *i32 = new iisIconLabel(QPixmap(), "Do Task 3.2", tb3);
|
||||
tb3->addIconLabel(i32);
|
||||
|
||||
tb3->groupLayout()->addWidget(new QLabel("Widgets also allowed:", this));
|
||||
tb3->groupLayout()->addWidget(new QPushButton("A Button", this));
|
||||
|
||||
|
||||
// Other widgets can be also added to the panel
|
||||
QLabel *l1 = new QLabel("A group without header", this);
|
||||
ui.panel->addWidget(l1);
|
||||
|
||||
|
||||
iisTaskGroup *tb4 = new iisTaskGroup(this);
|
||||
ui.panel->addWidget(tb4);
|
||||
|
||||
iisIconLabel *i41 = new iisIconLabel(QPixmap(":/images/win/textbold.png"), "Do Task 4.1", tb4);
|
||||
tb4->addIconLabel(i41);
|
||||
|
||||
iisIconLabel *i42 = new iisIconLabel(QPixmap(), "Do Task 4.2", tb4);
|
||||
tb4->addIconLabel(i42);
|
||||
|
||||
ui.panel->addStretch();
|
||||
}
|
||||
|
||||
test::~test()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void test::task1()
|
||||
{
|
||||
QMessageBox::aboutQt(0);
|
||||
}
|
||||
|
||||
22
src/Gui/iisTaskPanel/tests/test/test.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef TEST_H
|
||||
#define TEST_H
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
#include "ui_test.h"
|
||||
|
||||
class test : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
test(QWidget *parent = 0, Qt::WFlags flags = 0);
|
||||
~test();
|
||||
|
||||
private slots:
|
||||
void task1();
|
||||
|
||||
private:
|
||||
Ui::testClass ui;
|
||||
};
|
||||
|
||||
#endif // TEST_H
|
||||
14
src/Gui/iisTaskPanel/tests/test/test.pro
Normal file
@@ -0,0 +1,14 @@
|
||||
TEMPLATE = app
|
||||
TARGET = test
|
||||
|
||||
include(../tests.pri)
|
||||
|
||||
HEADERS += test.h
|
||||
SOURCES += test.cpp main.cpp
|
||||
|
||||
FORMS += test.ui
|
||||
|
||||
RESOURCES += test.qrc
|
||||
|
||||
QMAKE_CLEAN += ""core.* $(TARGET)""
|
||||
|
||||
23
src/Gui/iisTaskPanel/tests/test/test.qrc
Normal file
@@ -0,0 +1,23 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>images/win/editcopy.png</file>
|
||||
<file>images/win/editcut.png</file>
|
||||
<file>images/win/editpaste.png</file>
|
||||
<file>images/win/editredo.png</file>
|
||||
<file>images/win/editundo.png</file>
|
||||
<file>images/win/exportpdf.png</file>
|
||||
<file>images/win/filenew.png</file>
|
||||
<file>images/win/fileopen.png</file>
|
||||
<file>images/win/fileprint.png</file>
|
||||
<file>images/win/filesave.png</file>
|
||||
<file>images/win/textbold.png</file>
|
||||
<file>images/win/textcenter.png</file>
|
||||
<file>images/win/textitalic.png</file>
|
||||
<file>images/win/textjustify.png</file>
|
||||
<file>images/win/textleft.png</file>
|
||||
<file>images/win/textright.png</file>
|
||||
<file>images/win/textunder.png</file>
|
||||
<file>images/win/zoomin.png</file>
|
||||
<file>images/win/zoomout.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
66
src/Gui/iisTaskPanel/tests/test/test.ui
Normal file
@@ -0,0 +1,66 @@
|
||||
<ui version="4.0" >
|
||||
<class>testClass</class>
|
||||
<widget class="QMainWindow" name="testClass" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>449</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>test</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget" >
|
||||
<layout class="QGridLayout" >
|
||||
<item row="0" column="0" >
|
||||
<widget class="iisTaskPanel" native="1" name="panel" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QTextBrowser" name="textBrowser" >
|
||||
<property name="html" >
|
||||
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-size:20pt; font-weight:600;">iisTaskPanel</span></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:20pt; font-weight:600;"></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:20pt; font-weight:600;"><span style=" font-size:12pt;">Created for Qt 4.3.x</span></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt; font-weight:600;"></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt; font-weight:600;">www.ii-system.com</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>iisTaskPanel</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global" >iisTaskPanel</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
6
src/Gui/iisTaskPanel/tests/tests.pri
Normal file
@@ -0,0 +1,6 @@
|
||||
include(../../config.pri)
|
||||
|
||||
INCLUDEPATH += ../../include
|
||||
|
||||
LIBS += -L../../lib -l$$QIISTASKPANELLIB
|
||||
|
||||
2
src/Gui/iisTaskPanel/tests/tests.pro
Normal file
@@ -0,0 +1,2 @@
|
||||
TEMPLATE=subdirs
|
||||
SUBDIRS+=test styles
|
||||