-
Notifications
You must be signed in to change notification settings - Fork 8
/
LinkageMechanismLaboratory.rc
368 lines (322 loc) · 24.6 KB
/
LinkageMechanismLaboratory.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// 中文(简体,中国) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDR_MENU_MAIN MENU
BEGIN
POPUP "文件(&F)"
BEGIN
MENUITEM "新建", ID_NEW
MENUITEM "打开", ID_OPEN
MENUITEM "保存", ID_SAVE
MENUITEM "另存为", ID_SAVEAS
MENUITEM SEPARATOR
MENUITEM "退出", ID_EXIT
END
POPUP "工具(&T)"
BEGIN
MENUITEM "选择", ID_SELECT
MENUITEM "拖动", ID_DRAG
MENUITEM "刷新", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "机架", ID_DRAW_FRAME
MENUITEM "连杆", ID_DRAW_BAR
MENUITEM "多段杆", ID_DRAW_POLYLINE_BAR
MENUITEM "线", ID_DRAW_LINE
MENUITEM "滑道", ID_DRAW_SLIDEWAY
MENUITEM "滑块", 40043
MENUITEM SEPARATOR
MENUITEM "重合", ID_DRAW_COINCIDE
MENUITEM "共线", ID_DRAW_COLINEAR
MENUITEM SEPARATOR
MENUITEM "设置原动件", ID_SET_DRIVER
MENUITEM SEPARATOR
MENUITEM "选项", ID_OPTION
END
POPUP "分析(&A)"
BEGIN
MENUITEM "分析机构", ID_ANALYZE_MECHANISM
MENUITEM "绘制位置/速度/加速度曲线", ID_DRAW_GRAPH, INACTIVE
MENUITEM "动画与测量", ID_ANIMATION
MENUITEM SEPARATOR
MENUITEM "保存当前截图", ID_SAVE_CAPTURE
END
POPUP "视图(&V)"
BEGIN
MENUITEM "缩放视图至合适", ID_VIEW_SUITABLE
END
POPUP "窗口(&W)"
BEGIN
MENUITEM "显示控制台", ID_SHOW_CONSOLE
END
POPUP "帮助(&H)"
BEGIN
MENUITEM "关于(&A)", ID_ABOUT
END
END
IDR_MENU_RIGHT MENU
BEGIN
POPUP "删除"
BEGIN
MENUITEM "设为原动件", ID_SET_DRIVER
MENUITEM "删除", ID_DELETE_ELEMENT
END
END
IDR_MENU_ANIMATION MENU
BEGIN
POPUP "文件"
BEGIN
MENUITEM "保存为GIF动画", ID_SAVE_AS_GIF
END
END
IDR_MENU_GRAPH MENU
BEGIN
POPUP "文件"
BEGIN
MENUITEM "保存为图片", ID_SAVE_AS_PICTURE
MENUITEM "保存为csv文件", ID_SAVE_AS_CSV
END
POPUP "视图"
BEGIN
MENUITEM "标题", ID_MENU_GRAPH_SHOW_TITLE, CHECKED
MENUITEM "图例", 40176, CHECKED
MENUITEM "网格线", ID_MENU_GRAPH_SHOW_GRID, CHECKED
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
IDR_ACCELERATOR_MAIN ACCELERATORS
BEGIN
"N", ID_NEW, VIRTKEY, CONTROL, NOINVERT
"S", ID_SAVE, VIRTKEY, CONTROL, NOINVERT
END
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDR_TOOLBAR_MAIN BITMAP "Resource\\toolbar_mechanism.bmp"
IDR_BITMAP_SHOW_REAL BITMAP "Resource\\bitmap_show_real.bmp"
IDR_BITMAP_SHOW_SIMPLE BITMAP "Resource\\bitmap_show_simple.bmp"
IDB_BITMAP_THEME_BRIGHT BITMAP "Resource\\BITMAP_THEME_BRIGHT.bmp"
IDB_BITMAP_THEME_DARK BITMAP "Resource\\BITMAP_THEME_DARK.bmp"
IDB_BITMAP_SCHOOL BITMAP "Resource\\BITMAP_SCHOOL.bmp"
IDB_BITMAP_AXES_HIDE BITMAP "Resource\\BITMAP_AXES_HIDE.bmp"
IDB_BITMAP_AXES_SHOW BITMAP "Resource\\BITMAP_AXES_SHOW.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON ICON "Resource\\Icon.ico"
IDI_ICON16 ICON "Resource\\Icon_16.ico"
IDI_ICON_FILE ICON "Resource\\file_icon.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOG_ADD_DRIVER DIALOGEX 0, 0, 431, 198
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "设置原动件"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "确定",IDOK,319,177,50,14
PUSHBUTTON "取消",IDCANCEL,374,177,50,14
GROUPBOX "类型",IDC_STATIC,7,7,152,41
COMBOBOX IDC_COMBO_DRIVER_TYPE,23,23,67,48,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
GROUPBOX "曲线",IDC_STATIC,169,7,255,164
GROUPBOX "值",IDC_STATIC,7,54,152,116
COMBOBOX IDC_COMBO_EXPR_TYPE,29,70,66,53,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT_FORMULAR_R,65,148,88,14,ES_AUTOHSCROLL | ES_READONLY
CONTROL "位移",IDC_CHECK_D,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,179,21,32,10
CONTROL "速度",IDC_CHECK_V,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,282,21,33,10
CONTROL "加速度",IDC_CHECK_A,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,381,21,36,10
EDITTEXT IDC_EDIT_FORMULAR_L,21,147,23,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "=",IDC_STATIC,52,149,8,8,WS_DISABLED
EDITTEXT IDC_EDIT_A,56,87,49,14,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_B,56,106,50,14,ES_AUTOHSCROLL
LTEXT "A",IDC_STATIC_A,31,90,8,8
LTEXT "B",IDC_STATIC_B,32,108,8,8
LTEXT "Static",IDC_STATIC_DRIVER_UNIT,104,24,34,8
LTEXT "Static",IDC_STATIC_GRAPH,178,37,239,125,NOT WS_VISIBLE | WS_BORDER
PUSHBUTTON "设置当前位置为起始位置",IDC_BUTTON_SET_NOW_POS_IS_ORIGIN,20,131,132,14
END
IDD_DIALOG_OPTION DIALOGEX 0, 0, 309, 176
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "选项"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "确定",IDOK,145,155,50,14
PUSHBUTTON "取消",IDCANCEL,199,155,50,14
CONTROL "注册文件关联(.lml)",IDC_CHECK_REG_FILE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,27,24,85,10
PUSHBUTTON "应用",IDC_BUTTON_APPLY,252,155,50,14
CONTROL "显示校徽",IDC_CHECK_SHOW_SCHOOL_LOGO,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,27,50,85,10
CONTROL "显示网格",IDC_CHECK_SHOW_GRID,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,27,71,85,10
END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 217, 130
STYLE DS_SETFONT | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "关于"
FONT 9, "宋体", 400, 0, 0x0
BEGIN
DEFPUSHBUTTON "确定",IDOK,83,108,50,14
CONTROL IDB_BITMAP_SCHOOL,IDC_STATIC,"Static",SS_BITMAP | SS_REALSIZEIMAGE | SS_SUNKEN,7,7,202,61
LTEXT "作者:Tom Willow",IDC_STATIC,76,76,65,8
LTEXT "E-mail: [email protected]",IDC_STATIC,60,92,97,8
END
IDD_DIALOG_ANIMATION DIALOGEX 0, 0, 309, 209
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "动画与测量"
MENU IDR_MENU_ANIMATION
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_SLIDER_TIME,"msctls_trackbar32",WS_TABSTOP,20,153,265,15
PUSHBUTTON "开始分析",IDC_BUTTON_RUN,225,122,50,14
GROUPBOX "",IDC_STATIC,17,89,272,52
EDITTEXT IDC_EDIT_TIME_START,95,102,40,14,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_TIME_END,167,102,40,14,ES_RIGHT | ES_AUTOHSCROLL
LTEXT "s",IDC_STATIC,139,107,8,8
LTEXT "s",IDC_STATIC,213,106,8,8
LTEXT "-",IDC_STATIC,153,105,8,8
LTEXT "时间范围(t):",IDC_STATIC,43,105,50,8
LTEXT "帧率:",IDC_STATIC,42,123,50,8
EDITTEXT IDC_EDIT_FPS,95,120,40,14,ES_RIGHT | ES_AUTOHSCROLL
PUSHBUTTON "⏵",IDC_BUTTON_PLAY,24,174,15,14
PUSHBUTTON "⏮",IDC_BUTTON_FIRST_FRAME,46,174,15,14
PUSHBUTTON "⏭",IDC_BUTTON_LAST_FRAME,112,174,15,14
PUSHBUTTON "⏪",IDC_BUTTON_PREV_FRAME,68,174,15,14
PUSHBUTTON "⏩",IDC_BUTTON_NEXT_FRAME,90,174,15,14
CONTROL "循环",IDC_CHECK_LOOP,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP,134,174,36,14
EDITTEXT IDC_EDIT_TIME,218,182,62,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
EDITTEXT IDC_EDIT_FRAME,218,170,62,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
LISTBOX IDC_LIST_LEFT,19,23,86,60,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
PUSHBUTTON ">>测量位移>>",IDC_BUTTON_MESURE_P,120,28,65,14
LISTBOX IDC_LIST_RIGHT,198,23,91,59,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP
PUSHBUTTON ">>测量速度>>",IDC_BUTTON_MESURE_V,120,41,65,14
PUSHBUTTON ">>测量加速度>>",IDC_BUTTON_MESURE_A,120,54,65,14
PUSHBUTTON "<<移除测量<<",IDC_BUTTON_REMOVE_MESURE,120,67,65,14
LTEXT "有效节点:",IDC_STATIC,20,14,41,8
LTEXT "测量节点:",IDC_STATIC,204,14,41,8
PUSHBUTTON "显示曲线",IDC_BUTTON_SHOW_GRAPH,175,174,38,14
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG_ADD_DRIVER, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 424
TOPMARGIN, 7
BOTTOMMARGIN, 191
END
IDD_DIALOG_OPTION, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 302
TOPMARGIN, 7
BOTTOMMARGIN, 169
END
IDD_DIALOG_ABOUT, DIALOG
BEGIN
RIGHTMARGIN, 215
BOTTOMMARGIN, 129
END
IDD_DIALOG_ANIMATION, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 302
TOPMARGIN, 7
BOTTOMMARGIN, 202
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// PNG
//
IDB_PNG_SCHOOL PNG "Resource\\PNG_SCHOOL.png"
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,3,0,0
PRODUCTVERSION 0,3,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080404b0"
BEGIN
VALUE "CompanyName", "西南交通大学"
VALUE "FileDescription", "作者:Tom Willow"
VALUE "FileVersion", "0.3.0.0"
VALUE "InternalName", "Linkage Mechanism Laboratory.exe"
VALUE "LegalCopyright", "Copyright (C) 2018"
VALUE "OriginalFilename", "Linkage Mechanism Laboratory.exe"
VALUE "ProductName", "Linkage Mechanism Laboratory"
VALUE "ProductVersion", "0.3.0.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x804, 1200
END
END
#endif // 中文(简体,中国) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED