Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
31da4275
Commit
31da4275
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created UserList and NodeRerun tool buttons and popup menu items.
parent
4c14899f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/ctrl/NodeFormUnit.cpp
+35
-0
35 additions, 0 deletions
src/sbbs3/ctrl/NodeFormUnit.cpp
src/sbbs3/ctrl/NodeFormUnit.dfm
+46
-19
46 additions, 19 deletions
src/sbbs3/ctrl/NodeFormUnit.dfm
src/sbbs3/ctrl/NodeFormUnit.h
+6
-0
6 additions, 0 deletions
src/sbbs3/ctrl/NodeFormUnit.h
with
87 additions
and
19 deletions
src/sbbs3/ctrl/NodeFormUnit.cpp
+
35
−
0
View file @
31da4275
...
...
@@ -390,6 +390,21 @@ void __fastcall TNodeForm::LockNodeButtonClick(TObject *Sender)
}
//---------------------------------------------------------------------------
void
__fastcall
TNodeForm
::
RerunNodeButtonClick
(
TObject
*
Sender
)
{
int
i
;
node_t
node
;
for
(
i
=
0
;
i
<
ListBox
->
Items
->
Count
;
i
++
)
if
(
ListBox
->
Selected
[
i
]
==
true
)
{
getnodedat
(
&
MainForm
->
cfg
,
i
+
1
,
&
node
,
1
);
node
.
misc
^=
NODE_RRUN
;
putnodedat
(
&
MainForm
->
cfg
,
i
+
1
,
&
node
);
}
}
//---------------------------------------------------------------------------
void
__fastcall
TNodeForm
::
ListBoxKeyPress
(
TObject
*
Sender
,
char
&
Key
)
{
if
(
Key
==
1
)
// ctrl-a
...
...
@@ -481,3 +496,23 @@ void __fastcall TNodeForm::SpyButtonClick(TObject *Sender)
}
//---------------------------------------------------------------------------
void
__fastcall
TNodeForm
::
UserEditButtonClick
(
TObject
*
Sender
)
{
int
i
;
char
str
[
128
];
node_t
node
;
for
(
i
=
0
;
i
<
ListBox
->
Items
->
Count
;
i
++
)
if
(
ListBox
->
Selected
[
i
]
==
true
)
{
getnodedat
(
&
MainForm
->
cfg
,
i
+
1
,
&
node
,
0
);
if
(
node
.
useron
==
0
)
continue
;
sprintf
(
str
,
"%sUSEREDIT %s %d"
,
MainForm
->
cfg
.
exec_dir
,
MainForm
->
cfg
.
data_dir
,
node
.
useron
);
WinExec
(
str
,
SW_SHOWNORMAL
);
}
}
//---------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/NodeFormUnit.dfm
+
46
−
19
View file @
31da4275
...
...
@@ -10,15 +10,15 @@ object NodeForm: TNodeForm
DragMode = dmAutomatic
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -1
1
Font.Height = -1
4
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poDefault
OnHide = FormHide
OnShow = FormShow
PixelsPerInch =
96
TextHeight = 1
3
PixelsPerInch =
120
TextHeight = 1
6
object Toolbar: TToolBar
Left = 0
Top = 0
...
...
@@ -65,38 +65,54 @@ object NodeForm: TNodeForm
ImageIndex = 17
OnClick = InterruptNodeButtonClick
end
object
ClearError
Button: TToolButton
object
RerunTool
Button: TToolButton
Left = 115
Top = 0
Hint = 'Rerun Node(s)'
Caption = 'RerunToolButton'
ImageIndex = 55
OnClick = RerunNodeButtonClick
end
object ClearErrorButton: TToolButton
Left = 138
Top = 0
Hint = 'Clear Errors on Node(s)'
Caption = 'ClearErrorButton'
ImageIndex = 3
3
ImageIndex = 3
1
OnClick = ClearErrorButtonClick
end
object SpyButton: TToolButton
Left = 161
Top = 0
Hint = 'Spy on Node(s)'
Caption = 'SpyButton'
ImageIndex = 39
OnClick = SpyButtonClick
end
object ChatButton: TToolButton
Left = 1
3
8
Left = 18
4
Top = 0
Hint = 'Chat with User'
Caption = 'ChatButton'
ImageIndex = 3
9
ImageIndex = 3
7
OnClick = ChatButtonClick
end
object
Spy
Button: TToolButton
Left =
161
object
UserEdit
Button: TToolButton
Left =
207
Top = 0
Hint = '
Spy on Node(s)
'
Caption = '
Spy
Button'
ImageIndex =
41
OnClick =
Spy
ButtonClick
Hint = '
Edit User
'
Caption = '
UserEdit
Button'
ImageIndex =
27
OnClick =
UserEdit
ButtonClick
end
end
object ListBox: TListBox
Left = 0
Top = 25
Width = 269
Height = 1
62
Height = 1
57
Align = alClient
ItemHeight = 1
3
ItemHeight = 1
6
MultiSelect = True
PopupMenu = PopupMenu
TabOrder = 1
...
...
@@ -111,17 +127,22 @@ object NodeForm: TNodeForm
Left = 128
Top = 72
object LockMenuItem: TMenuItem
Caption = 'Lock'
Caption = 'Lock
Node
'
ImageIndex = 19
OnClick = LockNodeButtonClick
end
object DownMenuItem: TMenuItem
Caption = 'Down'
Caption = 'Down
Node
'
ImageIndex = 21
OnClick = DownButtonClick
end
object RerunMenuItem: TMenuItem
Caption = 'Rerun Node'
ImageIndex = 55
OnClick = RerunNodeButtonClick
end
object InterruptMenuItem: TMenuItem
Caption = 'Interrupt'
Caption = 'Interrupt
Node
'
ImageIndex = 17
OnClick = InterruptNodeButtonClick
end
...
...
@@ -131,7 +152,7 @@ object NodeForm: TNodeForm
OnClick = ClearErrorButtonClick
end
object ChatMenuItem: TMenuItem
Caption = 'Chat w
ith
User'
Caption = 'Chat w
/
User'
ImageIndex = 39
OnClick = ChatButtonClick
end
...
...
@@ -140,6 +161,12 @@ object NodeForm: TNodeForm
ImageIndex = 41
OnClick = SpyButtonClick
end
object EditUser1: TMenuItem
Caption = 'Edit User'
Hint = 'EditUserMenuItem'
ImageIndex = 27
OnClick = UserEditButtonClick
end
object N1: TMenuItem
Caption = '-'
end
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/NodeFormUnit.h
+
6
−
0
View file @
31da4275
...
...
@@ -72,6 +72,10 @@ __published: // IDE-managed Components
TMenuItem
*
ChatMenuItem
;
TToolButton
*
SpyButton
;
TMenuItem
*
SpyMenuItem
;
TToolButton
*
RerunToolButton
;
TMenuItem
*
RerunMenuItem
;
TToolButton
*
UserEditButton
;
TMenuItem
*
EditUser1
;
void
__fastcall
FormShow
(
TObject
*
Sender
);
void
__fastcall
TimerTick
(
TObject
*
Sender
);
void
__fastcall
FormHide
(
TObject
*
Sender
);
...
...
@@ -83,6 +87,8 @@ __published: // IDE-managed Components
void
__fastcall
ClearErrorButtonClick
(
TObject
*
Sender
);
void
__fastcall
ChatButtonClick
(
TObject
*
Sender
);
void
__fastcall
SpyButtonClick
(
TObject
*
Sender
);
void
__fastcall
RerunNodeButtonClick
(
TObject
*
Sender
);
void
__fastcall
UserEditButtonClick
(
TObject
*
Sender
);
private:
// User declarations
public:
// User declarations
__fastcall
TNodeForm
(
TComponent
*
Owner
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment