Skip to content

Commit 15e651f

Browse files
author
ozok
committed
added: program title constant
1 parent 025ccfe commit 15e651f

File tree

5 files changed

+25
-81
lines changed

5 files changed

+25
-81
lines changed

Interface/UnitMainForm.dfm

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ object MainForm: TMainForm
2929
BevelOuter = bvNone
3030
Caption = 'TopPanel'
3131
TabOrder = 0
32-
ExplicitWidth = 871
33-
ExplicitHeight = 216
3432
object LeftPanel: TsPanel
3533
Left = 0
3634
Top = 60
@@ -39,16 +37,13 @@ object MainForm: TMainForm
3937
Align = alClient
4038
BevelOuter = bvNone
4139
TabOrder = 0
42-
ExplicitWidth = 871
43-
ExplicitHeight = 156
4440
object JobsList: TsListView
4541
Left = 0
4642
Top = 25
4743
Width = 1043
4844
Height = 227
4945
Align = alClient
5046
Checkboxes = True
51-
Color = 16119285
5247
Columns = <
5348
item
5449
Caption = 'Project Name'
@@ -76,7 +71,7 @@ object MainForm: TMainForm
7671
Width = 100
7772
end>
7873
Font.Charset = DEFAULT_CHARSET
79-
Font.Color = clBlack
74+
Font.Color = clWindowText
8075
Font.Height = -11
8176
Font.Name = 'Tahoma'
8277
Font.Style = []
@@ -95,7 +90,6 @@ object MainForm: TMainForm
9590
Height = 25
9691
Align = alTop
9792
TabOrder = 1
98-
ExplicitWidth = 871
9993
object SelectAllLabel: TsLabel
10094
AlignWithMargins = True
10195
Left = 4
@@ -164,7 +158,6 @@ object MainForm: TMainForm
164158
BevelOuter = bvNone
165159
TabOrder = 1
166160
SkinData.SkinSection = 'TOOLBAR'
167-
ExplicitWidth = 871
168161
object RunJobsBtn: TsButton
169162
Left = 933
170163
Top = 0
@@ -179,7 +172,6 @@ object MainForm: TMainForm
179172
TabOrder = 0
180173
OnClick = RunJobsBtnClick
181174
SkinData.SkinSection = 'TOOLBUTTON'
182-
ExplicitLeft = 746
183175
end
184176
object AddNewProjectBtn: TsButton
185177
Left = 110
@@ -195,7 +187,6 @@ object MainForm: TMainForm
195187
TabOrder = 1
196188
OnClick = AddNewProjectBtnClick
197189
SkinData.SkinSection = 'TOOLBUTTON'
198-
ExplicitLeft = 125
199190
end
200191
object StopBtn: TsButton
201192
Left = 823
@@ -212,7 +203,6 @@ object MainForm: TMainForm
212203
TabOrder = 2
213204
OnClick = StopBtnClick
214205
SkinData.SkinSection = 'TOOLBUTTON'
215-
ExplicitLeft = 636
216206
end
217207
object EditProjectBtn: TsButton
218208
Left = 0
@@ -244,7 +234,6 @@ object MainForm: TMainForm
244234
TabOrder = 4
245235
OnClick = ConfEmailBtnClick
246236
SkinData.SkinSection = 'TOOLBUTTON'
247-
ExplicitLeft = 250
248237
end
249238
end
250239
end
@@ -255,16 +244,13 @@ object MainForm: TMainForm
255244
Height = 299
256245
Align = alBottom
257246
TabOrder = 1
258-
ExplicitTop = 216
259-
ExplicitWidth = 871
260247
object StateLabel: TsLabel
261248
AlignWithMargins = True
262249
Left = 4
263250
Top = 207
264251
Width = 1035
265252
Height = 13
266253
Align = alBottom
267-
ExplicitTop = 210
268254
ExplicitWidth = 3
269255
end
270256
object ProjectNameLabel: TsLabel
@@ -274,7 +260,6 @@ object MainForm: TMainForm
274260
Width = 1035
275261
Height = 13
276262
Align = alBottom
277-
ExplicitTop = 191
278263
ExplicitWidth = 3
279264
end
280265
object ChangesLabel: TsLabel
@@ -284,7 +269,6 @@ object MainForm: TMainForm
284269
Width = 1035
285270
Height = 13
286271
Align = alBottom
287-
ExplicitTop = 229
288272
ExplicitWidth = 3
289273
end
290274
object SpeedLabel: TsLabel
@@ -294,7 +278,6 @@ object MainForm: TMainForm
294278
Width = 1035
295279
Height = 13
296280
Align = alBottom
297-
ExplicitTop = 248
298281
ExplicitWidth = 3
299282
end
300283
object TimeLabel: TsLabel
@@ -304,7 +287,6 @@ object MainForm: TMainForm
304287
Width = 1035
305288
Height = 13
306289
Align = alBottom
307-
ExplicitTop = 267
308290
ExplicitWidth = 3
309291
end
310292
object ProgressBar1: TsGauge
@@ -327,20 +309,16 @@ object MainForm: TMainForm
327309
ActivePage = TabSheet1
328310
Align = alClient
329311
TabOrder = 0
330-
ExplicitHeight = 187
331312
object TabSheet1: TsTabSheet
332313
Caption = 'General Log'
333314
SkinData.CustomColor = False
334315
SkinData.CustomFont = False
335-
ExplicitWidth = 861
336-
ExplicitHeight = 159
337316
object LogList: TsListView
338317
Left = 0
339318
Top = 0
340319
Width = 1033
341320
Height = 156
342321
Align = alClient
343-
Color = 16119285
344322
Columns = <
345323
item
346324
Width = 125
@@ -349,7 +327,7 @@ object MainForm: TMainForm
349327
Width = 500
350328
end>
351329
Font.Charset = DEFAULT_CHARSET
352-
Font.Color = clBlack
330+
Font.Color = clWindowText
353331
Font.Height = -11
354332
Font.Name = 'Tahoma'
355333
Font.Style = []
@@ -363,31 +341,27 @@ object MainForm: TMainForm
363341
TabOrder = 0
364342
ViewStyle = vsReport
365343
OnData = LogListData
366-
ExplicitHeight = 159
367344
end
368345
end
369346
object TabSheet2: TsTabSheet
370347
Caption = 'Error Log'
371348
ImageIndex = 1
372349
SkinData.CustomColor = False
373350
SkinData.CustomFont = False
374-
ExplicitWidth = 861
375-
ExplicitHeight = 159
376351
object ErrorLog: TsListView
377352
Left = 0
378353
Top = 0
379354
Width = 1033
380355
Height = 156
381356
Align = alClient
382-
Color = 16119285
383357
Columns = <
384358
item
385359
Width = 125
386360
end
387361
item
388362
end>
389363
Font.Charset = DEFAULT_CHARSET
390-
Font.Color = clBlack
364+
Font.Color = clWindowText
391365
Font.Height = -11
392366
Font.Name = 'Tahoma'
393367
Font.Style = []
@@ -401,31 +375,27 @@ object MainForm: TMainForm
401375
TabOrder = 0
402376
ViewStyle = vsReport
403377
OnData = ErrorLogData
404-
ExplicitHeight = 159
405378
end
406379
end
407380
object TabSheet3: TsTabSheet
408381
Caption = 'Full Log'
409382
ImageIndex = 2
410383
SkinData.CustomColor = False
411384
SkinData.CustomFont = False
412-
ExplicitWidth = 861
413-
ExplicitHeight = 159
414385
object FullLogList: TsListView
415386
Left = 0
416387
Top = 0
417388
Width = 1033
418389
Height = 156
419390
Align = alClient
420-
Color = 16119285
421391
Columns = <
422392
item
423393
Width = 125
424394
end
425395
item
426396
end>
427397
Font.Charset = DEFAULT_CHARSET
428-
Font.Color = clBlack
398+
Font.Color = clWindowText
429399
Font.Height = -11
430400
Font.Name = 'Tahoma'
431401
Font.Style = []
@@ -439,7 +409,6 @@ object MainForm: TMainForm
439409
TabOrder = 0
440410
ViewStyle = vsReport
441411
OnData = FullLogListData
442-
ExplicitHeight = 159
443412
end
444413
end
445414
end
@@ -526,6 +495,7 @@ object MainForm: TMainForm
526495
Top = 172
527496
end
528497
object sSkinManager1: TsSkinManager
498+
Active = False
529499
Brightness = -10
530500
InternalSkins = <
531501
item
@@ -1560,7 +1530,7 @@ object MainForm: TMainForm
15601530
MenuSupport.ExtraLineFont.Style = []
15611531
SkinDirectory = 'H:\delphi\Skins'
15621532
SkinName = 'Office2007 Black (internal)'
1563-
SkinInfo = '10'
1533+
SkinInfo = 'N/A'
15641534
ThirdParty.ThirdEdits = ' '
15651535
ThirdParty.ThirdButtons = 'TButton'
15661536
ThirdParty.ThirdBitBtns = ' '

Interface/UnitMainForm.pas

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ TMainForm = class(TForm)
160160
var
161161
MainForm: TMainForm;
162162

163+
const
164+
PROGRAM_TITLE = 'OneWay Backup - Early Beta';
165+
163166
implementation
164167

165168
{$R *.dfm}
@@ -297,7 +300,7 @@ procedure TMainForm.EnableUI;
297300
TimeLabel.Caption := '';
298301
ProgressBar1.Progress := 0;
299302
Taskbar1.ProgressValue := 0;
300-
Self.Caption := 'OneWay Backup';
303+
Self.Caption := PROGRAM_TITLE;
301304
end;
302305

303306
procedure TMainForm.ErrorLogData(Sender: TObject; Item: TListItem);
@@ -380,6 +383,7 @@ procedure TMainForm.FormShow(Sender: TObject);
380383
I: Integer;
381384
LParamStr: string;
382385
begin
386+
Self.Caption := PROGRAM_TITLE;
383387
LoadProjects;
384388

385389
FAll := False;
@@ -1406,7 +1410,7 @@ procedure TMainForm.UpdateProgress;
14061410
if FMaxProgress > 0 then
14071411
begin
14081412
LProgress := (10000 * FProgress) / FMaxProgress;
1409-
Self.Caption := Format('%.2f', [LProgress/100]) + '% [OneWay Backup]';
1413+
Self.Caption := Format('%.2f', [LProgress/100]) + '% [' + PROGRAM_TITLE + ']';
14101414
end;
14111415
end;
14121416

0 commit comments

Comments
 (0)