Skip to content

Commit

Permalink
UI 设计
Browse files Browse the repository at this point in the history
  • Loading branch information
pprp committed Jul 11, 2018
1 parent 5bc4e3d commit 00b437f
Show file tree
Hide file tree
Showing 61 changed files with 44,714 additions and 43,466 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.0.0, 2018-07-11T16:39:23. -->
<!-- Written by QtCreator 3.0.0, 2018-07-11T20:18:23. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
Expand Down

This file was deleted.

411 changes: 327 additions & 84 deletions FourthOne/vector-editor_changed/vector-editor_changed/src/Makefile.Debug

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[35];
char stringdata[586];
QByteArrayData data[36];
char stringdata[622];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
Expand All @@ -39,39 +39,39 @@ QT_MOC_LITERAL(6, 83, 10),
QT_MOC_LITERAL(7, 94, 14),
QT_MOC_LITERAL(8, 109, 4),
QT_MOC_LITERAL(9, 114, 13),
QT_MOC_LITERAL(10, 128, 8),
QT_MOC_LITERAL(11, 137, 3),
QT_MOC_LITERAL(12, 141, 4),
QT_MOC_LITERAL(13, 146, 5),
QT_MOC_LITERAL(14, 152, 4),
QT_MOC_LITERAL(15, 157, 6),
QT_MOC_LITERAL(16, 164, 7),
QT_MOC_LITERAL(17, 172, 4),
QT_MOC_LITERAL(18, 177, 5),
QT_MOC_LITERAL(19, 183, 9),
QT_MOC_LITERAL(20, 193, 23),
QT_MOC_LITERAL(21, 217, 28),
QT_MOC_LITERAL(22, 246, 28),
QT_MOC_LITERAL(23, 275, 29),
QT_MOC_LITERAL(24, 305, 26),
QT_MOC_LITERAL(25, 332, 22),
QT_MOC_LITERAL(26, 355, 27),
QT_MOC_LITERAL(27, 383, 23),
QT_MOC_LITERAL(28, 407, 23),
QT_MOC_LITERAL(29, 431, 25),
QT_MOC_LITERAL(30, 457, 10),
QT_MOC_LITERAL(31, 468, 31),
QT_MOC_LITERAL(32, 500, 26),
QT_MOC_LITERAL(33, 527, 28),
QT_MOC_LITERAL(34, 556, 28)
QT_MOC_LITERAL(10, 128, 3),
QT_MOC_LITERAL(11, 132, 4),
QT_MOC_LITERAL(12, 137, 5),
QT_MOC_LITERAL(13, 143, 4),
QT_MOC_LITERAL(14, 148, 6),
QT_MOC_LITERAL(15, 155, 7),
QT_MOC_LITERAL(16, 163, 4),
QT_MOC_LITERAL(17, 168, 5),
QT_MOC_LITERAL(18, 174, 9),
QT_MOC_LITERAL(19, 184, 23),
QT_MOC_LITERAL(20, 208, 28),
QT_MOC_LITERAL(21, 237, 28),
QT_MOC_LITERAL(22, 266, 29),
QT_MOC_LITERAL(23, 296, 26),
QT_MOC_LITERAL(24, 323, 22),
QT_MOC_LITERAL(25, 346, 27),
QT_MOC_LITERAL(26, 374, 23),
QT_MOC_LITERAL(27, 398, 23),
QT_MOC_LITERAL(28, 422, 25),
QT_MOC_LITERAL(29, 448, 10),
QT_MOC_LITERAL(30, 459, 26),
QT_MOC_LITERAL(31, 486, 28),
QT_MOC_LITERAL(32, 515, 28),
QT_MOC_LITERAL(33, 544, 25),
QT_MOC_LITERAL(34, 570, 26),
QT_MOC_LITERAL(35, 597, 23)
},
"MainWindow\0on_butSave_clicked\0\0"
"on_butOpen_clicked\0checkSelection\0"
"checkActionStates\0selectItem\0"
"QGraphicsItem*\0item\0selectNewItem\0"
"slotHelp\0cut\0copy\0paste\0save\0saveAs\0"
"newFile\0open\0clear\0selectAll\0"
"on_actionExit_triggered\0"
"QGraphicsItem*\0item\0selectNewItem\0cut\0"
"copy\0paste\0save\0saveAs\0newFile\0open\0"
"clear\0selectAll\0on_actionExit_triggered\0"
"on_toolButton_SaveAs_clicked\0"
"on_toolButton_ZoomIn_clicked\0"
"on_toolButton_ZoomOut_clicked\0"
Expand All @@ -80,10 +80,12 @@ QT_MOC_LITERAL(34, 556, 28)
"on_toolButton_clear_clicked\0"
"on_actionOpen_triggered\0on_actionSave_triggered\0"
"on_actionSaveAs_triggered\0timeUpdate\0"
"on_toolButton_curveLine_clicked\0"
"on_toolButton_Home_clicked\0"
"on_toolButton_pixmap_clicked\0"
"on_toolButton_bezier_clicked\0"
"on_actionZoomIn_triggered\0"
"on_actionZoomOut_triggered\0"
"on_actionHelp_triggered\0"
};
#undef QT_MOC_LITERAL

Expand All @@ -93,45 +95,46 @@ static const uint qt_meta_data_MainWindow[] = {
7, // revision
0, // classname
0, 0, // classinfo
31, 14, // methods
32, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount

// slots: name, argc, parameters, tag, flags
1, 0, 169, 2, 0x08,
3, 0, 170, 2, 0x08,
4, 0, 171, 2, 0x08,
5, 0, 172, 2, 0x08,
6, 1, 173, 2, 0x08,
9, 1, 176, 2, 0x08,
10, 0, 179, 2, 0x08,
11, 0, 180, 2, 0x08,
12, 0, 181, 2, 0x08,
13, 0, 182, 2, 0x08,
14, 0, 183, 2, 0x08,
15, 0, 184, 2, 0x08,
16, 0, 185, 2, 0x08,
17, 0, 186, 2, 0x08,
18, 0, 187, 2, 0x08,
19, 0, 188, 2, 0x08,
20, 0, 189, 2, 0x08,
21, 0, 190, 2, 0x08,
22, 0, 191, 2, 0x08,
23, 0, 192, 2, 0x08,
24, 0, 193, 2, 0x08,
25, 0, 194, 2, 0x08,
26, 0, 195, 2, 0x08,
27, 0, 196, 2, 0x08,
28, 0, 197, 2, 0x08,
29, 0, 198, 2, 0x08,
30, 0, 199, 2, 0x08,
31, 0, 200, 2, 0x08,
32, 0, 201, 2, 0x08,
33, 0, 202, 2, 0x08,
34, 0, 203, 2, 0x08,
1, 0, 174, 2, 0x08,
3, 0, 175, 2, 0x08,
4, 0, 176, 2, 0x08,
5, 0, 177, 2, 0x08,
6, 1, 178, 2, 0x08,
9, 1, 181, 2, 0x08,
10, 0, 184, 2, 0x08,
11, 0, 185, 2, 0x08,
12, 0, 186, 2, 0x08,
13, 0, 187, 2, 0x08,
14, 0, 188, 2, 0x08,
15, 0, 189, 2, 0x08,
16, 0, 190, 2, 0x08,
17, 0, 191, 2, 0x08,
18, 0, 192, 2, 0x08,
19, 0, 193, 2, 0x08,
20, 0, 194, 2, 0x08,
21, 0, 195, 2, 0x08,
22, 0, 196, 2, 0x08,
23, 0, 197, 2, 0x08,
24, 0, 198, 2, 0x08,
25, 0, 199, 2, 0x08,
26, 0, 200, 2, 0x08,
27, 0, 201, 2, 0x08,
28, 0, 202, 2, 0x08,
29, 0, 203, 2, 0x08,
30, 0, 204, 2, 0x08,
31, 0, 205, 2, 0x08,
32, 0, 206, 2, 0x08,
33, 0, 207, 2, 0x08,
34, 0, 208, 2, 0x08,
35, 0, 209, 2, 0x08,

// slots: parameters
QMetaType::Void,
Expand Down Expand Up @@ -164,6 +167,7 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,

0 // eod
Expand All @@ -180,31 +184,32 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 3: _t->checkActionStates(); break;
case 4: _t->selectItem((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
case 5: _t->selectNewItem((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
case 6: _t->slotHelp(); break;
case 7: _t->cut(); break;
case 8: _t->copy(); break;
case 9: _t->paste(); break;
case 10: _t->save(); break;
case 11: _t->saveAs(); break;
case 12: _t->newFile(); break;
case 13: _t->open(); break;
case 14: _t->clear(); break;
case 15: _t->selectAll(); break;
case 16: _t->on_actionExit_triggered(); break;
case 17: _t->on_toolButton_SaveAs_clicked(); break;
case 18: _t->on_toolButton_ZoomIn_clicked(); break;
case 19: _t->on_toolButton_ZoomOut_clicked(); break;
case 20: _t->on_toolButton_text_clicked(); break;
case 21: _t->on_actionNew_triggered(); break;
case 22: _t->on_toolButton_clear_clicked(); break;
case 23: _t->on_actionOpen_triggered(); break;
case 24: _t->on_actionSave_triggered(); break;
case 25: _t->on_actionSaveAs_triggered(); break;
case 26: _t->timeUpdate(); break;
case 27: _t->on_toolButton_curveLine_clicked(); break;
case 28: _t->on_toolButton_Home_clicked(); break;
case 29: _t->on_toolButton_pixmap_clicked(); break;
case 30: _t->on_toolButton_bezier_clicked(); break;
case 6: _t->cut(); break;
case 7: _t->copy(); break;
case 8: _t->paste(); break;
case 9: _t->save(); break;
case 10: _t->saveAs(); break;
case 11: _t->newFile(); break;
case 12: _t->open(); break;
case 13: _t->clear(); break;
case 14: _t->selectAll(); break;
case 15: _t->on_actionExit_triggered(); break;
case 16: _t->on_toolButton_SaveAs_clicked(); break;
case 17: _t->on_toolButton_ZoomIn_clicked(); break;
case 18: _t->on_toolButton_ZoomOut_clicked(); break;
case 19: _t->on_toolButton_text_clicked(); break;
case 20: _t->on_actionNew_triggered(); break;
case 21: _t->on_toolButton_clear_clicked(); break;
case 22: _t->on_actionOpen_triggered(); break;
case 23: _t->on_actionSave_triggered(); break;
case 24: _t->on_actionSaveAs_triggered(); break;
case 25: _t->timeUpdate(); break;
case 26: _t->on_toolButton_Home_clicked(); break;
case 27: _t->on_toolButton_pixmap_clicked(); break;
case 28: _t->on_toolButton_bezier_clicked(); break;
case 29: _t->on_actionZoomIn_triggered(); break;
case 30: _t->on_actionZoomOut_triggered(); break;
case 31: _t->on_actionHelp_triggered(); break;
default: ;
}
}
Expand Down Expand Up @@ -235,13 +240,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 31)
if (_id < 32)
qt_static_metacall(this, _c, _id, _a);
_id -= 31;
_id -= 32;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 31)
if (_id < 32)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 31;
_id -= 32;
}
return _id;
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/****************************************************************************
** Meta object code from reading C++ file 'showhelpdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../showhelpdialog.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'showhelpdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.2.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_ShowHelpDialog_t {
QByteArrayData data[3];
char stringdata[41];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
offsetof(qt_meta_stringdata_ShowHelpDialog_t, stringdata) + ofs \
- idx * sizeof(QByteArrayData) \
)
static const qt_meta_stringdata_ShowHelpDialog_t qt_meta_stringdata_ShowHelpDialog = {
{
QT_MOC_LITERAL(0, 0, 14),
QT_MOC_LITERAL(1, 15, 23),
QT_MOC_LITERAL(2, 39, 0)
},
"ShowHelpDialog\0on_pushButton_2_clicked\0"
"\0"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ShowHelpDialog[] = {

// content:
7, // revision
0, // classname
0, 0, // classinfo
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount

// slots: name, argc, parameters, tag, flags
1, 0, 19, 2, 0x08,

// slots: parameters
QMetaType::Void,

0 // eod
};

void ShowHelpDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
ShowHelpDialog *_t = static_cast<ShowHelpDialog *>(_o);
switch (_id) {
case 0: _t->on_pushButton_2_clicked(); break;
default: ;
}
}
Q_UNUSED(_a);
}

const QMetaObject ShowHelpDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_ShowHelpDialog.data,
qt_meta_data_ShowHelpDialog, qt_static_metacall, 0, 0}
};


const QMetaObject *ShowHelpDialog::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *ShowHelpDialog::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_ShowHelpDialog.stringdata))
return static_cast<void*>(const_cast< ShowHelpDialog*>(this));
return QDialog::qt_metacast(_clname);
}

int ShowHelpDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 1)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 1;
}
return _id;
}
QT_END_MOC_NAMESPACE
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 00b437f

Please sign in to comment.