Skip to content

Commit 3d215e0

Browse files
committed
FrameLogs copy to clipboard button added.
1 parent 8c211ea commit 3d215e0

File tree

4 files changed

+58
-36
lines changed

4 files changed

+58
-36
lines changed

src/gui-classic/Frames/UFrameLogs.dfm

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,43 @@ object FrameLogs: TFrameLogs
66
TabOrder = 0
77
object memoLogs: TMemo
88
Left = 0
9-
Top = 41
9+
Top = 33
1010
Width = 821
11-
Height = 490
11+
Height = 498
1212
Align = alClient
1313
ScrollBars = ssBoth
1414
TabOrder = 0
1515
WordWrap = False
16-
ExplicitLeft = -537
17-
ExplicitTop = -157
18-
ExplicitWidth = 857
19-
ExplicitHeight = 397
16+
ExplicitTop = 32
2017
end
2118
object pnlTopLogs: TPanel
2219
Left = 0
2320
Top = 0
2421
Width = 821
25-
Height = 41
22+
Height = 33
2623
Align = alTop
2724
BevelOuter = bvNone
2825
TabOrder = 1
29-
ExplicitLeft = -537
30-
ExplicitWidth = 857
26+
DesignSize = (
27+
821
28+
33)
3129
object cbShowDebugLogs: TCheckBox
32-
Left = 15
33-
Top = 10
30+
Left = 13
31+
Top = 7
3432
Width = 102
3533
Height = 19
3634
Caption = 'Show Debug Logs'
3735
TabOrder = 0
3836
end
37+
object Button1: TButton
38+
Left = 680
39+
Top = 4
40+
Width = 133
41+
Height = 25
42+
Anchors = [akTop, akRight]
43+
Caption = 'Copy log to clipboard'
44+
TabOrder = 1
45+
OnClick = Button1Click
46+
end
3947
end
4048
end

src/gui-classic/Frames/UFrameLogs.pas

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ TFrameLogs = class(TFrame)
1111
memoLogs: TMemo;
1212
pnlTopLogs: TPanel;
1313
cbShowDebugLogs: TCheckBox;
14+
Button1: TButton;
15+
procedure Button1Click(Sender: TObject);
1416
private
1517
{ Private declarations }
1618
public
@@ -24,6 +26,11 @@ implementation
2426

2527
{$R *.dfm}
2628

29+
procedure TFrameLogs.Button1Click(Sender: TObject);
30+
begin
31+
memoLogs.CopyToClipboard;
32+
end;
33+
2734
constructor TFrameLogs.Create(AOwner: TComponent);
2835
begin
2936
inherited Create( AOwner );

src/gui-classic/UFRMWallet.dfm

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ object FRMWallet: TFRMWallet
377377
Top = 91
378378
Width = 865
379379
Height = 466
380-
ActivePage = tsMessages
380+
ActivePage = tsMyAccounts
381381
Align = alClient
382382
TabOrder = 2
383383
OnChange = PageControlChange
@@ -526,17 +526,18 @@ object FRMWallet: TFRMWallet
526526
Height = 438
527527
Align = alClient
528528
TabOrder = 0
529-
ExplicitWidth = 857
530-
ExplicitHeight = 438
529+
ExplicitLeft = 36
530+
ExplicitTop = -93
531531
inherited memoLogs: TMemo
532532
Width = 857
533-
Height = 397
534-
ExplicitLeft = 0
535-
ExplicitTop = 41
533+
Height = 405
534+
ExplicitTop = 33
536535
end
537536
inherited pnlTopLogs: TPanel
538537
Width = 857
539-
ExplicitLeft = 0
538+
inherited Button1: TButton
539+
Left = 716
540+
end
540541
end
541542
end
542543
end
@@ -576,6 +577,7 @@ object FRMWallet: TFRMWallet
576577
Width = 857
577578
Height = 112
578579
ExplicitWidth = 857
580+
ExplicitHeight = 112
579581
end
580582
inherited Panel1: TPanel
581583
Width = 857
@@ -588,7 +590,7 @@ object FRMWallet: TFRMWallet
588590
inherited Panel3: TPanel
589591
Top = 275
590592
Width = 857
591-
ExplicitTop = 273
593+
ExplicitTop = 275
592594
ExplicitWidth = 857
593595
end
594596
end
@@ -603,56 +605,61 @@ object FRMWallet: TFRMWallet
603605
Height = 438
604606
Align = alClient
605607
TabOrder = 0
606-
ExplicitLeft = 93
607-
ExplicitTop = -28
608+
ExplicitWidth = 857
609+
ExplicitHeight = 438
608610
inherited Splitter1: TSplitter
609611
Top = 205
610612
Width = 857
613+
ExplicitTop = 205
614+
ExplicitWidth = 857
611615
end
612616
inherited memoMessages: TMemo
613617
Top = 228
614618
Width = 857
619+
ExplicitTop = 228
620+
ExplicitWidth = 857
615621
end
616622
inherited PanelBottom: TPanel
617623
Top = 208
618624
Width = 857
619-
ExplicitTop = 210
625+
ExplicitTop = 208
620626
ExplicitWidth = 857
621627
end
622628
inherited PanelTop: TPanel
623629
Width = 857
624630
Height = 205
625631
ExplicitLeft = 0
626632
ExplicitTop = 0
627-
ExplicitWidth = 764
628-
ExplicitHeight = 229
633+
ExplicitWidth = 857
634+
ExplicitHeight = 205
629635
inherited Splitter2: TSplitter
630636
Height = 203
637+
ExplicitHeight = 203
631638
end
632639
inherited PanelLeft: TPanel
633640
Height = 203
634-
ExplicitHeight = 227
641+
ExplicitHeight = 203
635642
inherited lbNetConnections: TListBox
636643
Height = 181
637644
ExplicitLeft = 1
638-
ExplicitTop = 25
639-
ExplicitHeight = 201
645+
ExplicitTop = 21
646+
ExplicitHeight = 181
640647
end
641648
end
642649
inherited PanelRight: TPanel
643650
Width = 564
644651
Height = 203
645652
ExplicitLeft = 292
646653
ExplicitTop = 1
647-
ExplicitWidth = 471
648-
ExplicitHeight = 227
654+
ExplicitWidth = 564
655+
ExplicitHeight = 203
649656
inherited memoMessageToSend: TMemo
650657
Width = 562
651658
Height = 115
652659
ExplicitLeft = 1
653-
ExplicitTop = 25
654-
ExplicitWidth = 469
655-
ExplicitHeight = 135
660+
ExplicitTop = 21
661+
ExplicitWidth = 562
662+
ExplicitHeight = 115
656663
end
657664
inherited Panel6: TPanel
658665
Width = 562
@@ -661,11 +668,11 @@ object FRMWallet: TFRMWallet
661668
inherited Panel7: TPanel
662669
Top = 136
663670
Width = 562
664-
ExplicitTop = 160
665-
ExplicitWidth = 469
671+
ExplicitTop = 136
672+
ExplicitWidth = 562
666673
inherited bbSendAMessage: TButton
667674
Width = 539
668-
ExplicitWidth = 446
675+
ExplicitWidth = 539
669676
end
670677
end
671678
end

src/gui-classic/UFRMWallet.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ TFRMWallet = class(TForm)
120120
FramePendingOperations: TFramePendingOperations;
121121
FrameBlockChainExplorer: TFrameBlockChainExplorer;
122122
FrameOperationsExplorer: TFrameOperationsExplorer;
123-
FrameLogs: TFrameLogs;
124123
FrameNodeStats: TFrameNodeStats;
125124
FrameMessages: TFrameMessages;
125+
FrameLogs: TFrameLogs;
126126

127127
procedure FormCreate(Sender: TObject);
128128
procedure FormDestroy(Sender: TObject);

0 commit comments

Comments
 (0)