├── Graph.cpp
├── GuideWindow.cpp
├── GuideWindow.ui
├── Headers
├── Graph.h
├── GuideWindow.h
└── Paint.h
├── LICENSE
├── README.md
├── Resources
├── about.png
├── allroad.png
├── auth.jpg
├── findroad.png
├── img
│ ├── Dijkstra.png
│ ├── Floyd.png
│ ├── Progress.png
│ ├── Qt.png
│ ├── build1.png
│ ├── build2.png
│ ├── build3.png
│ ├── console.png
│ ├── demo1.png
│ ├── demo2.png
│ ├── demo3.png
│ ├── demo4.png
│ ├── demo5.png
│ ├── gui.png
│ ├── main.png
│ └── map.png
├── main.png
├── map.png
├── map2.png
├── multiplaces.png
├── sdu.png
├── searchinfo.png
└── writeinfo.png
├── main.cpp
├── main_console.cpp
└── 数据结构课程设计题目.doc
/Graph.cpp:
--------------------------------------------------------------------------------
1 | #include "Headers/Graph.h"
2 |
3 | // 初始化地图
4 | Graph::Graph()
5 | {
6 | // 初始化邻接矩阵为∞
7 | for (int i = 0; i < PLACES; i++)
8 | for (int j = 0; j < PLACES; j++)
9 | AdjacencyMatrix[i][j] = INT_MAX;
10 | // 对角线初始化为0
11 | for (int i = 0; i < PLACES; i++)
12 | {
13 | AdjacencyMatrix[i][i] = 0;
14 | vertex[i].place = "";
15 | vertex[i].info = "";
16 | }
17 | }
18 |
19 | // 输入地点信息
20 | void Graph::setInfo(int num, string name, string info)
21 | {
22 | vertex[num].place = name;
23 | vertex[num].info = info;
24 | }
25 |
26 | // 查询地点信息
27 | string Graph::getInfo(int num)
28 | {
29 | string result = "";
30 | result = result + "景点编号:" + to_string(num) + "\n";
31 | result = result + "景点名称:" + vertex[num].place + "\n";
32 | result = result + "景点介绍:" + vertex[num].info + "\n";
33 | return result;
34 | }
35 |
36 | // 查询道路信息
37 | string Graph::getPathInfo(int x, int y)
38 | {
39 | string result = "";
40 | result = result + "道路起点:" + to_string(x) + " " + vertex[x].place + "\n";
41 | result = result + "道路终点:" + to_string(y) + " " + vertex[y].place + "\n";
42 | result = result + "道路长度:" + to_string(AdjacencyMatrix[x][y]) + "\n";
43 | return result;
44 | }
45 |
46 | // 删除景点及其道路
47 | void Graph::delInfo(int num)
48 | {
49 | for (int i = 0; i < PLACES; i++)
50 | AdjacencyMatrix[i][num] = INT_MAX;
51 | for (int j = 0; j < PLACES; j++)
52 | AdjacencyMatrix[num][j] = INT_MAX;
53 | AdjacencyMatrix[num][num] = 0;
54 | vertex[num].place = "";
55 | vertex[num].info = "";
56 | }
57 |
58 | // 输入新的路径
59 | void Graph::setPath(int x, int y, int dis)
60 | {
61 | AdjacencyMatrix[x][y] = dis;
62 | AdjacencyMatrix[y][x] = dis;
63 | }
64 |
65 | // 删除路径
66 | void Graph::delPath(int x, int y)
67 | {
68 | AdjacencyMatrix[x][y] = INT_MAX;
69 | AdjacencyMatrix[y][x] = INT_MAX;
70 | }
71 |
72 | // 寻找路径
73 | void Graph::getPath(int x, int y, string &result, int &sum, int (&v)[PLACES])
74 | {
75 | int rest[PLACES] = {0};
76 | rest[x] = 1;
77 | // 初始化路径权值
78 | for (int i = 0; i < PLACES; i++)
79 | {
80 | dis[i].weight = AdjacencyMatrix[x][i];
81 | cleanStack(dis[i].previous);
82 | cleanStack(dis[i].backup);
83 | }
84 |
85 | for (int count = 1; count != PLACES; count++)
86 | {
87 | // 寻找权值最小顶点
88 | int min = INT_MAX;
89 | for (int i = 0; i < PLACES; i++)
90 | if (rest[i] == 0)
91 | {
92 | min = i;
93 | for (i += 1; i < PLACES; i++)
94 | if (rest[i] == 0 and dis[min].weight > dis[i].weight)
95 | min = i;
96 | }
97 | if (min == INT_MAX)
98 | return;
99 | else
100 | rest[min] = 1;
101 |
102 | // 更新路径权值
103 | for (int i = 0; i < PLACES; i++)
104 | {
105 | if (rest[i] == 1)
106 | continue;
107 | if (AdjacencyMatrix[min][i] <= dis[i].weight - dis[min].weight)
108 | {
109 | if (AdjacencyMatrix[min][i] != dis[i].weight - dis[min].weight)
110 | cleanStack(dis[i].previous);
111 | dis[i].weight = dis[min].weight + AdjacencyMatrix[min][i];
112 | dis[i].previous.push(min);
113 | }
114 | }
115 | rest[min] = 1;
116 | }
117 |
118 | // 递归输出最短路径
119 | int c = 0;
120 | DFS(x, y, result, sum, v, c);
121 | }
122 |
123 | // 深度优先搜索输出路径
124 | void Graph::DFS(int x, int y, string &result, int &sum, int (&v)[PLACES], int &c)
125 | {
126 | if (dis[y].previous.empty())
127 | {
128 | result = result + "\n" + to_string(x) + " " + vertex[x].place + " -> " + to_string(y) + " " + vertex[y].place;
129 | sum += AdjacencyMatrix[x][y];
130 | v[c++] = x;
131 | v[c++] = y;
132 | }
133 | // 将节点所有分支搜索完
134 | while (!dis[y].previous.empty())
135 | {
136 | DFS(x, dis[y].previous.top(), result, sum, v, c);
137 | result = result + " -> " + to_string(y) + " " + vertex[y].place;
138 | sum += AdjacencyMatrix[dis[y].previous.top()][y];
139 | v[c++] = y;
140 | dis[y].backup.push(dis[y].previous.top());
141 | dis[y].previous.pop();
142 | }
143 | // 将前驱信息还原
144 | while (!dis[y].backup.empty())
145 | {
146 | dis[y].previous.push(dis[y].backup.top());
147 | dis[y].backup.pop();
148 | }
149 | }
150 |
151 | // 输出所有简单路径
152 | void Graph::getAllPath(int x, int y, bool refresh, string &result)
153 | {
154 | // 用数组保存简单路径
155 | static int path[PLACES], count = 0, mark[PLACES] = {0}, start = x;
156 | // 在反复调用递归函数时刷新静态变量
157 | if (refresh)
158 | {
159 | for (int i = 0; i < PLACES; i++)
160 | {
161 | path[i] = INT_MAX;
162 | mark[i] = 0;
163 | }
164 | count = 0;
165 | start = x;
166 | }
167 | for (int i = 0; i < PLACES; i++)
168 | {
169 | if (AdjacencyMatrix[x][i] != INT_MAX and mark[i] == 0)
170 | {
171 | // 标记该节点以搜索过
172 | mark[i] = 1;
173 | if (x == i)
174 | continue;
175 | path[count++] = i;
176 | // 输出路径
177 | if (i == y)
178 | {
179 | // start 静态变量保存路径起始点
180 | result = result + to_string(start) + " " + vertex[start].place;
181 | int sum = 0;
182 | int pos = start;
183 | for (int p = 0; path[p] != INT_MAX; p++)
184 | {
185 | result = result + " -> " + to_string(path[p]) + " " + vertex[path[p]].place;
186 | sum += AdjacencyMatrix[pos][path[p]];
187 | pos = path[p];
188 | }
189 | result = result + "\n路径长度:" + to_string(sum) + "\n";
190 | mark[i] = 0;
191 | path[--count] = INT_MAX;
192 | return;
193 | }
194 | getAllPath(i, y, false, result);
195 | // 删除标记
196 | mark[i] = 0;
197 | path[--count] = INT_MAX;
198 | }
199 | }
200 | }
201 |
202 | //多景点查询
203 | void Graph::multiPath(int x, int y, int z, string &result)
204 | {
205 | // 保存每条路径
206 | MultiRoad mr[ROADS];
207 | for (int i = 0; i < ROADS; i++)
208 | {
209 | mr[i].flag = false;
210 | mr[i].sum = 0;
211 | mr[i].result = "";
212 | }
213 | int c1 = 0;
214 | MultiRoad min;
215 | min.flag = true;
216 | min.sum = INT_MAX;
217 | min.result = "";
218 | multiGetAllPath(x, y, z, true, c1, mr);
219 | for (int i = 0; i < c1; i++)
220 | {
221 | if (mr[i].flag == true && mr[i].sum < min.sum)
222 | min = mr[i];
223 | }
224 | int c2 = c1;
225 | multiGetAllPath(x, y, z, true, c2, mr);
226 | for (int i = c1; i < c2; i++)
227 | {
228 | if (mr[i].flag == true && mr[i].sum < min.sum)
229 | min = mr[i];
230 | }
231 | if (min.result == "")
232 | {
233 | string r1 = "";
234 | string r2 = "";
235 | int s1 = 0;
236 | int s2 = 0;
237 | int tmp[PLACES];
238 | getPath(x, y, r1, s1, tmp);
239 | getPath(y, z, r2, s2, tmp);
240 | min.sum = s1 + s2;
241 | min.result = r1 + r2;
242 | getPath(x, z, r1, s1, tmp);
243 | getPath(z, y, r2, s2, tmp);
244 | if ((s1 + s2) < min.sum)
245 | {
246 | min.sum = s1 + s2;
247 | min.result = r1 + r2;
248 | }
249 | else if ((s1 + s2) == min.sum)
250 | {
251 | min.result = min.result + "\n" + r1 + r2;
252 | }
253 | result = min.result + "\n路径长度:" + to_string(min.sum);
254 | }
255 | else
256 | result = "\n" + min.result + "\n路径长度:" + to_string(min.sum);
257 | }
258 |
259 | // 多景点遍历路径
260 | void Graph::multiGetAllPath(int x, int y, int z, bool refresh, int &c, MultiRoad (&mr)[ROADS])
261 | {
262 | // 用数组保存简单路径
263 | static int path[PLACES], count = 0, mark[PLACES] = {0}, start = x;
264 | // 在反复调用递归函数时刷新静态变量
265 | if (refresh)
266 | {
267 | for (int i = 0; i < PLACES; i++)
268 | {
269 | path[i] = INT_MAX;
270 | mark[i] = 0;
271 | }
272 | count = 0;
273 | start = x;
274 | }
275 | for (int i = 0; i < PLACES; i++)
276 | {
277 | if (AdjacencyMatrix[x][i] != INT_MAX and mark[i] == 0)
278 | {
279 | // 标记该节点以搜索过
280 | mark[i] = 1;
281 | if (x == i)
282 | continue;
283 | path[count++] = i;
284 | // 输出路径
285 | if (i == y)
286 | {
287 | // start 静态变量保存路径起始点
288 | mr[c].result = mr[c].result + to_string(start) + " " + vertex[start].place;
289 | int pos = start;
290 | for (int p = 0; path[p] != INT_MAX; p++)
291 | {
292 | if (path[p] == z)
293 | mr[c].flag = true;
294 | mr[c].result = mr[c].result + " -> " + to_string(path[p]) + " " + vertex[path[p]].place;
295 | mr[c].sum += AdjacencyMatrix[pos][path[p]];
296 | pos = path[p];
297 | }
298 | c++;
299 | mark[i] = 0;
300 | path[--count] = INT_MAX;
301 | return;
302 | }
303 | multiGetAllPath(i, y, z, false, c, mr);
304 | // 删除标记
305 | mark[i] = 0;
306 | path[--count] = INT_MAX;
307 | }
308 | }
309 | }
--------------------------------------------------------------------------------
/GuideWindow.cpp:
--------------------------------------------------------------------------------
1 | #include "Headers/GuideWindow.h"
2 |
3 | int v[PLACES];
4 | // 设定最短路径动态演示
5 | void Ui_GuideWindow::setPaint()
6 | {
7 | w = new Widget();
8 | w->setParent(page_3);
9 | w->setGeometry(QRect(20, 400, 760, 260));
10 | for (int i = 0; i < 12; i++)
11 | {
12 | w->addVertex(i + 1);
13 | }
14 | }
15 |
16 | // 设定左侧切换事件
17 | void Ui_GuideWindow::setLeftEvents()
18 | {
19 | QObject::connect(button_left_1, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(0); });
20 | QObject::connect(button_left_2, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(1); });
21 | QObject::connect(button_left_3, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(2); });
22 | QObject::connect(button_left_4, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(3); });
23 | QObject::connect(button_left_5, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(4); });
24 | QObject::connect(button_left_6, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(5); });
25 | QObject::connect(button_left_7, &QAbstractButton::clicked, [=]() mutable { stackedWidget->setCurrentIndex(6); });
26 | }
27 |
28 | // 设定导游系统事件
29 | void Ui_GuideWindow::setMainEvents()
30 | {
31 | // 信息录入
32 | QObject::connect(info_button_1, &QAbstractButton::clicked, [=]() mutable {
33 | int num = info_text_1->toPlainText().toInt();
34 | string name = info_text_2->toPlainText().toStdString();
35 | string info = info_text_3->toPlainText().toStdString();
36 | g.setInfo(num, name, info);
37 | });
38 | // 道路录入
39 | QObject::connect(info_button_2, &QAbstractButton::clicked, [=]() mutable {
40 | int num1 = info_text_4->toPlainText().toInt();
41 | int num2 = info_text_5->toPlainText().toInt();
42 | int dis = info_text_6->toPlainText().toInt();
43 | g.setPath(num1, num2, dis);
44 | w->addEdge(num1, num2);
45 | });
46 | // 删除景点
47 | QObject::connect(info_button_3, &QAbstractButton::clicked, [=]() mutable {
48 | int num = info_text_1->toPlainText().toInt();
49 | g.delInfo(num);
50 | for (int i = 0; i < PLACES; i++)
51 | w->delEdge(i + 1, num);
52 | for (int j = 0; j < PLACES; j++)
53 | w->delEdge(num, j + 1);
54 | });
55 | // 删除道路
56 | QObject::connect(info_button_4, &QAbstractButton::clicked, [=]() mutable {
57 | int num1 = info_text_4->toPlainText().toInt();
58 | int num2 = info_text_5->toPlainText().toInt();
59 | g.delPath(num1, num2);
60 | w->delEdge(num1, num2);
61 | });
62 | // 查询景点信息
63 | QObject::connect(search_button_1, &QAbstractButton::clicked, [=]() mutable {
64 | int num = search_text_1->toPlainText().toInt();
65 | string result = g.getInfo(num);
66 | search_text_2->setPlainText(QString::fromStdString(result));
67 | });
68 | // 查询道路信息
69 | QObject::connect(search_button_2, &QAbstractButton::clicked, [=]() mutable {
70 | int num1 = search_text_3->toPlainText().toInt();
71 | int num2 = search_text_4->toPlainText().toInt();
72 | string result = g.getPathInfo(num1, num2);
73 | search_text_5->setPlainText(QString::fromStdString(result));
74 | });
75 | // 查询最短路径
76 | QObject::connect(road_button_1, &QAbstractButton::clicked, [=]() mutable {
77 | int x = road_text_1->toPlainText().toInt();
78 | int y = road_text_2->toPlainText().toInt();
79 | string result = "";
80 | int sum = 0;
81 | for (int i = 0; i < PLACES; i++)
82 | {
83 | if (v[i] != 0 && v[i + 1] != 0)
84 | w->addEdge(v[i], v[i + 1]);
85 | }
86 | for (int i = 0; i < PLACES; i++)
87 | v[i] = 0;
88 | g.getPath(x, y, result, sum, v);
89 | result = "从 " + g.vertex[x].place + " 到 " + g.vertex[y].place + " 的最短路径为:" + result + "\n路径长度:" + to_string(sum);
90 | road_text_3->setPlainText(QString::fromStdString(result));
91 | for (int i = 0; i < PLACES; i++)
92 | {
93 | if (v[i] != 0 && v[i + 1] != 0)
94 | w->addActiveEdge(v[i], v[i + 1]);
95 | }
96 | });
97 | // 查询所有路径
98 | QObject::connect(multi_button_1, &QAbstractButton::clicked, [=]() mutable {
99 | int x = multi_text_1->toPlainText().toInt();
100 | int y = multi_text_2->toPlainText().toInt();
101 | string result = "";
102 | g.getAllPath(x, y, true, result);
103 | result = "从 " + g.vertex[x].place + " 到 " + g.vertex[y].place + " 的所有路径为:\n" + result;
104 | multi_text_3->setPlainText(QString::fromStdString(result));
105 | });
106 | // 多景点
107 | QObject::connect(plenty_button_1, &QAbstractButton::clicked, [=]() mutable {
108 | int x = plenty_text_1->toPlainText().toInt();
109 | int y = plenty_text_2->toPlainText().toInt();
110 | int z = plenty_text_3->toPlainText().toInt();
111 | string result = "";
112 | g.multiPath(x, y, z, result);
113 | result = "从 " + g.vertex[x].place + " 经过 " + g.vertex[y].place + " 到 " + g.vertex[z].place + " 的最短路径为:" + result;
114 | plenty_text_4->setPlainText(QString::fromStdString(result));
115 | });
116 | // 范例
117 | QObject::connect(demo_button_1, &QAbstractButton::clicked, [=]() mutable {
118 | setupDemo();
119 | });
120 | }
121 |
122 | // 设定范例地图
123 | void Ui_GuideWindow::setupDemo()
124 | {
125 | g.setInfo(1, "正门", "山东大学齐鲁软件学院正门");
126 | g.setInfo(2, "教学楼", "上课上自习的地方");
127 | g.setInfo(3, "科研楼", "做科研的地方");
128 | g.setInfo(4, "实验楼", "上机实验以及社团实验室");
129 | g.setInfo(5, "教研楼", "教研楼");
130 | g.setInfo(6, "图书馆", "借书看书自习的地方");
131 | g.setInfo(7, "食堂", "吃饭的地方");
132 | g.setInfo(8, "篮球场", "打篮球打网球的地方");
133 | g.setInfo(9, "足球场", "踢足球的体育场,在校外");
134 | g.setInfo(10, "5号学生公寓", "学生公寓");
135 | g.setInfo(11, "1号学生公寓", "学生公寓");
136 | g.setInfo(12, "3号学生公寓", "学生公寓");
137 | g.setPath(1, 2, 9);
138 | w->addEdge(1, 2);
139 | g.setPath(1, 3, 11);
140 | w->addEdge(1, 3);
141 | g.setPath(1, 7, 13);
142 | w->addEdge(1, 7);
143 | g.setPath(2, 3, 6);
144 | w->addEdge(2, 3);
145 | g.setPath(2, 7, 9);
146 | w->addEdge(2, 7);
147 | g.setPath(2, 10, 12);
148 | w->addEdge(2, 10);
149 | g.setPath(3, 4, 3);
150 | w->addEdge(3, 4);
151 | g.setPath(3, 6, 8);
152 | w->addEdge(3, 6);
153 | g.setPath(5, 6, 2);
154 | w->addEdge(5, 6);
155 | g.setPath(7, 9, 30);
156 | w->addEdge(7, 9);
157 | g.setPath(7, 12, 10);
158 | w->addEdge(7, 12);
159 | g.setPath(8, 12, 6);
160 | w->addEdge(8, 12);
161 | g.setPath(10, 11, 7);
162 | w->addEdge(10, 11);
163 | g.setPath(11, 12, 7);
164 | w->addEdge(11, 12);
165 | }
166 |
167 | // setupUi
168 | void Ui_GuideWindow::setupUi(QMainWindow *GuideWindow)
169 | {
170 | if (GuideWindow->objectName().isEmpty())
171 | GuideWindow->setObjectName(QString::fromUtf8("GuideWindow"));
172 | GuideWindow->resize(1000, 750);
173 | GuideWindow->setMinimumSize(QSize(1000, 750));
174 | QFont font;
175 | font.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
176 | GuideWindow->setFont(font);
177 | QIcon icon;
178 | icon.addFile(QString::fromUtf8("Resources/main.png"), QSize(), QIcon::Normal, QIcon::Off);
179 | GuideWindow->setWindowIcon(icon);
180 | GuideWindow->setToolTipDuration(1);
181 | centralwidget = new QWidget(GuideWindow);
182 | centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
183 | centralwidget->setMinimumSize(QSize(1000, 750));
184 | TitleLabel = new QLabel(centralwidget);
185 | TitleLabel->setObjectName(QString::fromUtf8("TitleLabel"));
186 | TitleLabel->setGeometry(QRect(0, 0, 1000, 64));
187 | QFont font1;
188 | font1.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
189 | font1.setPointSize(16);
190 | font1.setBold(true);
191 | font1.setWeight(75);
192 | TitleLabel->setFont(font1);
193 | TitleLabel->setAlignment(Qt::AlignCenter);
194 | stackedWidget = new QStackedWidget(centralwidget);
195 | stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
196 | stackedWidget->setGeometry(QRect(200, 70, 800, 680));
197 | stackedWidget->setFont(font);
198 | page_1 = new QWidget();
199 | page_1->setObjectName(QString::fromUtf8("page_1"));
200 | info_title = new QLabel(page_1);
201 | info_title->setObjectName(QString::fromUtf8("info_title"));
202 | info_title->setGeometry(QRect(0, 0, 250, 40));
203 | QFont font2;
204 | font2.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
205 | font2.setPointSize(14);
206 | font2.setBold(true);
207 | font2.setWeight(75);
208 | info_title->setFont(font2);
209 | info_title->setAlignment(Qt::AlignCenter);
210 | info_label_1 = new QLabel(page_1);
211 | info_label_1->setObjectName(QString::fromUtf8("info_label_1"));
212 | info_label_1->setGeometry(QRect(0, 60, 150, 40));
213 | QFont font3;
214 | font3.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
215 | font3.setPointSize(11);
216 | info_label_1->setFont(font3);
217 | info_label_1->setAlignment(Qt::AlignCenter);
218 | info_label_2 = new QLabel(page_1);
219 | info_label_2->setObjectName(QString::fromUtf8("info_label_2"));
220 | info_label_2->setGeometry(QRect(0, 120, 150, 40));
221 | info_label_2->setFont(font3);
222 | info_label_2->setAlignment(Qt::AlignCenter);
223 | info_label_3 = new QLabel(page_1);
224 | info_label_3->setObjectName(QString::fromUtf8("info_label_3"));
225 | info_label_3->setGeometry(QRect(0, 180, 150, 40));
226 | info_label_3->setFont(font3);
227 | info_label_3->setAlignment(Qt::AlignCenter);
228 | info_text_1 = new QTextEdit(page_1);
229 | info_text_1->setObjectName(QString::fromUtf8("info_text_1"));
230 | info_text_1->setGeometry(QRect(150, 64, 410, 32));
231 | info_text_1->setFont(font);
232 | info_text_2 = new QTextEdit(page_1);
233 | info_text_2->setObjectName(QString::fromUtf8("info_text_2"));
234 | info_text_2->setGeometry(QRect(150, 124, 630, 32));
235 | info_text_2->setFont(font);
236 | info_text_3 = new QTextEdit(page_1);
237 | info_text_3->setObjectName(QString::fromUtf8("info_text_3"));
238 | info_text_3->setGeometry(QRect(150, 184, 630, 180));
239 | info_text_3->setFont(font);
240 | info_button_1 = new QPushButton(page_1);
241 | info_button_1->setObjectName(QString::fromUtf8("info_button_1"));
242 | info_button_1->setGeometry(QRect(580, 390, 200, 40));
243 | QFont font4;
244 | font4.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
245 | font4.setPointSize(11);
246 | font4.setBold(true);
247 | font4.setWeight(75);
248 | info_button_1->setFont(font4);
249 | info_text_5 = new QTextEdit(page_1);
250 | info_text_5->setObjectName(QString::fromUtf8("info_text_5"));
251 | info_text_5->setGeometry(QRect(550, 514, 230, 32));
252 | info_text_5->setFont(font);
253 | info_label_5 = new QLabel(page_1);
254 | info_label_5->setObjectName(QString::fromUtf8("info_label_5"));
255 | info_label_5->setGeometry(QRect(0, 510, 150, 40));
256 | info_label_5->setFont(font3);
257 | info_label_5->setAlignment(Qt::AlignCenter);
258 | info_text_4 = new QTextEdit(page_1);
259 | info_text_4->setObjectName(QString::fromUtf8("info_text_4"));
260 | info_text_4->setGeometry(QRect(150, 514, 230, 32));
261 | info_text_4->setFont(font);
262 | info_label_4 = new QLabel(page_1);
263 | info_label_4->setObjectName(QString::fromUtf8("info_label_4"));
264 | info_label_4->setGeometry(QRect(400, 510, 150, 40));
265 | info_label_4->setFont(font3);
266 | info_label_4->setAlignment(Qt::AlignCenter);
267 | info_label_6 = new QLabel(page_1);
268 | info_label_6->setObjectName(QString::fromUtf8("info_label_6"));
269 | info_label_6->setGeometry(QRect(0, 570, 150, 40));
270 | info_label_6->setFont(font3);
271 | info_label_6->setAlignment(Qt::AlignCenter);
272 | info_text_6 = new QTextEdit(page_1);
273 | info_text_6->setObjectName(QString::fromUtf8("info_text_6"));
274 | info_text_6->setGeometry(QRect(150, 574, 630, 32));
275 | info_text_6->setFont(font);
276 | info_button_2 = new QPushButton(page_1);
277 | info_button_2->setObjectName(QString::fromUtf8("info_button_2"));
278 | info_button_2->setGeometry(QRect(360, 620, 200, 40));
279 | info_button_2->setFont(font4);
280 | info_title_2 = new QLabel(page_1);
281 | info_title_2->setObjectName(QString::fromUtf8("info_title_2"));
282 | info_title_2->setGeometry(QRect(0, 450, 250, 40));
283 | info_title_2->setFont(font2);
284 | info_title_2->setAlignment(Qt::AlignCenter);
285 | info_button_3 = new QPushButton(page_1);
286 | info_button_3->setObjectName(QString::fromUtf8("info_button_3"));
287 | info_button_3->setGeometry(QRect(580, 60, 200, 40));
288 | info_button_3->setFont(font4);
289 | info_button_4 = new QPushButton(page_1);
290 | info_button_4->setObjectName(QString::fromUtf8("info_button_4"));
291 | info_button_4->setGeometry(QRect(580, 620, 200, 40));
292 | info_button_4->setFont(font4);
293 | stackedWidget->addWidget(page_1);
294 | page_2 = new QWidget();
295 | page_2->setObjectName(QString::fromUtf8("page_2"));
296 | search_title = new QLabel(page_2);
297 | search_title->setObjectName(QString::fromUtf8("search_title"));
298 | search_title->setGeometry(QRect(0, 0, 250, 40));
299 | search_title->setFont(font2);
300 | search_title->setAlignment(Qt::AlignCenter);
301 | search_label_1 = new QLabel(page_2);
302 | search_label_1->setObjectName(QString::fromUtf8("search_label_1"));
303 | search_label_1->setGeometry(QRect(0, 60, 150, 40));
304 | QFont font5;
305 | font5.setPointSize(11);
306 | search_label_1->setFont(font5);
307 | search_label_1->setAlignment(Qt::AlignCenter);
308 | search_text_1 = new QTextEdit(page_2);
309 | search_text_1->setObjectName(QString::fromUtf8("search_text_1"));
310 | search_text_1->setGeometry(QRect(150, 64, 410, 32));
311 | search_button_1 = new QPushButton(page_2);
312 | search_button_1->setObjectName(QString::fromUtf8("search_button_1"));
313 | search_button_1->setGeometry(QRect(580, 60, 200, 40));
314 | QFont font6;
315 | font6.setPointSize(11);
316 | font6.setBold(true);
317 | font6.setWeight(75);
318 | search_button_1->setFont(font6);
319 | search_text_2 = new QTextEdit(page_2);
320 | search_text_2->setObjectName(QString::fromUtf8("search_text_2"));
321 | search_text_2->setGeometry(QRect(20, 180, 760, 180));
322 | search_label_2 = new QLabel(page_2);
323 | search_label_2->setObjectName(QString::fromUtf8("search_label_2"));
324 | search_label_2->setGeometry(QRect(0, 120, 150, 40));
325 | search_label_2->setFont(font5);
326 | search_label_2->setAlignment(Qt::AlignCenter);
327 | search_title_2 = new QLabel(page_2);
328 | search_title_2->setObjectName(QString::fromUtf8("search_title_2"));
329 | search_title_2->setGeometry(QRect(0, 380, 250, 40));
330 | search_title_2->setFont(font2);
331 | search_title_2->setAlignment(Qt::AlignCenter);
332 | search_label_3 = new QLabel(page_2);
333 | search_label_3->setObjectName(QString::fromUtf8("search_label_3"));
334 | search_label_3->setGeometry(QRect(0, 440, 150, 40));
335 | search_label_3->setFont(font5);
336 | search_label_3->setAlignment(Qt::AlignCenter);
337 | search_label_4 = new QLabel(page_2);
338 | search_label_4->setObjectName(QString::fromUtf8("search_label_4"));
339 | search_label_4->setGeometry(QRect(400, 440, 150, 40));
340 | search_label_4->setFont(font5);
341 | search_label_4->setAlignment(Qt::AlignCenter);
342 | search_text_3 = new QTextEdit(page_2);
343 | search_text_3->setObjectName(QString::fromUtf8("search_text_3"));
344 | search_text_3->setGeometry(QRect(150, 444, 230, 32));
345 | search_text_4 = new QTextEdit(page_2);
346 | search_text_4->setObjectName(QString::fromUtf8("search_text_4"));
347 | search_text_4->setGeometry(QRect(550, 444, 230, 32));
348 | search_button_2 = new QPushButton(page_2);
349 | search_button_2->setObjectName(QString::fromUtf8("search_button_2"));
350 | search_button_2->setGeometry(QRect(580, 500, 200, 40));
351 | search_button_2->setFont(font6);
352 | search_label_5 = new QLabel(page_2);
353 | search_label_5->setObjectName(QString::fromUtf8("search_label_5"));
354 | search_label_5->setGeometry(QRect(0, 500, 150, 40));
355 | search_label_5->setFont(font5);
356 | search_label_5->setAlignment(Qt::AlignCenter);
357 | search_text_5 = new QTextEdit(page_2);
358 | search_text_5->setObjectName(QString::fromUtf8("search_text_5"));
359 | search_text_5->setGeometry(QRect(20, 560, 760, 100));
360 | stackedWidget->addWidget(page_2);
361 | page_3 = new QWidget();
362 | page_3->setObjectName(QString::fromUtf8("page_3"));
363 | road_title = new QLabel(page_3);
364 | road_title->setObjectName(QString::fromUtf8("road_title"));
365 | road_title->setGeometry(QRect(0, 0, 250, 40));
366 | road_title->setFont(font2);
367 | road_title->setAlignment(Qt::AlignCenter);
368 | road_label_1 = new QLabel(page_3);
369 | road_label_1->setObjectName(QString::fromUtf8("road_label_1"));
370 | road_label_1->setGeometry(QRect(0, 60, 150, 40));
371 | road_label_1->setFont(font5);
372 | road_label_1->setAlignment(Qt::AlignCenter);
373 | road_text_1 = new QTextEdit(page_3);
374 | road_text_1->setObjectName(QString::fromUtf8("road_text_1"));
375 | road_text_1->setGeometry(QRect(150, 64, 230, 32));
376 | road_text_2 = new QTextEdit(page_3);
377 | road_text_2->setObjectName(QString::fromUtf8("road_text_2"));
378 | road_text_2->setGeometry(QRect(550, 64, 230, 32));
379 | road_label_2 = new QLabel(page_3);
380 | road_label_2->setObjectName(QString::fromUtf8("road_label_2"));
381 | road_label_2->setGeometry(QRect(400, 60, 150, 40));
382 | road_label_2->setFont(font5);
383 | road_label_2->setAlignment(Qt::AlignCenter);
384 | road_text_3 = new QTextEdit(page_3);
385 | road_text_3->setObjectName(QString::fromUtf8("road_text_3"));
386 | road_text_3->setGeometry(QRect(20, 180, 760, 200));
387 | road_button_1 = new QPushButton(page_3);
388 | road_button_1->setObjectName(QString::fromUtf8("road_button_1"));
389 | road_button_1->setGeometry(QRect(580, 120, 200, 40));
390 | road_button_1->setFont(font6);
391 | road_label_3 = new QLabel(page_3);
392 | road_label_3->setObjectName(QString::fromUtf8("road_label_3"));
393 | road_label_3->setGeometry(QRect(0, 120, 150, 40));
394 | road_label_3->setFont(font5);
395 | road_label_3->setAlignment(Qt::AlignCenter);
396 | stackedWidget->addWidget(page_3);
397 | page_4 = new QWidget();
398 | page_4->setObjectName(QString::fromUtf8("page_4"));
399 | multi_title = new QLabel(page_4);
400 | multi_title->setObjectName(QString::fromUtf8("multi_title"));
401 | multi_title->setGeometry(QRect(0, 0, 250, 40));
402 | multi_title->setFont(font2);
403 | multi_title->setAlignment(Qt::AlignCenter);
404 | multi_text_1 = new QTextEdit(page_4);
405 | multi_text_1->setObjectName(QString::fromUtf8("multi_text_1"));
406 | multi_text_1->setGeometry(QRect(150, 64, 230, 32));
407 | multi_label_2 = new QLabel(page_4);
408 | multi_label_2->setObjectName(QString::fromUtf8("multi_label_2"));
409 | multi_label_2->setGeometry(QRect(400, 60, 150, 40));
410 | multi_label_2->setFont(font5);
411 | multi_label_2->setAlignment(Qt::AlignCenter);
412 | multi_button_1 = new QPushButton(page_4);
413 | multi_button_1->setObjectName(QString::fromUtf8("multi_button_1"));
414 | multi_button_1->setGeometry(QRect(580, 120, 200, 40));
415 | multi_button_1->setFont(font6);
416 | multi_label_1 = new QLabel(page_4);
417 | multi_label_1->setObjectName(QString::fromUtf8("multi_label_1"));
418 | multi_label_1->setGeometry(QRect(0, 60, 150, 40));
419 | multi_label_1->setFont(font5);
420 | multi_label_1->setAlignment(Qt::AlignCenter);
421 | multi_text_2 = new QTextEdit(page_4);
422 | multi_text_2->setObjectName(QString::fromUtf8("multi_text_2"));
423 | multi_text_2->setGeometry(QRect(550, 64, 230, 32));
424 | multi_text_3 = new QTextEdit(page_4);
425 | multi_text_3->setObjectName(QString::fromUtf8("multi_text_3"));
426 | multi_text_3->setGeometry(QRect(20, 180, 760, 490));
427 | multi_label_3 = new QLabel(page_4);
428 | multi_label_3->setObjectName(QString::fromUtf8("multi_label_3"));
429 | multi_label_3->setGeometry(QRect(0, 120, 150, 40));
430 | multi_label_3->setFont(font5);
431 | multi_label_3->setAlignment(Qt::AlignCenter);
432 | stackedWidget->addWidget(page_4);
433 | page_5 = new QWidget();
434 | page_5->setObjectName(QString::fromUtf8("page_5"));
435 | plenty_text_1 = new QTextEdit(page_5);
436 | plenty_text_1->setObjectName(QString::fromUtf8("plenty_text_1"));
437 | plenty_text_1->setGeometry(QRect(150, 64, 230, 32));
438 | plenty_text_4 = new QTextEdit(page_5);
439 | plenty_text_4->setObjectName(QString::fromUtf8("plenty_text_4"));
440 | plenty_text_4->setGeometry(QRect(20, 240, 760, 430));
441 | plenty_title = new QLabel(page_5);
442 | plenty_title->setObjectName(QString::fromUtf8("plenty_title"));
443 | plenty_title->setGeometry(QRect(0, 0, 250, 40));
444 | plenty_title->setFont(font2);
445 | plenty_title->setAlignment(Qt::AlignCenter);
446 | plenty_label_1 = new QLabel(page_5);
447 | plenty_label_1->setObjectName(QString::fromUtf8("plenty_label_1"));
448 | plenty_label_1->setGeometry(QRect(0, 60, 150, 40));
449 | plenty_label_1->setFont(font5);
450 | plenty_label_1->setAlignment(Qt::AlignCenter);
451 | plenty_label_2 = new QLabel(page_5);
452 | plenty_label_2->setObjectName(QString::fromUtf8("plenty_label_2"));
453 | plenty_label_2->setGeometry(QRect(400, 60, 150, 40));
454 | plenty_label_2->setFont(font5);
455 | plenty_label_2->setAlignment(Qt::AlignCenter);
456 | plenty_button_1 = new QPushButton(page_5);
457 | plenty_button_1->setObjectName(QString::fromUtf8("plenty_button_1"));
458 | plenty_button_1->setGeometry(QRect(580, 120, 200, 40));
459 | plenty_button_1->setFont(font6);
460 | plenty_text_2 = new QTextEdit(page_5);
461 | plenty_text_2->setObjectName(QString::fromUtf8("plenty_text_2"));
462 | plenty_text_2->setGeometry(QRect(550, 64, 230, 32));
463 | plenty_label_3 = new QLabel(page_5);
464 | plenty_label_3->setObjectName(QString::fromUtf8("plenty_label_3"));
465 | plenty_label_3->setGeometry(QRect(0, 120, 150, 40));
466 | plenty_label_3->setFont(font5);
467 | plenty_label_3->setAlignment(Qt::AlignCenter);
468 | plenty_text_3 = new QTextEdit(page_5);
469 | plenty_text_3->setObjectName(QString::fromUtf8("plenty_text_3"));
470 | plenty_text_3->setGeometry(QRect(150, 124, 230, 32));
471 | plenty_label_4 = new QLabel(page_5);
472 | plenty_label_4->setObjectName(QString::fromUtf8("plenty_label_4"));
473 | plenty_label_4->setGeometry(QRect(0, 180, 150, 40));
474 | plenty_label_4->setFont(font5);
475 | plenty_label_4->setAlignment(Qt::AlignCenter);
476 | stackedWidget->addWidget(page_5);
477 | page_6 = new QWidget();
478 | page_6->setObjectName(QString::fromUtf8("page_6"));
479 | about_title = new QLabel(page_6);
480 | about_title->setObjectName(QString::fromUtf8("about_title"));
481 | about_title->setGeometry(QRect(0, 0, 250, 40));
482 | about_title->setFont(font2);
483 | about_title->setAlignment(Qt::AlignCenter);
484 | about_label_1 = new QLabel(page_6);
485 | about_label_1->setObjectName(QString::fromUtf8("about_label_1"));
486 | about_label_1->setGeometry(QRect(20, 60, 760, 620));
487 | QFont font7;
488 | font7.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
489 | font7.setPointSize(9);
490 | about_label_1->setFont(font7);
491 | about_label_1->setTextFormat(Qt::RichText);
492 | about_label_1->setAlignment(Qt::AlignLeading | Qt::AlignLeft | Qt::AlignTop);
493 | stackedWidget->addWidget(page_6);
494 | page_7 = new QWidget();
495 | page_7->setObjectName(QString::fromUtf8("page_7"));
496 | demo_title = new QLabel(page_7);
497 | demo_title->setObjectName(QString::fromUtf8("demo_title"));
498 | demo_title->setGeometry(QRect(0, 0, 250, 40));
499 | demo_title->setFont(font2);
500 | demo_title->setAlignment(Qt::AlignCenter);
501 | demo_button_1 = new QPushButton(page_7);
502 | demo_button_1->setObjectName(QString::fromUtf8("demo_button_1"));
503 | demo_button_1->setGeometry(QRect(580, 620, 200, 40));
504 | demo_button_1->setFont(font4);
505 | demo_label_2 = new QLabel(page_7);
506 | demo_label_2->setObjectName(QString::fromUtf8("demo_label_2"));
507 | demo_label_2->setGeometry(QRect(20, 550, 760, 40));
508 | QFont font8;
509 | font8.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
510 | font8.setPointSize(11);
511 | font8.setBold(false);
512 | font8.setWeight(50);
513 | demo_label_2->setFont(font8);
514 | demo_label_2->setAlignment(Qt::AlignCenter);
515 | demo_label_1 = new QLabel(page_7);
516 | demo_label_1->setObjectName(QString::fromUtf8("demo_label_1"));
517 | demo_label_1->setGeometry(QRect(20, 70, 760, 430));
518 | demo_label_1->setFont(font5);
519 | demo_label_1->setAutoFillBackground(false);
520 | demo_label_1->setPixmap(QPixmap(QString::fromUtf8("Resources/map.png")));
521 | demo_label_1->setScaledContents(true);
522 | demo_label_1->setAlignment(Qt::AlignCenter);
523 | stackedWidget->addWidget(page_7);
524 | IconLabel = new QLabel(centralwidget);
525 | IconLabel->setObjectName(QString::fromUtf8("IconLabel"));
526 | IconLabel->setGeometry(QRect(250, 2, 50, 50));
527 | IconLabel->setMinimumSize(QSize(50, 50));
528 | IconLabel->setFont(font);
529 | IconLabel->setPixmap(QPixmap(QString::fromUtf8("Resources/main.png")));
530 | IconLabel->setScaledContents(true);
531 | IconLabel->setAlignment(Qt::AlignCenter);
532 | button_left_7 = new QPushButton(centralwidget);
533 | button_left_7->setObjectName(QString::fromUtf8("button_left_7"));
534 | button_left_7->setGeometry(QRect(0, 420, 200, 60));
535 | button_left_7->setMinimumSize(QSize(0, 0));
536 | QFont font9;
537 | font9.setFamily(QString::fromUtf8("\345\276\256\350\275\257\351\233\205\351\273\221"));
538 | font9.setBold(true);
539 | font9.setWeight(75);
540 | button_left_7->setFont(font9);
541 | QIcon icon1;
542 | icon1.addFile(QString::fromUtf8("Resources/sdu.png"), QSize(), QIcon::Normal, QIcon::Off);
543 | button_left_7->setIcon(icon1);
544 | button_left_7->setIconSize(QSize(48, 48));
545 | button_left_2 = new QPushButton(centralwidget);
546 | button_left_2->setObjectName(QString::fromUtf8("button_left_2"));
547 | button_left_2->setGeometry(QRect(0, 140, 200, 60));
548 | button_left_2->setMinimumSize(QSize(0, 0));
549 | button_left_2->setFont(font9);
550 | QIcon icon2;
551 | icon2.addFile(QString::fromUtf8("Resources/searchinfo.png"), QSize(), QIcon::Normal, QIcon::Off);
552 | button_left_2->setIcon(icon2);
553 | button_left_2->setIconSize(QSize(48, 48));
554 | button_left_1 = new QPushButton(centralwidget);
555 | button_left_1->setObjectName(QString::fromUtf8("button_left_1"));
556 | button_left_1->setGeometry(QRect(0, 70, 200, 60));
557 | button_left_1->setMinimumSize(QSize(0, 0));
558 | button_left_1->setFont(font9);
559 | QIcon icon3;
560 | icon3.addFile(QString::fromUtf8("Resources/writeinfo.png"), QSize(), QIcon::Normal, QIcon::Off);
561 | button_left_1->setIcon(icon3);
562 | button_left_1->setIconSize(QSize(48, 48));
563 | button_left_3 = new QPushButton(centralwidget);
564 | button_left_3->setObjectName(QString::fromUtf8("button_left_3"));
565 | button_left_3->setGeometry(QRect(0, 210, 200, 60));
566 | button_left_3->setMinimumSize(QSize(0, 0));
567 | button_left_3->setFont(font9);
568 | QIcon icon4;
569 | icon4.addFile(QString::fromUtf8("Resources/findroad.png"), QSize(), QIcon::Normal, QIcon::Off);
570 | button_left_3->setIcon(icon4);
571 | button_left_3->setIconSize(QSize(48, 48));
572 | button_left_4 = new QPushButton(centralwidget);
573 | button_left_4->setObjectName(QString::fromUtf8("button_left_4"));
574 | button_left_4->setGeometry(QRect(0, 280, 200, 60));
575 | button_left_4->setMinimumSize(QSize(0, 0));
576 | button_left_4->setFont(font9);
577 | QIcon icon5;
578 | icon5.addFile(QString::fromUtf8("Resources/allroad.png"), QSize(), QIcon::Normal, QIcon::Off);
579 | button_left_4->setIcon(icon5);
580 | button_left_4->setIconSize(QSize(48, 48));
581 | button_left_6 = new QPushButton(centralwidget);
582 | button_left_6->setObjectName(QString::fromUtf8("button_left_6"));
583 | button_left_6->setGeometry(QRect(0, 490, 200, 60));
584 | button_left_6->setMinimumSize(QSize(0, 0));
585 | button_left_6->setFont(font9);
586 | QIcon icon6;
587 | icon6.addFile(QString::fromUtf8("Resources/about.png"), QSize(), QIcon::Normal, QIcon::Off);
588 | button_left_6->setIcon(icon6);
589 | button_left_6->setIconSize(QSize(48, 48));
590 | button_left_5 = new QPushButton(centralwidget);
591 | button_left_5->setObjectName(QString::fromUtf8("button_left_5"));
592 | button_left_5->setGeometry(QRect(0, 350, 200, 60));
593 | button_left_5->setMinimumSize(QSize(0, 0));
594 | button_left_5->setFont(font9);
595 | QIcon icon7;
596 | icon7.addFile(QString::fromUtf8("Resources/multiplaces.png"), QSize(), QIcon::Normal, QIcon::Off);
597 | button_left_5->setIcon(icon7);
598 | button_left_5->setIconSize(QSize(48, 48));
599 | pix_label_1 = new QLabel(centralwidget);
600 | pix_label_1->setObjectName(QString::fromUtf8("pix_label_1"));
601 | pix_label_1->setGeometry(QRect(10, 560, 180, 180));
602 | pix_label_1->setMinimumSize(QSize(0, 0));
603 | pix_label_1->setFont(font);
604 | pix_label_1->setPixmap(QPixmap(QString::fromUtf8("Resources/auth.jpg")));
605 | pix_label_1->setScaledContents(true);
606 | pix_label_2 = new QLabel(centralwidget);
607 | pix_label_2->setObjectName(QString::fromUtf8("pix_label_2"));
608 | pix_label_2->setGeometry(QRect(10, 680, 180, 60));
609 | pix_label_2->setMinimumSize(QSize(0, 0));
610 | pix_label_2->setFont(font9);
611 | pix_label_2->setScaledContents(false);
612 | pix_label_2->setAlignment(Qt::AlignCenter);
613 | GuideWindow->setCentralWidget(centralwidget);
614 |
615 | retranslateUi(GuideWindow);
616 |
617 | setPaint();
618 |
619 | stackedWidget->setCurrentIndex(5);
620 |
621 | QMetaObject::connectSlotsByName(GuideWindow);
622 | }
623 |
624 | // retranslateUi
625 | void Ui_GuideWindow::retranslateUi(QMainWindow *GuideWindow)
626 | {
627 | GuideWindow->setWindowTitle(QApplication::translate("GuideWindow", "\345\237\272\344\272\216Qt5\347\232\204\346\240\241\345\233\255\345\257\274\346\270\270\347\263\273\347\273\237 v2.1.5", nullptr));
628 | TitleLabel->setText(QApplication::translate("GuideWindow", "\345\237\272\344\272\216Qt5\347\232\204\346\240\241\345\233\255\345\257\274\346\270\270\347\263\273\347\273\237 v2.1.5", nullptr));
629 | info_title->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\344\277\241\346\201\257\347\273\264\346\212\244", nullptr));
630 | info_label_1->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\347\274\226\345\217\267", nullptr));
631 | info_label_2->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\345\220\215\347\247\260", nullptr));
632 | info_label_3->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\347\256\200\344\273\213", nullptr));
633 | info_button_1->setText(QApplication::translate("GuideWindow", "\345\275\225\345\205\245\344\277\241\346\201\257", nullptr));
634 | info_label_5->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\350\265\267\347\202\271\347\274\226\345\217\267", nullptr));
635 | info_label_4->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\347\273\210\347\202\271\347\274\226\345\217\267", nullptr));
636 | info_label_6->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\351\225\277\345\272\246", nullptr));
637 | info_button_2->setText(QApplication::translate("GuideWindow", "\345\275\225\345\205\245\351\201\223\350\267\257", nullptr));
638 | info_title_2->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\344\277\241\346\201\257\347\273\264\346\212\244", nullptr));
639 | info_button_3->setText(QApplication::translate("GuideWindow", "\345\210\240\351\231\244\346\231\257\347\202\271\345\217\212\345\205\266\351\201\223\350\267\257", nullptr));
640 | info_button_4->setText(QApplication::translate("GuideWindow", "\345\210\240\351\231\244\351\201\223\350\267\257", nullptr));
641 | search_title->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\344\277\241\346\201\257\346\237\245\350\257\242", nullptr));
642 | search_label_1->setText(QApplication::translate("GuideWindow", "\346\231\257\347\202\271\347\274\226\345\217\267", nullptr));
643 | search_button_1->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\346\231\257\347\202\271\344\277\241\346\201\257", nullptr));
644 | search_label_2->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr));
645 | search_title_2->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\344\277\241\346\201\257\346\237\245\350\257\242", nullptr));
646 | search_label_3->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\350\265\267\347\202\271\347\274\226\345\217\267", nullptr));
647 | search_label_4->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\347\273\210\347\202\271\347\274\226\345\217\267", nullptr));
648 | search_button_2->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\351\201\223\350\267\257\344\277\241\346\201\257", nullptr));
649 | search_label_5->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr));
650 | road_title->setText(QApplication::translate("GuideWindow", "\346\234\200\347\237\255\350\267\257\345\276\204\346\237\245\350\257\242", nullptr));
651 | road_label_1->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\350\265\267\347\202\271", nullptr));
652 | road_label_2->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\347\273\210\347\202\271", nullptr));
653 | road_button_1->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\346\234\200\347\237\255\350\267\257\345\276\204", nullptr));
654 | road_label_3->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr));
655 | multi_title->setText(QApplication::translate("GuideWindow", "\346\211\200\346\234\211\350\267\257\345\276\204\346\237\245\350\257\242", nullptr));
656 | multi_label_2->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\347\273\210\347\202\271", nullptr));
657 | multi_button_1->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\346\211\200\346\234\211\350\267\257\345\276\204", nullptr));
658 | multi_label_1->setText(QApplication::translate("GuideWindow", "\351\201\223\350\267\257\350\265\267\347\202\271", nullptr));
659 | multi_label_3->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr));
660 | plenty_title->setText(QApplication::translate("GuideWindow", "\345\244\232\346\231\257\347\202\271\346\237\245\350\257\242", nullptr));
661 | plenty_label_1->setText(QApplication::translate("GuideWindow", "\350\265\267\347\202\271\346\231\257\347\202\271", nullptr));
662 | plenty_label_2->setText(QApplication::translate("GuideWindow", "\344\270\255\351\227\264\351\241\266\347\202\271A", nullptr));
663 | plenty_button_1->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\345\244\232\346\231\257\347\202\271\346\234\200\347\237\255\350\267\257\345\276\204", nullptr));
664 | plenty_label_3->setText(QApplication::translate("GuideWindow", "\344\270\255\351\227\264\351\241\266\347\202\271B", nullptr));
665 | plenty_label_4->setText(QApplication::translate("GuideWindow", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr));
666 | about_title->setText(QApplication::translate("GuideWindow", "\345\205\263\344\272\216", nullptr));
667 | about_label_1->setText(QApplication::translate("GuideWindow", "
\346\233\264\346\226\260\345\206\205\345\256\271
------------------------------------------------------------------------------------------------------------------
2019.2.25 Version 2.1.5
1. \346\226\260\345\242\236\351\201\223\350\267\257\344\277\241\346\201\257\346\237\245\350\257\242\345\212\237\350\203\275\357\274\214\350\276\223\345\205\245\351\201\223\350\267\257\350\265\267\347\202\271\345\222\214\347\273\210\347\202\271\345\215\263\345\217\257\346\237\245\350\257\242\351\201\223\350\267\257\345\205\267\344\275\223\344\277\241\346\201\257
2. \346\226\260\345\242\236\350\214\203\344\276\213\345\234\260\345\233\276\357\274\214\346\224\257\346\214\201"
668 | "\344\270\200\351\224\256\345\275\225\345\205\245\345\267\262\346\234\211\350\214\203\344\276\213\344\277\241\346\201\257
3. \346\226\260\345\242\236\346\234\200\347\237\255\350\267\257\345\276\204\346\237\245\350\257\242\344\273\245\345\217\212\346\211\200\346\234\211\350\267\257\345\276\204\346\237\245\350\257\242\346\230\276\347\244\272\350\267\257\345\276\204\346\200\273\351\225\277\345\272\246
4. \351\207\215\346\226\260\350\260\203\346\225\264\345\244\232\346\231\257\347\202\271\346\237\245\350\257\242\345\212\237\350\203\275
5. \345\275\225\345\205\245\350\214\203\344\276\213\345\234\260\345\233\276\345\220\216\357\274\214\345\275\225\345\205\245\350\267\257\345\276\204\343\200\201\346\237\245\350\257\242\346\234\200\347\237\255\350\267\257\345\276\204\346\227\266\357\274\214\345\234\250\350\214\203\344\276\213\345\233\276\347\211\207\344\270\212\345\235\207\344\274\232\346\230\276\347\244\272\350\267\257\345\276\204\347\272\277\346\235"
669 | "\241
6. \345\234\250\346\211\200\346\234\211\346\266\211\345\217\212\350\267\257\345\276\204\346\237\245\350\257\242\347\232\204\347\225\214\351\235\242\346\226\260\345\242\236\346\230\276\347\244\272\350\267\257\345\276\204\346\231\257\347\202\271\347\274\226\345\217\267\345\212\237\350\203\275\357\274\214\344\271\237\345\260\261\346\230\257\345\220\214\346\227\266\346\230\276\347\244\272\347\274\226\345\217\267\345\222\214\345\220\215\347\247\260
------------------------------------------------------------------------------------------------------------------
2019.2.19 Version 2.1
1. \347\225\214\351\235\242\351\207\215\346\226\260\345\270\203\345\261\200
2. \346\226\260\345\242\236\345\205\263\344\272\216\347\225\214\351\235\242
3. \344\277"
670 | "\256\345\244\215\346\227\240\346\263\225\346\230\276\347\244\272\350\267\257\345\276\204\347\232\204bug
4. \345\233\276\346\240\207\350\260\203\346\225\264
5. \346\231\257\347\202\271\344\277\241\346\201\257\345\210\240\351\231\244\345\212\237\350\203\275\357\274\214\345\217\257\344\273\245\345\210\240\351\231\244\350\277\231\346\235\241\347\274\226\345\217\267\347\232\204\346\231\257\347\202\271\344\277\241\346\201\257\345\217\212\345\205\266\346\211\200\346\234\211\347\233\270\345\205\263\351\201\223\350\267\257\344\277\241\346\201\257
6. \351\201\223\350\267\257\344\277\241\346\201\257\345\210\240\351\231\244\345\212\237\350\203\275\357\274\214\346\240\271\346\215\256\351\201\223\350\267\257\350\265\267\347\202\271\344\270\216\347\273\210\347\202\271\345\210\240\351\231\244\346\225\264\346\235\241\351\201\223\350\267\257\344\277\241\346\201\257
----------------------------------------------------------------------"
671 | "--------------------------------------------
",
672 | nullptr));
673 | demo_title->setText(QApplication::translate("GuideWindow", "\350\214\203\344\276\213\345\234\260\345\233\276", nullptr));
674 | demo_button_1->setText(QApplication::translate("GuideWindow", "\345\275\225\345\205\245\350\214\203\344\276\213\345\234\260\345\233\276", nullptr));
675 | demo_label_2->setText(QApplication::translate("GuideWindow", "\345\275\225\345\205\245\350\214\203\344\276\213\345\234\260\345\233\276\345\220\216\357\274\214\345\275\225\345\205\245\350\267\257\345\276\204\343\200\201\346\237\245\350\257\242\346\234\200\347\237\255\350\267\257\345\276\204\346\227\266\357\274\214\345\234\250\345\233\276\347\211\207\344\270\212\345\235\207\344\274\232\346\230\276\347\244\272\350\267\257\345\276\204\347\272\277\346\235\241\343\200\202", nullptr));
676 | demo_label_1->setText(QString());
677 | IconLabel->setText(QString());
678 | button_left_7->setText(QApplication::translate("GuideWindow", "\350\214\203\344\276\213\345\234\260\345\233\276", nullptr));
679 | button_left_2->setText(QApplication::translate("GuideWindow", "\344\277\241\346\201\257\346\237\245\350\257\242", nullptr));
680 | button_left_1->setText(QApplication::translate("GuideWindow", "\344\277\241\346\201\257\345\275\225\345\205\245", nullptr));
681 | button_left_3->setText(QApplication::translate("GuideWindow", "\346\234\200\347\237\255\350\267\257\345\276\204\346\237\245\350\257\242", nullptr));
682 | button_left_4->setText(QApplication::translate("GuideWindow", "\346\211\200\346\234\211\350\267\257\345\276\204\346\237\245\350\257\242", nullptr));
683 | button_left_6->setText(QApplication::translate("GuideWindow", "\345\205\263\344\272\216", nullptr));
684 | button_left_5->setText(QApplication::translate("GuideWindow", "\345\244\232\346\231\257\347\202\271\346\237\245\350\257\242", nullptr));
685 | pix_label_1->setText(QString());
686 | pix_label_2->setText(QApplication::translate("GuideWindow", "Powered by Y.Wang
2019.2.25
", nullptr));
687 | }
688 |
--------------------------------------------------------------------------------
/GuideWindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | GuideWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 1000
10 | 750
11 |
12 |
13 |
14 |
15 | 1000
16 | 750
17 |
18 |
19 |
20 |
21 | 微软雅黑
22 |
23 |
24 |
25 | 基于Qt5的校园导游系统 v2.1.5
26 |
27 |
28 |
29 | Resources/main.pngResources/main.png
30 |
31 |
32 | 1
33 |
34 |
35 |
36 |
37 | 1000
38 | 750
39 |
40 |
41 |
42 |
43 |
44 | 0
45 | 0
46 | 1000
47 | 64
48 |
49 |
50 |
51 |
52 | 微软雅黑
53 | 16
54 | 75
55 | true
56 |
57 |
58 |
59 | 基于Qt5的校园导游系统 v2.1.5
60 |
61 |
62 | Qt::AlignCenter
63 |
64 |
65 |
66 |
67 |
68 | 200
69 | 70
70 | 800
71 | 680
72 |
73 |
74 |
75 |
76 | 微软雅黑
77 |
78 |
79 |
80 | 5
81 |
82 |
83 |
84 |
85 |
86 | 0
87 | 0
88 | 250
89 | 40
90 |
91 |
92 |
93 |
94 | 微软雅黑
95 | 14
96 | 75
97 | true
98 |
99 |
100 |
101 | 景点信息维护
102 |
103 |
104 | Qt::AlignCenter
105 |
106 |
107 |
108 |
109 |
110 | 0
111 | 60
112 | 150
113 | 40
114 |
115 |
116 |
117 |
118 | 微软雅黑
119 | 11
120 |
121 |
122 |
123 | 景点编号
124 |
125 |
126 | Qt::AlignCenter
127 |
128 |
129 |
130 |
131 |
132 | 0
133 | 120
134 | 150
135 | 40
136 |
137 |
138 |
139 |
140 | 微软雅黑
141 | 11
142 |
143 |
144 |
145 | 景点名称
146 |
147 |
148 | Qt::AlignCenter
149 |
150 |
151 |
152 |
153 |
154 | 0
155 | 180
156 | 150
157 | 40
158 |
159 |
160 |
161 |
162 | 微软雅黑
163 | 11
164 |
165 |
166 |
167 | 景点简介
168 |
169 |
170 | Qt::AlignCenter
171 |
172 |
173 |
174 |
175 |
176 | 150
177 | 64
178 | 410
179 | 32
180 |
181 |
182 |
183 |
184 | 微软雅黑
185 |
186 |
187 |
188 |
189 |
190 |
191 | 150
192 | 124
193 | 630
194 | 32
195 |
196 |
197 |
198 |
199 | 微软雅黑
200 |
201 |
202 |
203 |
204 |
205 |
206 | 150
207 | 184
208 | 630
209 | 180
210 |
211 |
212 |
213 |
214 | 微软雅黑
215 |
216 |
217 |
218 |
219 |
220 |
221 | 580
222 | 390
223 | 200
224 | 40
225 |
226 |
227 |
228 |
229 | 微软雅黑
230 | 11
231 | 75
232 | true
233 |
234 |
235 |
236 | 录入信息
237 |
238 |
239 |
240 |
241 |
242 | 550
243 | 514
244 | 230
245 | 32
246 |
247 |
248 |
249 |
250 | 微软雅黑
251 |
252 |
253 |
254 |
255 |
256 |
257 | 0
258 | 510
259 | 150
260 | 40
261 |
262 |
263 |
264 |
265 | 微软雅黑
266 | 11
267 |
268 |
269 |
270 | 道路起点编号
271 |
272 |
273 | Qt::AlignCenter
274 |
275 |
276 |
277 |
278 |
279 | 150
280 | 514
281 | 230
282 | 32
283 |
284 |
285 |
286 |
287 | 微软雅黑
288 |
289 |
290 |
291 |
292 |
293 |
294 | 400
295 | 510
296 | 150
297 | 40
298 |
299 |
300 |
301 |
302 | 微软雅黑
303 | 11
304 |
305 |
306 |
307 | 道路终点编号
308 |
309 |
310 | Qt::AlignCenter
311 |
312 |
313 |
314 |
315 |
316 | 0
317 | 570
318 | 150
319 | 40
320 |
321 |
322 |
323 |
324 | 微软雅黑
325 | 11
326 |
327 |
328 |
329 | 道路长度
330 |
331 |
332 | Qt::AlignCenter
333 |
334 |
335 |
336 |
337 |
338 | 150
339 | 574
340 | 630
341 | 32
342 |
343 |
344 |
345 |
346 | 微软雅黑
347 |
348 |
349 |
350 |
351 |
352 |
353 | 360
354 | 620
355 | 200
356 | 40
357 |
358 |
359 |
360 |
361 | 微软雅黑
362 | 11
363 | 75
364 | true
365 |
366 |
367 |
368 | 录入道路
369 |
370 |
371 |
372 |
373 |
374 | 0
375 | 450
376 | 250
377 | 40
378 |
379 |
380 |
381 |
382 | 微软雅黑
383 | 14
384 | 75
385 | true
386 |
387 |
388 |
389 | 道路信息维护
390 |
391 |
392 | Qt::AlignCenter
393 |
394 |
395 |
396 |
397 |
398 | 580
399 | 60
400 | 200
401 | 40
402 |
403 |
404 |
405 |
406 | 微软雅黑
407 | 11
408 | 75
409 | true
410 |
411 |
412 |
413 | 删除景点及其道路
414 |
415 |
416 |
417 |
418 |
419 | 580
420 | 620
421 | 200
422 | 40
423 |
424 |
425 |
426 |
427 | 微软雅黑
428 | 11
429 | 75
430 | true
431 |
432 |
433 |
434 | 删除道路
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 | 0
443 | 0
444 | 250
445 | 40
446 |
447 |
448 |
449 |
450 | 微软雅黑
451 | 14
452 | 75
453 | true
454 |
455 |
456 |
457 | 景点信息查询
458 |
459 |
460 | Qt::AlignCenter
461 |
462 |
463 |
464 |
465 |
466 | 0
467 | 60
468 | 150
469 | 40
470 |
471 |
472 |
473 |
474 | 11
475 |
476 |
477 |
478 | 景点编号
479 |
480 |
481 | Qt::AlignCenter
482 |
483 |
484 |
485 |
486 |
487 | 150
488 | 64
489 | 410
490 | 32
491 |
492 |
493 |
494 |
495 |
496 |
497 | 580
498 | 60
499 | 200
500 | 40
501 |
502 |
503 |
504 |
505 | 11
506 | 75
507 | true
508 |
509 |
510 |
511 | 查询景点信息
512 |
513 |
514 |
515 |
516 |
517 | 20
518 | 180
519 | 760
520 | 180
521 |
522 |
523 |
524 |
525 |
526 |
527 | 0
528 | 120
529 | 150
530 | 40
531 |
532 |
533 |
534 |
535 | 11
536 |
537 |
538 |
539 | 查询结果
540 |
541 |
542 | Qt::AlignCenter
543 |
544 |
545 |
546 |
547 |
548 | 0
549 | 380
550 | 250
551 | 40
552 |
553 |
554 |
555 |
556 | 微软雅黑
557 | 14
558 | 75
559 | true
560 |
561 |
562 |
563 | 道路信息查询
564 |
565 |
566 | Qt::AlignCenter
567 |
568 |
569 |
570 |
571 |
572 | 0
573 | 440
574 | 150
575 | 40
576 |
577 |
578 |
579 |
580 | 11
581 |
582 |
583 |
584 | 道路起点编号
585 |
586 |
587 | Qt::AlignCenter
588 |
589 |
590 |
591 |
592 |
593 | 400
594 | 440
595 | 150
596 | 40
597 |
598 |
599 |
600 |
601 | 11
602 |
603 |
604 |
605 | 道路终点编号
606 |
607 |
608 | Qt::AlignCenter
609 |
610 |
611 |
612 |
613 |
614 | 150
615 | 444
616 | 230
617 | 32
618 |
619 |
620 |
621 |
622 |
623 |
624 | 550
625 | 444
626 | 230
627 | 32
628 |
629 |
630 |
631 |
632 |
633 |
634 | 580
635 | 500
636 | 200
637 | 40
638 |
639 |
640 |
641 |
642 | 11
643 | 75
644 | true
645 |
646 |
647 |
648 | 查询道路信息
649 |
650 |
651 |
652 |
653 |
654 | 0
655 | 500
656 | 150
657 | 40
658 |
659 |
660 |
661 |
662 | 11
663 |
664 |
665 |
666 | 查询结果
667 |
668 |
669 | Qt::AlignCenter
670 |
671 |
672 |
673 |
674 |
675 | 20
676 | 560
677 | 760
678 | 100
679 |
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 | 0
688 | 0
689 | 250
690 | 40
691 |
692 |
693 |
694 |
695 | 微软雅黑
696 | 14
697 | 75
698 | true
699 |
700 |
701 |
702 | 最短路径查询
703 |
704 |
705 | Qt::AlignCenter
706 |
707 |
708 |
709 |
710 |
711 | 0
712 | 60
713 | 150
714 | 40
715 |
716 |
717 |
718 |
719 | 11
720 |
721 |
722 |
723 | 道路起点
724 |
725 |
726 | Qt::AlignCenter
727 |
728 |
729 |
730 |
731 |
732 | 150
733 | 64
734 | 230
735 | 32
736 |
737 |
738 |
739 |
740 |
741 |
742 | 550
743 | 64
744 | 230
745 | 32
746 |
747 |
748 |
749 |
750 |
751 |
752 | 400
753 | 60
754 | 150
755 | 40
756 |
757 |
758 |
759 |
760 | 11
761 |
762 |
763 |
764 | 道路终点
765 |
766 |
767 | Qt::AlignCenter
768 |
769 |
770 |
771 |
772 |
773 | 20
774 | 180
775 | 760
776 | 200
777 |
778 |
779 |
780 |
781 |
782 |
783 | 580
784 | 120
785 | 200
786 | 40
787 |
788 |
789 |
790 |
791 | 11
792 | 75
793 | true
794 |
795 |
796 |
797 | 查询最短路径
798 |
799 |
800 |
801 |
802 |
803 | 0
804 | 120
805 | 150
806 | 40
807 |
808 |
809 |
810 |
811 | 11
812 |
813 |
814 |
815 | 查询结果
816 |
817 |
818 | Qt::AlignCenter
819 |
820 |
821 |
822 |
823 |
824 |
825 |
826 | 0
827 | 0
828 | 250
829 | 40
830 |
831 |
832 |
833 |
834 | 微软雅黑
835 | 14
836 | 75
837 | true
838 |
839 |
840 |
841 | 所有路径查询
842 |
843 |
844 | Qt::AlignCenter
845 |
846 |
847 |
848 |
849 |
850 | 150
851 | 64
852 | 230
853 | 32
854 |
855 |
856 |
857 |
858 |
859 |
860 | 400
861 | 60
862 | 150
863 | 40
864 |
865 |
866 |
867 |
868 | 11
869 |
870 |
871 |
872 | 道路终点
873 |
874 |
875 | Qt::AlignCenter
876 |
877 |
878 |
879 |
880 |
881 | 580
882 | 120
883 | 200
884 | 40
885 |
886 |
887 |
888 |
889 | 11
890 | 75
891 | true
892 |
893 |
894 |
895 | 查询所有路径
896 |
897 |
898 |
899 |
900 |
901 | 0
902 | 60
903 | 150
904 | 40
905 |
906 |
907 |
908 |
909 | 11
910 |
911 |
912 |
913 | 道路起点
914 |
915 |
916 | Qt::AlignCenter
917 |
918 |
919 |
920 |
921 |
922 | 550
923 | 64
924 | 230
925 | 32
926 |
927 |
928 |
929 |
930 |
931 |
932 | 20
933 | 180
934 | 760
935 | 490
936 |
937 |
938 |
939 |
940 |
941 |
942 | 0
943 | 120
944 | 150
945 | 40
946 |
947 |
948 |
949 |
950 | 11
951 |
952 |
953 |
954 | 查询结果
955 |
956 |
957 | Qt::AlignCenter
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 | 150
966 | 64
967 | 230
968 | 32
969 |
970 |
971 |
972 |
973 |
974 |
975 | 20
976 | 240
977 | 760
978 | 430
979 |
980 |
981 |
982 |
983 |
984 |
985 | 0
986 | 0
987 | 250
988 | 40
989 |
990 |
991 |
992 |
993 | 微软雅黑
994 | 14
995 | 75
996 | true
997 |
998 |
999 |
1000 | 多景点查询
1001 |
1002 |
1003 | Qt::AlignCenter
1004 |
1005 |
1006 |
1007 |
1008 |
1009 | 0
1010 | 60
1011 | 150
1012 | 40
1013 |
1014 |
1015 |
1016 |
1017 | 11
1018 |
1019 |
1020 |
1021 | 起点景点
1022 |
1023 |
1024 | Qt::AlignCenter
1025 |
1026 |
1027 |
1028 |
1029 |
1030 | 400
1031 | 60
1032 | 150
1033 | 40
1034 |
1035 |
1036 |
1037 |
1038 | 11
1039 |
1040 |
1041 |
1042 | 中间顶点A
1043 |
1044 |
1045 | Qt::AlignCenter
1046 |
1047 |
1048 |
1049 |
1050 |
1051 | 580
1052 | 120
1053 | 200
1054 | 40
1055 |
1056 |
1057 |
1058 |
1059 | 11
1060 | 75
1061 | true
1062 |
1063 |
1064 |
1065 | 查询多景点最短路径
1066 |
1067 |
1068 |
1069 |
1070 |
1071 | 550
1072 | 64
1073 | 230
1074 | 32
1075 |
1076 |
1077 |
1078 |
1079 |
1080 |
1081 | 0
1082 | 120
1083 | 150
1084 | 40
1085 |
1086 |
1087 |
1088 |
1089 | 11
1090 |
1091 |
1092 |
1093 | 中间顶点B
1094 |
1095 |
1096 | Qt::AlignCenter
1097 |
1098 |
1099 |
1100 |
1101 |
1102 | 150
1103 | 124
1104 | 230
1105 | 32
1106 |
1107 |
1108 |
1109 |
1110 |
1111 |
1112 | 0
1113 | 180
1114 | 150
1115 | 40
1116 |
1117 |
1118 |
1119 |
1120 | 11
1121 |
1122 |
1123 |
1124 | 查询结果
1125 |
1126 |
1127 | Qt::AlignCenter
1128 |
1129 |
1130 |
1131 |
1132 |
1133 |
1134 |
1135 | 0
1136 | 0
1137 | 250
1138 | 40
1139 |
1140 |
1141 |
1142 |
1143 | 微软雅黑
1144 | 14
1145 | 75
1146 | true
1147 |
1148 |
1149 |
1150 | 关于
1151 |
1152 |
1153 | Qt::AlignCenter
1154 |
1155 |
1156 |
1157 |
1158 |
1159 | 20
1160 | 60
1161 | 760
1162 | 620
1163 |
1164 |
1165 |
1166 |
1167 | 微软雅黑
1168 | 9
1169 |
1170 |
1171 |
1172 | <html><head/><body><p align="center"><span style=" font-size:16pt; font-weight:600; text-decoration: underline; color:#5500ff;">更新内容</span></p><p align="center">------------------------------------------------------------------------------------------------------------------</p><p align="justify"><span style=" font-size:10pt; font-weight:600;">2019.2.25 </span><span style=" font-size:10pt; font-weight:600; color:#ff0000;">Version 2.1.5</span></p><p align="justify">1. 新增道路信息查询功能,输入道路起点和终点即可查询道路具体信息</p><p align="justify">2. 新增范例地图,支持一键录入已有范例信息</p><p align="justify">3. 新增最短路径查询以及所有路径查询显示路径总长度</p><p align="justify">4. 重新调整多景点查询功能</p><p align="justify">5. 录入范例地图后,录入路径、查询最短路径时,在范例图片上均会显示路径线条</p><p align="justify">6. 在所有涉及路径查询的界面新增显示路径景点编号功能,也就是同时显示编号和名称</p><p align="center">------------------------------------------------------------------------------------------------------------------</p><p align="justify"><span style=" font-size:10pt; font-weight:600;">2019.2.19 </span><span style=" font-size:10pt; font-weight:600; color:#ff0000;">Version 2.1</span></p><p align="justify">1. 界面重新布局</p><p align="justify">2. 新增关于界面</p><p align="justify">3. 修复无法显示路径的bug</p><p align="justify">4. 图标调整</p><p align="justify">5. 景点信息删除功能,可以删除这条编号的景点信息及其所有相关道路信息</p><p align="justify">6. 道路信息删除功能,根据道路起点与终点删除整条道路信息</p><p align="center">------------------------------------------------------------------------------------------------------------------</p></body></html>
1173 |
1174 |
1175 | Qt::RichText
1176 |
1177 |
1178 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
1179 |
1180 |
1181 |
1182 |
1183 |
1184 |
1185 |
1186 | 0
1187 | 0
1188 | 250
1189 | 40
1190 |
1191 |
1192 |
1193 |
1194 | 微软雅黑
1195 | 14
1196 | 75
1197 | true
1198 |
1199 |
1200 |
1201 | 范例地图
1202 |
1203 |
1204 | Qt::AlignCenter
1205 |
1206 |
1207 |
1208 |
1209 |
1210 | 580
1211 | 620
1212 | 200
1213 | 40
1214 |
1215 |
1216 |
1217 |
1218 | 微软雅黑
1219 | 11
1220 | 75
1221 | true
1222 |
1223 |
1224 |
1225 | 录入范例地图
1226 |
1227 |
1228 |
1229 |
1230 |
1231 | 20
1232 | 550
1233 | 760
1234 | 40
1235 |
1236 |
1237 |
1238 |
1239 | 微软雅黑
1240 | 11
1241 | 50
1242 | false
1243 |
1244 |
1245 |
1246 | 录入范例地图后,录入路径、查询最短路径时,在图片上均会显示路径线条。
1247 |
1248 |
1249 | Qt::AlignCenter
1250 |
1251 |
1252 |
1253 |
1254 |
1255 | 20
1256 | 70
1257 | 760
1258 | 430
1259 |
1260 |
1261 |
1262 |
1263 | 11
1264 |
1265 |
1266 |
1267 | false
1268 |
1269 |
1270 |
1271 |
1272 |
1273 | Resources/map.png
1274 |
1275 |
1276 | true
1277 |
1278 |
1279 | Qt::AlignCenter
1280 |
1281 |
1282 |
1283 |
1284 |
1285 |
1286 |
1287 | 250
1288 | 2
1289 | 50
1290 | 50
1291 |
1292 |
1293 |
1294 |
1295 | 50
1296 | 50
1297 |
1298 |
1299 |
1300 |
1301 | 微软雅黑
1302 |
1303 |
1304 |
1305 |
1306 |
1307 |
1308 | Resources/main.png
1309 |
1310 |
1311 | true
1312 |
1313 |
1314 | Qt::AlignCenter
1315 |
1316 |
1317 |
1318 |
1319 |
1320 | 0
1321 | 420
1322 | 200
1323 | 60
1324 |
1325 |
1326 |
1327 |
1328 | 0
1329 | 0
1330 |
1331 |
1332 |
1333 |
1334 | 微软雅黑
1335 | 75
1336 | true
1337 |
1338 |
1339 |
1340 | 范例地图
1341 |
1342 |
1343 |
1344 | Resources/sdu.pngResources/sdu.png
1345 |
1346 |
1347 |
1348 | 48
1349 | 48
1350 |
1351 |
1352 |
1353 |
1354 |
1355 |
1356 | 0
1357 | 140
1358 | 200
1359 | 60
1360 |
1361 |
1362 |
1363 |
1364 | 0
1365 | 0
1366 |
1367 |
1368 |
1369 |
1370 | 微软雅黑
1371 | 75
1372 | true
1373 |
1374 |
1375 |
1376 | 信息查询
1377 |
1378 |
1379 |
1380 | Resources/searchinfo.pngResources/searchinfo.png
1381 |
1382 |
1383 |
1384 | 48
1385 | 48
1386 |
1387 |
1388 |
1389 |
1390 |
1391 |
1392 | 0
1393 | 70
1394 | 200
1395 | 60
1396 |
1397 |
1398 |
1399 |
1400 | 0
1401 | 0
1402 |
1403 |
1404 |
1405 |
1406 | 微软雅黑
1407 | 75
1408 | true
1409 |
1410 |
1411 |
1412 | 信息录入
1413 |
1414 |
1415 |
1416 | Resources/writeinfo.pngResources/writeinfo.png
1417 |
1418 |
1419 |
1420 | 48
1421 | 48
1422 |
1423 |
1424 |
1425 |
1426 |
1427 |
1428 | 0
1429 | 210
1430 | 200
1431 | 60
1432 |
1433 |
1434 |
1435 |
1436 | 0
1437 | 0
1438 |
1439 |
1440 |
1441 |
1442 | 微软雅黑
1443 | 75
1444 | true
1445 |
1446 |
1447 |
1448 | 最短路径查询
1449 |
1450 |
1451 |
1452 | Resources/findroad.pngResources/findroad.png
1453 |
1454 |
1455 |
1456 | 48
1457 | 48
1458 |
1459 |
1460 |
1461 |
1462 |
1463 |
1464 | 0
1465 | 280
1466 | 200
1467 | 60
1468 |
1469 |
1470 |
1471 |
1472 | 0
1473 | 0
1474 |
1475 |
1476 |
1477 |
1478 | 微软雅黑
1479 | 75
1480 | true
1481 |
1482 |
1483 |
1484 | 所有路径查询
1485 |
1486 |
1487 |
1488 | Resources/allroad.pngResources/allroad.png
1489 |
1490 |
1491 |
1492 | 48
1493 | 48
1494 |
1495 |
1496 |
1497 |
1498 |
1499 |
1500 | 0
1501 | 490
1502 | 200
1503 | 60
1504 |
1505 |
1506 |
1507 |
1508 | 0
1509 | 0
1510 |
1511 |
1512 |
1513 |
1514 | 微软雅黑
1515 | 75
1516 | true
1517 |
1518 |
1519 |
1520 | 关于
1521 |
1522 |
1523 |
1524 | Resources/about.pngResources/about.png
1525 |
1526 |
1527 |
1528 | 48
1529 | 48
1530 |
1531 |
1532 |
1533 |
1534 |
1535 |
1536 | 0
1537 | 350
1538 | 200
1539 | 60
1540 |
1541 |
1542 |
1543 |
1544 | 0
1545 | 0
1546 |
1547 |
1548 |
1549 |
1550 | 微软雅黑
1551 | 75
1552 | true
1553 |
1554 |
1555 |
1556 | 多景点查询
1557 |
1558 |
1559 |
1560 | Resources/multiplaces.pngResources/multiplaces.png
1561 |
1562 |
1563 |
1564 | 48
1565 | 48
1566 |
1567 |
1568 |
1569 |
1570 |
1571 |
1572 | 10
1573 | 560
1574 | 180
1575 | 180
1576 |
1577 |
1578 |
1579 |
1580 | 0
1581 | 0
1582 |
1583 |
1584 |
1585 |
1586 | 微软雅黑
1587 |
1588 |
1589 |
1590 |
1591 |
1592 |
1593 | Resources/auth.jpg
1594 |
1595 |
1596 | true
1597 |
1598 |
1599 |
1600 |
1601 |
1602 | 10
1603 | 680
1604 | 180
1605 | 60
1606 |
1607 |
1608 |
1609 |
1610 | 0
1611 | 0
1612 |
1613 |
1614 |
1615 |
1616 | 微软雅黑
1617 | 75
1618 | true
1619 |
1620 |
1621 |
1622 | <html><head/><body><p align="center"><span style=" color:#ffffff;">Powered by Y.Wang</span></p><p align="center"><span style=" color:#ffffff;">2019.2.25</span></p></body></html>
1623 |
1624 |
1625 | false
1626 |
1627 |
1628 | Qt::AlignCenter
1629 |
1630 |
1631 |
1632 |
1633 |
1634 |
1635 |
1636 |
--------------------------------------------------------------------------------
/Headers/Graph.h:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #define PLACES 20
5 | #define ROADS 50
6 | using namespace std;
7 |
8 | // 构造表节点
9 | typedef struct
10 | {
11 | string place, info;
12 | } TVertex;
13 |
14 | // 记录权值及传递过来的节点
15 | typedef struct
16 | {
17 | int weight;
18 | stack previous;
19 | // 作为路径栈的备份
20 | stack backup;
21 | } Path;
22 |
23 | // 保存路径
24 | typedef struct
25 | {
26 | int sum;
27 | bool flag;
28 | string result;
29 | } MultiRoad;
30 |
31 | class Graph
32 | {
33 | public:
34 | TVertex vertex[PLACES];
35 | // 用于储存搜索中路径的权值
36 | Path dis[PLACES];
37 | int AdjacencyMatrix[PLACES][PLACES];
38 | stack stk;
39 |
40 | public:
41 | // 初始化地图
42 | Graph();
43 | // 输入地点信息
44 | void setInfo(int num, string name, string info);
45 | // 删除景点及其道路
46 | void delInfo(int num);
47 | // 查询地点信息
48 | string getInfo(int num);
49 | // 查询道路信息
50 | string getPathInfo(int x, int y);
51 | // 输入新的路径
52 | void setPath(int x, int y, int dis);
53 | // 删除路径
54 | void delPath(int x, int y);
55 | // 寻找路径
56 | void getPath(int x, int y, string &result, int &sum, int (&v)[PLACES]);
57 | // 深度优先搜索输出路径
58 | void DFS(int x, int y, string &result, int &sum, int (&v)[PLACES], int &c);
59 | // 将栈清空
60 | void cleanStack(stack &stack)
61 | {
62 | while (!stack.empty())
63 | stack.pop();
64 | }
65 | // 输出所有简单路径
66 | void getAllPath(int x, int y, bool refresh, string &result);
67 | // 多景点查询
68 | void multiPath(int x, int y, int z, string &result);
69 | // 多景点遍历路径
70 | void multiGetAllPath(int x, int y, int z, bool refresh, int &c, MultiRoad (&mr)[ROADS]);
71 | };
72 |
--------------------------------------------------------------------------------
/Headers/GuideWindow.h:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include "Paint.h"
12 | #include "../Graph.cpp"
13 |
14 | class Ui_GuideWindow
15 | {
16 | public:
17 | Graph g;
18 | Widget *w;
19 | QWidget *centralwidget;
20 | QLabel *TitleLabel;
21 | QStackedWidget *stackedWidget;
22 | QWidget *page_1;
23 | QLabel *info_title;
24 | QLabel *info_label_1;
25 | QLabel *info_label_2;
26 | QLabel *info_label_3;
27 | QTextEdit *info_text_1;
28 | QTextEdit *info_text_2;
29 | QTextEdit *info_text_3;
30 | QPushButton *info_button_1;
31 | QTextEdit *info_text_5;
32 | QLabel *info_label_5;
33 | QTextEdit *info_text_4;
34 | QLabel *info_label_4;
35 | QLabel *info_label_6;
36 | QTextEdit *info_text_6;
37 | QPushButton *info_button_2;
38 | QLabel *info_title_2;
39 | QPushButton *info_button_3;
40 | QPushButton *info_button_4;
41 | QWidget *page_2;
42 | QLabel *search_title;
43 | QLabel *search_label_1;
44 | QTextEdit *search_text_1;
45 | QPushButton *search_button_1;
46 | QTextEdit *search_text_2;
47 | QLabel *search_label_2;
48 | QLabel *search_title_2;
49 | QLabel *search_label_3;
50 | QLabel *search_label_4;
51 | QTextEdit *search_text_3;
52 | QTextEdit *search_text_4;
53 | QPushButton *search_button_2;
54 | QLabel *search_label_5;
55 | QTextEdit *search_text_5;
56 | QWidget *page_3;
57 | QLabel *road_title;
58 | QLabel *road_label_1;
59 | QTextEdit *road_text_1;
60 | QTextEdit *road_text_2;
61 | QLabel *road_label_2;
62 | QTextEdit *road_text_3;
63 | QPushButton *road_button_1;
64 | QLabel *road_label_3;
65 | QWidget *page_4;
66 | QLabel *multi_title;
67 | QTextEdit *multi_text_1;
68 | QLabel *multi_label_2;
69 | QPushButton *multi_button_1;
70 | QLabel *multi_label_1;
71 | QTextEdit *multi_text_2;
72 | QTextEdit *multi_text_3;
73 | QLabel *multi_label_3;
74 | QWidget *page_5;
75 | QTextEdit *plenty_text_1;
76 | QTextEdit *plenty_text_4;
77 | QLabel *plenty_title;
78 | QLabel *plenty_label_1;
79 | QLabel *plenty_label_2;
80 | QPushButton *plenty_button_1;
81 | QTextEdit *plenty_text_2;
82 | QLabel *plenty_label_3;
83 | QTextEdit *plenty_text_3;
84 | QLabel *plenty_label_4;
85 | QWidget *page_6;
86 | QLabel *about_title;
87 | QLabel *about_label_1;
88 | QWidget *page_7;
89 | QLabel *demo_title;
90 | QPushButton *demo_button_1;
91 | QLabel *demo_label_2;
92 | QLabel *demo_label_1;
93 | QLabel *IconLabel;
94 | QPushButton *button_left_7;
95 | QPushButton *button_left_2;
96 | QPushButton *button_left_1;
97 | QPushButton *button_left_3;
98 | QPushButton *button_left_4;
99 | QPushButton *button_left_6;
100 | QPushButton *button_left_5;
101 | QLabel *pix_label_1;
102 | QLabel *pix_label_2;
103 |
104 | public:
105 | // setupUi
106 | void setupUi(QMainWindow *GuideWindow);
107 | // retranslateUi
108 | void retranslateUi(QMainWindow *GuideWindow);
109 | // 设定左侧切换事件
110 | void setLeftEvents();
111 | // 设定导游系统事件
112 | void setMainEvents();
113 | // 设定范例地图
114 | void setupDemo();
115 | // 设定最短路径动态演示
116 | void setPaint();
117 | };
118 |
--------------------------------------------------------------------------------
/Headers/Paint.h:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 |
10 | class Vertex : public QWidget
11 | {
12 | public:
13 | QLabel *label;
14 | void paintEvent(QPaintEvent *)
15 | {
16 | QPainter p(this);
17 | p.setPen(QPen(Qt::black, 2));
18 | p.drawEllipse(0, 0, 24, 24);
19 | }
20 | Vertex()
21 | {
22 | label = new QLabel(this);
23 | label->setGeometry(QRect(0, 0, 24, 24));
24 | label->setAlignment(Qt::AlignCenter);
25 | }
26 | };
27 |
28 | class Widget : public QWidget
29 | {
30 | public:
31 | Widget()
32 | {
33 | pixmap = QPixmap(760, 260);
34 | pixmap.fill(Qt::white);
35 | }
36 |
37 | void paintEvent(QPaintEvent *)
38 | {
39 | QPainter p(this);
40 | p.drawPixmap(0, 0, 760, 260, pixmap);
41 | }
42 |
43 | void addVertex(int n)
44 | {
45 | Vertex *v = new Vertex();
46 | v->setParent(this);
47 | v->setGeometry(QRect(14 * (n % 6) * (n % 6) + 20 * n + 40, 20 * (n % 2) * (n % 2) + 15 * n + 40, 24, 24));
48 | v->label->setText(QString::number(n));
49 | update();
50 | }
51 |
52 | void addEdge(int num1, int num2)
53 | {
54 | QPainter p(&pixmap);
55 | p.setPen(QPen(Qt::black, 2));
56 | p.drawLine(14 * (num1 % 6) * (num1 % 6) + 20 * num1 + 52, 20 * (num1 % 2) * (num1 % 2) + 15 * num1 + 52, 14 * (num2 % 6) * (num2 % 6) + 20 * num2 + 52, 20 * (num2 % 2) * (num2 % 2) + 15 * num2 + 52);
57 | update();
58 | }
59 |
60 | void delEdge(int num1, int num2)
61 | {
62 | QPainter p(&pixmap);
63 | p.setPen(QPen(Qt::white, 2));
64 | p.drawLine(14 * (num1 % 6) * (num1 % 6) + 20 * num1 + 52, 20 * (num1 % 2) * (num1 % 2) + 15 * num1 + 52, 14 * (num2 % 6) * (num2 % 6) + 20 * num2 + 52, 20 * (num2 % 2) * (num2 % 2) + 15 * num2 + 52);
65 | update();
66 | }
67 |
68 | void addActiveEdge(int num1, int num2)
69 | {
70 | QPainter p(&pixmap);
71 | p.setPen(QPen(Qt::red, 2));
72 | p.drawLine(14 * (num1 % 6) * (num1 % 6) + 20 * num1 + 52, 20 * (num1 % 2) * (num1 % 2) + 15 * num1 + 52, 14 * (num2 % 6) * (num2 % 6) + 20 * num2 + 52, 20 * (num2 % 2) * (num2 % 2) + 15 * num2 + 52);
73 | update();
74 | }
75 |
76 | private:
77 | QPixmap pixmap;
78 | };
79 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #  **校园导游系统 Qt5 图形界面版本**
2 |
3 | ## **提示**
4 |
5 | - 如果要使用命令行版本,请修改`main_console.cpp`文件并作为main函数。
6 | - 如果使用GUI版本,请移除`main_console.cpp`文件再进行编译。
7 |
8 | ## **设计流程**
9 |
10 | ### **问题描述**
11 | * 随着现代旅游业的快速发展,图文声像导游方式和实地口语导游方式都已经不能满足现阶段旅游者的需求,信息化的飞速发展造就了地理信息系统(GIS)和全球定位系统(GPS),促使消费者更多的选择自助游和自驾游等方式出行。而近年来高等院校的发展使得高校也成为了一个景点。如何让游客以最短的时间到达旅游目的地就是我的课程设计所寻求解决的问题。我打算通过最短路径算法结合图像化的表示方法,并结合实际情况以高等院校为例采集所需要的数据,在开发环境下模拟设计**导游咨询系统**,理论上使得游客可以轻松的寻找到最适合自己的旅游线路,并以此为依据合理安排自己的行程。
12 |
13 | * 用**无向网**表示校园景点平面图,图中顶点表示主要景点,存放景点的编号、名称、简介等信息,图中的边表示景点间的道路,存放路径长度等信息。要求能够回答有关景点介绍、游览路径等问题。
14 |
15 | ### **设计目标**
16 | * 查询任意景点的相关信息。
17 | * 查询图中任意两个景点间的最短路径。
18 | * 查询图中任意两个景点间的所有路径。
19 | * 增加、删除、更新有关景点和道路的信息。
20 | * 求多个景点的最佳(最短)游览路径。
21 | * 实现通过图形用户界面进行人机交互。
22 | * 实现C++语言对于文件的读写操作。
23 | * 实现其他额外的附加功能。
24 |
25 | ### **Qt简介**
26 |
27 | 
28 |
29 | > Qt 是一个著名的 C++ 应用程序框架。你并不能说它只是一个 GUI 库,因为 Qt 十分庞大,并不仅仅是 GUI 组件。使用 Qt,在一定程度上你获得的是一个“**一站式**”的解决方案:不再需要研究 STL,不再需要 C++ 的,不再需要到处去找解析 XML、连接数据库、访问网络的各种第三方库,因为 Qt 自己内置了这些技术。
30 |
31 | > Qt 和 wxWidgets 一样,也是一个标准的 C++ 库。但是它的语法类似于 Java 的 Swing,十分清晰,而且使用信号槽(signal/slot)机制,让程序看起来很明白——这也是很多人优先选择 Qt 的一个很重要的原因。不过,所谓“成也萧何,败也萧何”。这种机制虽然很清楚,但是它所带来的后果是你需要使用 Qt 的 moc 对程序进行预处理,才能够再使用标准的 make 或者 nmake 进行正常的编译,并且信号槽的调用要比普通的函数调用慢大约一个数量级(Qt 4 文档中说明该数据,但 Qt 5 尚未有官方说明)。Qt 的界面也不是原生风格的,尽管 Qt 使用 style 机制十分巧妙地模拟了原生界面。另外值得一提的是,Qt 不仅仅能够运行在桌面环境中,还可以运行在**嵌入式平台以及手机平台**。
32 |
33 | ### **算法介绍**
34 | * **迪杰斯特拉算法**
35 | > 迪杰斯特拉算法是由荷兰计算机科学家狄克斯特拉于1959年提出的,因此又叫狄克斯特拉算法。是从一个顶点到其余各顶点的最短路径算法,解决的是有向图中最短路径问题。迪杰斯特拉算法主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止。
36 |
37 | 
38 |
39 | * **弗洛伊德算法**
40 | > 在计算机科学中,Floyd-Warshall算法是一种在具有正或负边缘权重(但没有负周期)的加权图中找到最短路径的算法。算法的单个执行将找到所有顶点对之间的最短路径的长度(加权)。虽然它不返回路径本身的细节,但是可以通过对算法的简单修改来重建路径。该算法的版本也可用于查找关系R的传递闭包,或(与Schulze投票系统相关)在加权图中所有顶点对之间的最宽路径。
41 |
42 | 
43 |
44 | ### **流程分析**
45 | * 首先,启动程序,可以有左侧提供了信息录入,信息查询,路径查询以及多景点之间路径查询的功能入口。其中信息录入用来录入景点数据,信息查询用来查询景点的信息,路径查询可以帮助查询两个景点之间最佳的游览路径以及所有路径,多经典查询将这种最佳路径扩展到了多个景点之间。
46 | * 然后,根据不同的功能选项可有不同的进度,本程序提供相对完善的功能来实现这些操作。
47 |
48 | 
49 |
50 | ### **概要设计**
51 | * **存储景点信息**
52 |
53 | * 使用结构体来存储景点信息,每个景点作为一个单独的景点类对象,含有景点编号(也就是唯一标识符),景点名称和景点简介的信息。同时应该使用文件读写操作确保景点信息能够保存在本地并且可供查询。
54 | * 此外,还可以录入景点之间的路径的数据,方便计算最短路径的问题。
55 |
56 | * **维护景点信息**
57 |
58 | 通过一个特定的函数读取存储景点信息的文件,并且可以写入新的信息以及修改信息。
59 |
60 | * **单源最短路径**
61 |
62 | 使用迪杰斯特拉算法可以求单源最短路径问题(不过边的权重需要为正数)。
63 |
64 | * **两点之间最短路径**
65 |
66 | 使用弗洛伊德算法或者迪杰斯特拉算法都可以解决这个问题,具体实现时会有具体的分析。
67 |
68 | * **任意两点之间最短路径**
69 |
70 | 弗洛伊德算法是一种在具有正或负边缘权重(但没有负周期)的加权图中找到最短路径的算法。
71 |
72 | * **多景点之间最佳路径**
73 |
74 | 对于多个景点求最佳路径的问题,可以转化为先到第一个景点,再到第二个景点,最后到最后一个景点的问题,如果途中经过需要经过的某个节点,就将其标记为已访问,最后可以得到一条路径,本质上是对弗洛伊德算法进行改进。
75 |
76 | * **图形界面**
77 |
78 | 使用Qt设计师进行图形界面的开发,同时加入信号与槽可以方便使用C++函数进行调用与对接。
79 |
80 | ### **编译方式**
81 | * 使用**qmake -project**命令来生成pro工程文件,这时可以看到Qt工程目录中已经生成了*.pro文件,此文件与项目文件夹同名。
82 |
83 | 
84 |
85 | * 在有些版本的Qt中,需要添加widgets模块。因为源文件中使用到的类都包含在这个模块中,例如:main函数中用到的QApplication类。如果你的Qt版本是Qt4,包含这个模块可能会出错,所以为了保证与Qt4的兼容性,需要添加代码。
86 |
87 | 
88 |
89 | * 在命令行输入**qmake -工程名.pro**,会自动生成makefile文件以及.stash文件,后续只需要一条命令就可以编译完成。
90 |
91 | 
92 |
93 | * 命令行输入**make**,g++编译器就会自动完成编译生成最终的二进制文件,然后输入 **./工程名** 就可以在Linux下运行编译好的Qt程序。
94 |
95 | ### **控制台版本示例**
96 | * **范例地图**
97 |
98 | 以山东大学软件园校区地图为例,进行简单的校园导游系统测试。
99 |
100 | 
101 |
102 | * **主界面**
103 |
104 | 
105 |
106 | * **查询景点信息**
107 |
108 | * 要想录入信息,只需要按照控制台程序提示的操作编号,输入1,再依次输入景点的编号名称以及简介信息即可录入景点信息。例如录入编号为2的教学楼的景点信息,只需要进行图示操作。
109 | * 查询正门景点的景点信息,输入编号1,就可以看到信息。
110 |
111 | 
112 |
113 | * **查询路径**
114 |
115 | * 以正门景点为例,可以看到在景点1正门与景点2教学楼之间存在一条长度为9的路径,按照提示输入编号3,然后依次输入1 2 9,即可将这条路径录入。
116 | * 在景点1正门与景点2教学楼之间存在多条路径,其中从1->2这条路径是最短的,可以通过查询最短路径的操作来查看这条路径。
117 |
118 | 
119 |
120 | ### **图形界面版本示例**
121 |
122 | * **主界面**
123 |
124 | 
125 |
126 | * **录入信息**
127 |
128 | * 在图形界面程序中录入信息,只需要点击信息录入按钮,在右侧对应的位置填写好对应的项目,再点击录入信息按钮即可完成录入。
129 |
130 | * 在图形界面程序中录入道路信息,仍然需要点击信息录入按钮,在右侧对应的位置填写好对应的项目,再点击录入道路按钮即可完成录入。值得一提的是,录入景点信息的界面与录入道路信息的界面,为了方便起见,特意放在了一起进行处理。
131 |
132 | * 在本图形界面程序中,景点以及道路信息的修改仍然与控制台程序相同,采用覆盖修改的方法,因此,只需要按照录入景点道路信息的办法覆盖录入就可以完成操作,示意图如下所示。
133 |
134 | 
135 |
136 | * **查询信息**
137 |
138 | * 点击左侧快捷入口的信息查询按钮,输入景点编号,例如正门的景点编号1,点击查询景点信息按钮,就可以在下方的文本框中输出景点的详细信息。
139 |
140 | 
141 |
142 | * **查询路径**
143 |
144 | * 点击左侧的所有路径查询按钮,输入路径起点和终点就可以进行查询。例如,我们看到在正门景点1与科研楼景点3之间存在两条路径,可以通过GUI程序查询这两条路径。
145 |
146 | 
147 |
--------------------------------------------------------------------------------
/Resources/about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/about.png
--------------------------------------------------------------------------------
/Resources/allroad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/allroad.png
--------------------------------------------------------------------------------
/Resources/auth.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/auth.jpg
--------------------------------------------------------------------------------
/Resources/findroad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/findroad.png
--------------------------------------------------------------------------------
/Resources/img/Dijkstra.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/Dijkstra.png
--------------------------------------------------------------------------------
/Resources/img/Floyd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/Floyd.png
--------------------------------------------------------------------------------
/Resources/img/Progress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/Progress.png
--------------------------------------------------------------------------------
/Resources/img/Qt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/Qt.png
--------------------------------------------------------------------------------
/Resources/img/build1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/build1.png
--------------------------------------------------------------------------------
/Resources/img/build2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/build2.png
--------------------------------------------------------------------------------
/Resources/img/build3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/build3.png
--------------------------------------------------------------------------------
/Resources/img/console.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/console.png
--------------------------------------------------------------------------------
/Resources/img/demo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/demo1.png
--------------------------------------------------------------------------------
/Resources/img/demo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/demo2.png
--------------------------------------------------------------------------------
/Resources/img/demo3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/demo3.png
--------------------------------------------------------------------------------
/Resources/img/demo4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/demo4.png
--------------------------------------------------------------------------------
/Resources/img/demo5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/demo5.png
--------------------------------------------------------------------------------
/Resources/img/gui.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/gui.png
--------------------------------------------------------------------------------
/Resources/img/main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/main.png
--------------------------------------------------------------------------------
/Resources/img/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/img/map.png
--------------------------------------------------------------------------------
/Resources/main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/main.png
--------------------------------------------------------------------------------
/Resources/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/map.png
--------------------------------------------------------------------------------
/Resources/map2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/map2.png
--------------------------------------------------------------------------------
/Resources/multiplaces.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/multiplaces.png
--------------------------------------------------------------------------------
/Resources/sdu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/sdu.png
--------------------------------------------------------------------------------
/Resources/searchinfo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/searchinfo.png
--------------------------------------------------------------------------------
/Resources/writeinfo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/Resources/writeinfo.png
--------------------------------------------------------------------------------
/main.cpp:
--------------------------------------------------------------------------------
1 | #include "GuideWindow.cpp"
2 |
3 | int main(int argc, char *argv[])
4 | {
5 | QApplication a(argc, argv);
6 | QMainWindow window;
7 | Ui_GuideWindow ui;
8 | ui.setupUi(&window);
9 | ui.setLeftEvents();
10 | ui.setMainEvents();
11 | window.show();
12 | return a.exec();
13 | }
14 |
--------------------------------------------------------------------------------
/main_console.cpp:
--------------------------------------------------------------------------------
1 | #include "Graph.cpp"
2 | using namespace std;
3 |
4 | int console()
5 | {
6 | Graph g;
7 | string result = "";
8 | cout << "##############################" << endl
9 | << "校园导游系统 Console 版本 v1.3" << endl
10 | << "功能如下:" << endl
11 | << "1:输入景点信息(编号,名称,简介)" << endl
12 | << "2:查询景点信息(编号)" << endl
13 | << "3:输入路径(编号1,编号2,权重)" << endl
14 | << "4:查询最短路径(编号1,编号2)" << endl
15 | << "5:查询所有路径(编号1,编号2)" << endl
16 | << "6:多景点查询(三景点,编号1,编号2,编号3)" << endl
17 | << "7:关于" << endl
18 | << "0:退出" << endl
19 | << "##############################" << endl;
20 | while (true)
21 | {
22 | int c;
23 | cin >> c;
24 | if (c == 0)
25 | return -1;
26 | else if (c == 7)
27 | {
28 | cout << "##############################" << endl
29 | << "关于" << endl
30 | << "校园导游系统 Console 版本 v1.3" << endl
31 | << "本程序由GitHub用户 iamywang 独立开发" << endl
32 | << "为数据结构课程设计题目,提供校园导游服务" << endl
33 | << "遵循 GNU General Public License 3.0 通用公共许可协议" << endl
34 | << "##############################" << endl;
35 | }
36 | else if (c == 1)
37 | {
38 | int num;
39 | string name, info;
40 | cin >> num >> name >> info;
41 | g.setInfo(num, name, info);
42 | }
43 | else if (c == 2)
44 | {
45 | int num;
46 | cin >> num;
47 | cout << g.getInfo(num);
48 | }
49 | else if (c == 3)
50 | {
51 | int x, y, d;
52 | cin >> x >> y >> d;
53 | g.setPath(x, y, d);
54 | }
55 | else if (c == 4)
56 | {
57 | int x, y;
58 | cin >> x >> y;
59 | result = "";
60 | g.getPath(x, y, result);
61 | cout << "##############################" << endl
62 | << "从 " << g.vertex[x].place << " 到 " << g.vertex[y].place << " 的最短路径为:"
63 | << result << endl
64 | << "##############################" << endl;
65 | }
66 | else if (c == 5)
67 | {
68 | int x, y;
69 | cin >> x >> y;
70 | result = "";
71 | g.getAllPath(x, y, true, result);
72 | cout << "##############################" << endl
73 | << "从 " << g.vertex[x].place << " 到 " << g.vertex[y].place << " 的所有路径为:" << endl
74 | << result
75 | << "##############################" << endl;
76 | }
77 | else if (c == 6)
78 | {
79 | int x, y, z;
80 | cin >> x >> y >> z;
81 | result = "";
82 | g.multiPath(x, y, z, result);
83 | cout << "##############################" << endl
84 | << "从 " << g.vertex[x].place << " 经过 " << g.vertex[y].place << " 到 " << g.vertex[z].place << " 的最短路径为:"
85 | << result << endl
86 | << "##############################" << endl;
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/数据结构课程设计题目.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iamywang/Campus-Guide-System/b9be2d02126ee118e3af6054e9155af4e83528a2/数据结构课程设计题目.doc
--------------------------------------------------------------------------------