-
Notifications
You must be signed in to change notification settings - Fork 2
/
DS Helper.rc
330 lines (285 loc) · 22.1 KB
/
DS Helper.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
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#include "afxres.h"
#include "verrsrc.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// Russian (Russia) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#include ""afxres.h""\r\n"
"#include ""verrsrc.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"LANGUAGE 9, 1\r\n"
"#include ""res\\DS Helper.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#if !defined(_AFXDLL)\r\n"
"#include ""afxribbon.rc"" // MFC ribbon and control bar resources\r\n"
"#endif\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON "res\\DS Helper.ico"
IDI_ICON_FOLDER ICON "res\\folder.ico"
IDI_ICON_UP ICON "res\\Up.ico"
IDI_ICON_DOWN ICON "res\\Down.ico"
IDI_ICON_DOWNLOAD ICON "res\\download.ico"
IDI_ICON_EMPTY ICON "res\\empty.ico"
IDI_ICON_COMPLETED ICON "res\\completed.ico"
IDI_ICON_PAUSE ICON "res\\pause.ico"
IDI_ICON_FILE ICON "res\\file.ico"
IDI_ICON_PLAY ICON "res\\play.ico"
IDI_ICON_DELETE ICON "res\\delete.ico"
IDI_ICON_TIME ICON "res\\time.ico"
IDI_ICON_ATTENTION ICON "res\\attention.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOG_INPUTBOX DIALOGEX 0, 0, 367, 52
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Type a value"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
EDITTEXT IDC_EDIT_VALUE,4,18,360,12,ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,260,34,50,14
PUSHBUTTON "Cancel",IDCANCEL,314,34,50,14
LTEXT "Type a path:",IDC_STATIC_TEXT,4,3,360,10
END
IDD_DIALOG_VIEW_EDIT_ON_SYNO DIALOGEX 0, 0, 355, 240
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Folder Tree on Synology DS"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
PUSHBUTTON "New folder",IDC_BUTTON_CREATE_FOLDER_ON_SYNO,4,2,50,14
PUSHBUTTON "Add the selected folder to the list of predefined pathes",IDC_BUTTON_ADD_CURRENT_TO_PREDEF,55,2,181,14
CONTROL "",IDC_TREE_SYNO,"SysTreeView32",TVS_HASBUTTONS | TVS_LINESATROOT | TVS_SHOWSELALWAYS | WS_BORDER | WS_HSCROLL | WS_TABSTOP,4,18,348,218
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG_INPUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 360
TOPMARGIN, 7
BOTTOMMARGIN, 45
END
IDD_DIALOG_VIEW_EDIT_ON_SYNO, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 348
TOPMARGIN, 7
BOTTOMMARGIN, 233
END
END
#endif // APSTUDIO_INVOKED
#endif // Russian (Russia) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 241, 85
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About DS Helper"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,14,14,20,20
LTEXT "DownloadStation Helper, Version 1.23",IDC_STATIC,42,14,122,8,SS_NOPREFIX
LTEXT "Copyright (C) 2017 xaozai",IDC_STATIC,42,26,192,8
DEFPUSHBUTTON "OK",IDOK,184,64,50,14,WS_GROUP
CONTROL "<a>License</a>",IDC_SYSLINK_LICENSE,"SysLink",WS_TABSTOP,42,39,24,8
CONTROL "<a>https://github.com/xaozai/DS-Helper/</a>",IDC_SYSLINK_HOMEPAGE,
"SysLink",WS_TABSTOP,42,49,122,8
END
IDD_DSHELPER_DIALOG DIALOGEX 0, 0, 363, 224
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "DownloadStation Helper"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
COMBOBOX IDC_COMBO_PATH,48,70,275,30,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Edit",IDC_BUTTON_EDIT_PATHES,325,69,27,14
DEFPUSHBUTTON "Add",IDC_BUTTON_ADD_TASK,325,85,27,14
COMBOBOX IDC_COMBO_PROTOCOL,48,7,51,30,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT_ADDRESS,137,7,165,13,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_PORT,323,7,29,13,ES_AUTOHSCROLL | ES_NUMBER
EDITTEXT IDC_EDIT_USERNAME,48,38,305,14,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_PASSWORD,48,54,275,14,ES_PASSWORD | ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_TASK,48,85,258,14,ES_AUTOHSCROLL | NOT WS_TABSTOP
CONTROL "<a>Open DownLoadStation WEB UI</a>",IDC_SYSLINK_OPEN_DS_WEB,
"SysLink",WS_TABSTOP,128,103,102,9
LTEXT "Username:",IDC_LABEL_USERNAME,7,40,35,10
LTEXT "Pasword:",IDC_LABEL_PASSWORD,7,56,31,10
CONTROL "Address:",IDC_LABEL_ADDRESS,"Static",SS_SIMPLE | WS_GROUP,107,9,29,8
LTEXT "Destination:",IDC_LABEL_PATH,7,72,37,8
CONTROL "Store",IDC_CHECK_STORE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,325,56,31,10
PUSHBUTTON "Open",IDC_BUTTON_OPEN_FILE,307,85,17,14,BS_ICON | BS_CENTER | BS_VCENTER
LTEXT "Port:",IDC_STATIC_PORT,305,9,15,8
LTEXT "Protocol:",IDC_STATIC_PROTOCOL,7,9,30,8
LTEXT "Task:",IDC_STATIC_TASK,7,88,27,8
CONTROL "Show the tasklist (downloading | paused | completed)",IDC_CHECK_SHOW_ACTIVE_TASKS,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,115,187,10
CONTROL "",IDC_LIST_ACTIVE_TASKS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOSORTHEADER | WS_DISABLED | WS_BORDER | WS_TABSTOP,7,132,345,85
CONTROL "Use a socks-proxy",IDC_CHECK_USE_PROXY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,48,24,71,10
EDITTEXT IDC_EDIT_PROXY_ADDRESS,137,22,165,13,ES_AUTOHSCROLL | WS_DISABLED
EDITTEXT IDC_EDIT_PROXY_PORT,324,22,29,13,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
CTEXT ":",IDC_STATIC_PROXY_PORT,306,25,15,8
END
IDD_DIALOG_EDIT_PATHES DIALOGEX 0, 0, 309, 217
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Predefined pathes"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,202,196,50,14
PUSHBUTTON "Cancel",IDCANCEL,256,196,50,14
LISTBOX IDC_LIST_PATHES,4,18,302,174,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "+",IDC_BUTTON_ADD_PATH,4,2,18,12
PUSHBUTTON "–",IDC_BUTTON_REMOVE_PATH,24,2,18,12
PUSHBUTTON "↑",IDC_BUTTON_MOVE_UP,44,2,18,12,BS_ICON
PUSHBUTTON "↓",IDC_BUTTON_MOVE_DOWN,64,2,18,12,BS_ICON
PUSHBUTTON "View and create on Syno",IDC_BUTTON_VIEW_EDIT_ON_SYNO,84,2,90,12
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 234
TOPMARGIN, 7
BOTTOMMARGIN, 78
END
IDD_DSHELPER_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 356
TOPMARGIN, 7
BOTTOMMARGIN, 217
END
IDD_DIALOG_EDIT_PATHES, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 302
TOPMARGIN, 7
BOTTOMMARGIN, 210
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,2,3,0
PRODUCTVERSION 1,2,3,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "xaozai"
VALUE "FileDescription", "DownloadStation Helper"
VALUE "FileVersion", "1.2.3.0"
VALUE "InternalName", "DS Helper.exe"
VALUE "OriginalFilename", "DS Helper.exe"
VALUE "ProductName", "DownloadStation Helper"
VALUE "ProductVersion", "1.2.3.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_ABOUTBOX "&About DS Helper..."
END
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#include "res\DS Helper.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#if !defined(_AFXDLL)
#include "afxribbon.rc" // MFC ribbon and control bar resources
#endif
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED