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
5bb307d1
Commit
5bb307d1
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: added ofNoChangeDir option to OpenDialogs. The current dir must always
be the CTRL directory.
parent
1b93a0ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/ctrl/MainFormUnit.cpp
+6
-0
6 additions, 0 deletions
src/sbbs3/ctrl/MainFormUnit.cpp
src/sbbs3/ctrl/MainFormUnit.dfm
+32
-30
32 additions, 30 deletions
src/sbbs3/ctrl/MainFormUnit.dfm
with
38 additions
and
30 deletions
src/sbbs3/ctrl/MainFormUnit.cpp
+
6
−
0
View file @
5bb307d1
...
...
@@ -2668,6 +2668,7 @@ void __fastcall TMainForm::BBSPreviewMenuItemClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"ANSI/Ctrl-A files (*.asc; *.msg; *.ans)|*.ASC;*.MSG;*.ANS"
"|All files|*.*"
;
dlg
->
InitialDir
=
cfg
.
text_dir
;
...
...
@@ -3002,6 +3003,7 @@ void __fastcall TMainForm::FileEditTextFilesClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"Text files (*.txt)|*.TXT"
"|All files|*.*"
;
dlg
->
InitialDir
=
cfg
.
text_dir
;
...
...
@@ -3020,6 +3022,7 @@ void __fastcall TMainForm::BBSEditBajaMenuItemClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"Baja Source Code (*.src)|*.SRC"
;
dlg
->
InitialDir
=
cfg
.
exec_dir
;
if
(
dlg
->
Execute
()
==
true
)
{
...
...
@@ -3042,6 +3045,7 @@ void __fastcall TMainForm::FileEditJavaScriptClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"JavaScript Files (*.js)|*.JS"
;
dlg
->
InitialDir
=
cfg
.
exec_dir
;
if
(
dlg
->
Execute
()
==
true
)
{
...
...
@@ -3059,6 +3063,7 @@ void __fastcall TMainForm::FileEditConfigFilesClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"Configuration Files (*.cfg)|*.CFG"
;
dlg
->
InitialDir
=
cfg
.
ctrl_dir
;
if
(
dlg
->
Execute
()
==
true
)
{
...
...
@@ -3075,6 +3080,7 @@ void __fastcall TMainForm::BBSEditFileClick(TObject *Sender)
{
TOpenDialog
*
dlg
=
new
TOpenDialog
((
TComponent
*
)
Sender
);
dlg
->
Options
<<
ofNoChangeDir
;
dlg
->
Filter
=
"ANSI/Ctrl-A files (*.asc; *.msg; *.ans)|*.ASC;*.MSG;*.ANS"
"|All files|*.*"
;
dlg
->
InitialDir
=
cfg
.
text_dir
;
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/MainFormUnit.dfm
+
32
−
30
View file @
5bb307d1
object MainForm: TMainForm
Left =
604
Top = 3
71
Left =
372
Top = 3
53
Width = 640
Height = 400
Caption = 'Synchronet Control Panel'
...
...
@@ -10,7 +10,7 @@ object MainForm: TMainForm
DragMode = dmAutomatic
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -1
1
Font.Height = -1
4
Font.Name = 'MS Sans Serif'
Font.Style = []
Icon.Data = {
...
...
@@ -46,11 +46,11 @@ object MainForm: TMainForm
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnShow = FormShow
PixelsPerInch =
96
TextHeight = 1
3
PixelsPerInch =
120
TextHeight = 1
6
object HorizontalSplitter: TSplitter
Left = 0
Top = 1
64
Top = 1
95
Width = 632
Height = 1
Cursor = crVSplit
...
...
@@ -61,9 +61,9 @@ object MainForm: TMainForm
end
object Logo: TImage
Left = 0
Top = 16
5
Top = 1
9
6
Width = 632
Height = 1
64
Height = 1
31
Align = alClient
Center = True
IncrementalDisplay = True
...
...
@@ -1957,7 +1957,7 @@ object MainForm: TMainForm
Left = 0
Top = 30
Width = 632
Height = 1
34
Height = 1
65
Align = alTop
BevelOuter = bvNone
Constraints.MinHeight = 100
...
...
@@ -1965,18 +1965,18 @@ object MainForm: TMainForm
TabOrder = 1
Visible = False
object TopVerticalSplitter: TSplitter
Left = 2
35
Left = 2
89
Top = 0
Width =
2
Height = 1
34
Width =
3
Height = 1
65
Cursor = crHSplit
MinSize = 1
end
object UpperLeftPageControl: TPageControl
Left = 0
Top = 0
Width = 2
35
Height = 1
34
Width = 2
89
Height = 1
65
Align = alLeft
DockSite = True
TabOrder = 0
...
...
@@ -1984,10 +1984,10 @@ object MainForm: TMainForm
OnUnDock = PageControlUnDock
end
object UpperRightPageControl: TPageControl
Left = 2
37
Left = 2
92
Top = 0
Width = 3
95
Height = 1
34
Width = 3
40
Height = 1
65
Align = alClient
DockSite = True
TabOrder = 1
...
...
@@ -1997,26 +1997,26 @@ object MainForm: TMainForm
end
object BottomPanel: TPanel
Left = 0
Top = 16
5
Top = 1
9
6
Width = 632
Height = 1
64
Height = 1
31
Align = alClient
BevelOuter = bvNone
TabOrder = 2
Visible = False
object BottomVerticalSplitter: TSplitter
Left = 2
35
Left = 2
89
Top = 0
Width =
2
Height = 1
64
Width =
3
Height = 1
31
Cursor = crHSplit
MinSize = 1
end
object LowerLeftPageControl: TPageControl
Left = 0
Top = 0
Width = 2
35
Height = 1
64
Width = 2
89
Height = 1
31
Align = alLeft
DockSite = True
TabOrder = 0
...
...
@@ -2024,10 +2024,10 @@ object MainForm: TMainForm
OnUnDock = PageControlUnDock
end
object LowerRightPageControl: TPageControl
Left = 2
37
Left = 2
92
Top = 0
Width = 3
95
Height = 1
64
Width = 3
40
Height = 1
31
Align = alClient
DockSite = True
TabOrder = 1
...
...
@@ -2037,7 +2037,7 @@ object MainForm: TMainForm
end
object StatusBar: TStatusBar
Left = 0
Top = 32
9
Top = 32
7
Width = 632
Height = 25
Panels = <
...
...
@@ -2826,7 +2826,7 @@ object MainForm: TMainForm
object ImageList: TImageList
Left = 360
Bitmap = {
494C010143004500040010001000FFFFFFFFFF
0
0FFFFFFFFFFFFFFFF424D3600
494C010143004500040010001000FFFFFFFFFF
1
0FFFFFFFFFFFFFFFF424D3600
0000000000003600000028000000400000002001000001002000000000000020
0100000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
...
...
@@ -5206,7 +5206,8 @@ object MainForm: TMainForm
000180010001800100019FF900019FF91FF19EF91FF19FF91DF19C791FF19C19
1CF19C39183198191C719C19183198191C319C39183198191C719C7918319819
1CF19CF9183198391DF19DF91FF19FF91FF19FF91FF19FF90001800100018001
00018003000180030001FFFF0001FFFF}
00018003000180030001FFFF0001FFFF00000000000000000000000000000000
000000000000}
end
object StatsTimer: TTimer
Enabled = False
...
...
@@ -5279,6 +5280,7 @@ object MainForm: TMainForm
end
end
object OpenDialog: TOpenDialog
Options = [ofHideReadOnly, ofNoChangeDir, ofEnableSizing]
Left = 576
end
object SaveDialog: TSaveDialog
...
...
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