IDE: update Editor > Userdefined Markup options

This commit is contained in:
Martin 2025-03-24 18:29:42 +01:00
parent 8aea8f322f
commit 0cd0084798
4 changed files with 762 additions and 694 deletions

View File

@ -1,157 +1,125 @@
object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 0
Height = 369
Height = 641
Top = 0
Width = 507
ClientHeight = 369
ClientWidth = 507
Width = 556
Align = alClient
ClientHeight = 641
ClientWidth = 556
TabOrder = 0
DesignLeft = 432
DesignTop = 323
object ToolBar1: TToolBar
Left = 0
Height = 24
Top = 0
Width = 507
AutoSize = True
Caption = 'ToolBar1'
EdgeBorders = [ebBottom]
ParentShowHint = False
ShowCaptions = True
ShowHint = True
TabOrder = 0
object tbSelectList: TToolButton
Left = 1
Top = 0
Caption = 'tbSelectList'
DropdownMenu = ListMenu
OnClick = tbSelectListClick
Style = tbsDropDown
DesignLeft = 597
DesignTop = 299
object divSelectGroup: TDividerBevel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 6
Height = 15
Top = 6
Width = 544
Caption = 'divSelectGroup'
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
Font.Style = [fsBold]
ParentFont = False
end
object tbNewList: TToolButton
Left = 81
Top = 0
Caption = 'tbNewList'
object cbGroup: TComboBox
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = divSelectGroup
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 6
Height = 23
Top = 27
Width = 544
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
ItemHeight = 15
Style = csDropDownList
TabOrder = 0
OnChange = cbGroupChange
end
object btnAdd: TButton
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = cbGroup
AnchorSideTop.Side = asrBottom
Left = 6
Height = 22
Top = 56
Width = 75
BorderSpacing.Around = 6
Caption = 'btnAdd'
TabOrder = 1
OnClick = tbNewListClick
end
object tbDeleteList: TToolButton
Left = 142
Top = 0
Caption = 'tbDeleteList'
object btnCopy: TButton
AnchorSideLeft.Control = btnAdd
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = btnAdd
Left = 93
Height = 22
Top = 56
Width = 75
BorderSpacing.Left = 12
Caption = 'btnCopy'
TabOrder = 2
Visible = False
end
object btnDelete: TButton
AnchorSideLeft.Control = btnCopy
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = btnAdd
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 174
Height = 22
Top = 56
Width = 75
BorderSpacing.Left = 6
BorderSpacing.Right = 6
Caption = 'btnDelete'
TabOrder = 3
OnClick = tbDeleteListClick
end
object ToolButton2: TToolButton
Left = 212
Height = 22
Top = 0
Caption = 'ToolButton2'
Style = tbsDivider
end
object tbMainPage: TToolButton
Left = 217
Top = 0
AllowAllUp = True
Caption = 'tbMainPage'
Down = True
Grouped = True
OnClick = tbSelectPageClicked
Style = tbsCheck
end
object tbKeyPage: TToolButton
Left = 289
Top = 0
AllowAllUp = True
Caption = 'tbKeyPage'
Grouped = True
OnClick = tbSelectPageClicked
Style = tbsCheck
end
end
object MainPanel: TPanel
Left = 0
Height = 345
Top = 24
Width = 507
Align = alClient
AutoSize = True
BevelOuter = bvNone
ClientHeight = 345
ClientWidth = 507
TabOrder = 1
inline SynColorAttrEditor1: TSynColorAttrEditor
Height = 146
Top = 195
Width = 507
Align = alTop
ClientHeight = 146
ClientWidth = 507
TabOrder = 1
inherited ForeGroundUseDefaultCheckBox: TCheckBox
AnchorSideLeft.Control = SynColorAttrEditor1
end
inherited ForegroundColorBox: TColorBox
AnchorSideTop.Control = SynColorAttrEditor1
AnchorSideRight.Control = SynColorAttrEditor1
end
inherited BackGroundColorBox: TColorBox
AnchorSideRight.Control = SynColorAttrEditor1
end
inherited BackGroundUseDefaultCheckBox: TCheckBox
AnchorSideLeft.Control = SynColorAttrEditor1
end
inherited FrameColorBox: TColorBox
AnchorSideRight.Control = SynColorAttrEditor1
end
inherited FrameColorUseDefaultCheckBox: TCheckBox
AnchorSideLeft.Control = SynColorAttrEditor1
end
inherited pnlUnderline: TPanel
AnchorSideLeft.Control = SynColorAttrEditor1
end
inherited MarkupFoldColorUseDefaultCheckBox: TCheckBox
AnchorSideLeft.Control = SynColorAttrEditor1
end
end
object Notebook1: TNotebook
Left = 0
Height = 195
Top = 0
Width = 507
PageIndex = 0
Align = alTop
AutoSize = True
Constraints.MinHeight = 195
TabOrder = 0
TabStop = True
object PageMain: TPage
object HCenter: TLabel
AnchorSideLeft.Control = PageMain
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = PageMain
Left = 253
Height = 1
Top = 0
Width = 1
ParentColor = False
end
object edListName: TEdit
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = PageMain
AnchorSideRight.Control = HCenter
Left = 84
Height = 23
Top = 6
Width = 143
object divEditGroup: TDividerBevel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = btnAdd
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 6
Height = 15
Top = 84
Width = 544
Caption = 'divEditGroup'
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Right = 20
BorderSpacing.Around = 6
OnEditingDone = edListNameEditingDone
OnKeyPress = edListNameKeyPress
TabOrder = 0
Text = 'edListName'
Font.Style = [fsBold]
ParentFont = False
end
object MainPanel: TScrollBox
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = divEditGroup
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 0
Height = 536
Top = 105
Width = 556
HorzScrollBar.Page = 556
VertScrollBar.Page = 470
Anchors = [akTop, akLeft, akRight, akBottom]
BorderStyle = bsNone
ClientHeight = 519
ClientWidth = 556
TabOrder = 4
object lbListName: TLabel
AnchorSideLeft.Control = PageMain
AnchorSideLeft.Control = MainPanel
AnchorSideTop.Control = edListName
AnchorSideTop.Side = asrCenter
Left = 6
@ -162,17 +130,107 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Caption = 'lbListName'
ParentColor = False
end
object edListName: TEdit
AnchorSideLeft.Control = lbListName
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = MainPanel
Left = 72
Height = 23
Top = 6
Width = 100
BorderSpacing.Around = 6
TabOrder = 0
Text = 'edListName'
OnEditingDone = edListNameEditingDone
OnKeyPress = edListNameKeyPress
end
inline SynColorAttrEditor1: TSynColorAttrEditor
AnchorSideLeft.Control = MainPanel
AnchorSideTop.Control = edListName
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = MainPanel
AnchorSideRight.Side = asrBottom
Left = 6
Height = 178
Top = 35
Width = 1098
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 6
ClientHeight = 178
ClientWidth = 1098
TabOrder = 1
inherited Panel1: TPanel
AnchorSideLeft.Control = SynColorAttrEditor1
AnchorSideTop.Control = SynColorAttrEditor1
end
inherited pnlUnderline: TPanel
AnchorSideLeft.Control = SynColorAttrEditor1
end
inherited lblInfo: TLabel
AnchorSideLeft.Control = SynColorAttrEditor1
AnchorSideRight.Control = SynColorAttrEditor1
Width = 1086
end
inherited pnlWords: TPanel
AnchorSideTop.Control = SynColorAttrEditor1
end
end
object PageControl1: TPageControl
AnchorSideLeft.Control = MainPanel
AnchorSideTop.Control = SynColorAttrEditor1
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = MainPanel
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = MainPanel
AnchorSideBottom.Side = asrBottom
Left = 6
Height = 294
Top = 219
Width = 1098
ActivePage = tabMain
Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Around = 6
TabIndex = 0
TabOrder = 2
OnChange = PageControl1Change
object tabMain: TTabSheet
Caption = 'tabMain'
ClientHeight = 266
ClientWidth = 1090
object pnlMain: TPanel
Left = 0
Height = 266
Top = 0
Width = 1090
Align = alClient
AutoSize = True
BevelOuter = bvNone
ClientHeight = 266
ClientWidth = 1090
ParentBackground = False
ParentColor = False
TabOrder = 0
object HCenter: TLabel
AnchorSideLeft.Control = pnlMain
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = pnlMain
Left = 545
Height = 1
Top = 0
Width = 1
ParentColor = False
end
object WordList: TColorStringGrid
AnchorSideLeft.Control = HCenter
AnchorSideTop.Control = PageMain
AnchorSideRight.Control = PageMain
AnchorSideTop.Control = pnlMain
AnchorSideRight.Control = pnlMain
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = PageMain
AnchorSideBottom.Control = pnlMain
AnchorSideBottom.Side = asrBottom
Left = 259
Height = 183
Left = 551
Height = 254
Top = 6
Width = 242
Width = 533
Anchors = [akTop, akLeft, akRight, akBottom]
AutoAdvance = aaDown
AutoFillColumns = True
@ -181,7 +239,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Columns = <
item
Title.Caption = 'Title'
Width = 213
Width = 504
end
item
ButtonStyle = cbsButtonColumn
@ -192,9 +250,9 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
end>
FixedCols = 0
FixedRows = 0
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goDrawFocusSelected, goEditing, goThumbTracking, goSmoothScroll, goColSpanning]
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goDrawFocusSelected, goEditing, goThumbTracking, goColSpanning, goSmoothScroll]
RowCount = 1
TabOrder = 4
TabOrder = 3
OnColRowDeleted = WordListColRowDeleted
OnButtonClick = WordListButtonClick
OnEditingDone = WordListEditingDone
@ -202,53 +260,69 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
OnKeyUp = WordListKeyUp
OnSelection = WordListSelection
ColWidths = (
213
504
25
)
end
object cbCaseSense: TCheckBox
AnchorSideLeft.Control = PageMain
AnchorSideTop.Control = edListName
AnchorSideLeft.Control = pnlMain
AnchorSideTop.Control = pnlMain
Left = 6
Height = 19
Top = 42
Width = 88
BorderSpacing.Top = 30
Top = 6
Width = 86
BorderSpacing.Around = 6
Caption = 'cbCaseSense'
TabOrder = 0
OnChange = GeneralCheckBoxChange
TabOrder = 1
end
object cbMatchStartBound: TCheckBox
AnchorSideLeft.Control = PageMain
AnchorSideLeft.Control = pnlMain
AnchorSideTop.Control = cbCaseSense
AnchorSideTop.Side = asrBottom
Left = 6
Height = 19
Top = 67
Width = 126
Top = 31
Width = 124
BorderSpacing.Around = 6
Caption = 'cbMatchStartBound'
TabOrder = 1
OnChange = GeneralCheckBoxChange
TabOrder = 2
end
object cbMatchEndBound: TCheckBox
AnchorSideLeft.Control = PageMain
AnchorSideLeft.Control = pnlMain
AnchorSideTop.Control = cbMatchStartBound
AnchorSideTop.Side = asrBottom
Left = 6
Height = 19
Top = 92
Width = 122
Top = 56
Width = 120
BorderSpacing.Around = 6
Caption = 'cbMatchEndBound'
TabOrder = 2
OnChange = GeneralCheckBoxChange
TabOrder = 3
end
end
object PageKeys: TPage
end
object tabKeys: TTabSheet
Caption = 'tabKeys'
ClientHeight = 266
ClientWidth = 1090
object pnlKeys: TPanel
Left = 0
Height = 266
Top = 0
Width = 1090
Align = alClient
AutoSize = True
BevelOuter = bvNone
ClientHeight = 266
ClientWidth = 1090
ParentBackground = False
ParentColor = False
TabOrder = 0
object cbKeyCase: TCheckBox
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = lbNewKeyOptions
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
@ -256,24 +330,24 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 19
Top = 26
Width = 228
Width = 520
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 5
BorderSpacing.Right = 20
Caption = 'cbKeyCase'
OnChange = GeneralCheckBoxChange
TabOrder = 0
OnChange = GeneralCheckBoxChange
end
object lbNewKeyOptions: TLabel
AnchorSideLeft.Control = PageKeys
AnchorSideTop.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = pnlKeys
AnchorSideRight.Control = HCenterKey
AnchorSideRight.Side = asrBottom
Left = 6
Height = 15
Top = 6
Width = 242
Width = 534
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 6
@ -284,25 +358,25 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
end
object Panel1: TPanel
AnchorSideLeft.Control = HCenterKey
AnchorSideTop.Control = PageKeys
AnchorSideRight.Control = PageKeys
AnchorSideTop.Control = pnlKeys
AnchorSideRight.Control = pnlKeys
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = PageKeys
AnchorSideBottom.Control = pnlKeys
AnchorSideBottom.Side = asrBottom
Left = 253
Height = 217
Left = 545
Height = 266
Top = 0
Width = 254
Width = 545
Anchors = [akTop, akLeft, akRight, akBottom]
BevelOuter = bvNone
ClientHeight = 217
ClientWidth = 254
ClientHeight = 266
ClientWidth = 545
TabOrder = 1
object divKeyAdd: TDividerBevel
Left = 6
Height = 17
Height = 15
Top = 0
Width = 242
Width = 533
Caption = 'divKeyAdd'
Align = alTop
BorderSpacing.Left = 6
@ -317,7 +391,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideTop.Side = asrBottom
Left = 6
Height = 22
Top = 17
Top = 15
Width = 23
BorderSpacing.Left = 6
Caption = '...'
@ -331,8 +405,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 17
Width = 213
Top = 15
Width = 504
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Right = 6
@ -347,8 +421,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 38
Width = 219
Top = 36
Width = 510
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 6
Caption = 'lbKeyAdd2'
@ -361,9 +435,9 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
Left = 6
Height = 17
Top = 59
Width = 242
Height = 15
Top = 57
Width = 533
Caption = 'divKeyRemove'
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
@ -380,9 +454,9 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom
Left = 6
Height = 17
Top = 118
Width = 242
Height = 15
Top = 114
Width = 533
Caption = 'divKeyToggle'
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
@ -398,7 +472,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideTop.Side = asrBottom
Left = 6
Height = 22
Top = 76
Top = 72
Width = 23
BorderSpacing.Left = 6
Caption = '...'
@ -410,7 +484,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideTop.Side = asrBottom
Left = 6
Height = 22
Top = 135
Top = 129
Width = 23
BorderSpacing.Left = 6
Caption = '...'
@ -424,8 +498,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 76
Width = 213
Top = 72
Width = 504
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Right = 6
@ -440,8 +514,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 97
Width = 213
Top = 93
Width = 504
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 6
BorderSpacing.Right = 6
@ -456,8 +530,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 135
Width = 213
Top = 129
Width = 504
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Right = 6
@ -472,8 +546,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideRight.Side = asrBottom
Left = 35
Height = 15
Top = 156
Width = 213
Top = 150
Width = 504
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 6
BorderSpacing.Right = 6
@ -483,17 +557,17 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
end
end
object HCenterKey: TLabel
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = PageKeys
Left = 253
AnchorSideTop.Control = pnlKeys
Left = 545
Height = 1
Top = 0
Width = 1
ParentColor = False
end
object cbKeyBoundStart: TCheckBox
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = cbKeyCase
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
@ -501,17 +575,17 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 19
Top = 50
Width = 228
Width = 520
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 5
BorderSpacing.Right = 20
Caption = 'cbKeyBoundStart'
OnChange = GeneralCheckBoxChange
TabOrder = 2
OnChange = GeneralCheckBoxChange
end
object cbKeyBoundEnd: TCheckBox
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = cbKeyBoundStart
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
@ -519,24 +593,24 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 19
Top = 74
Width = 228
Width = 520
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 5
BorderSpacing.Right = 20
Caption = 'cbKeyBoundEnd'
OnChange = GeneralCheckBoxChange
TabOrder = 3
OnChange = GeneralCheckBoxChange
end
object lbKeyBoundMinLen: TLabel
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = cbKeyBoundEnd
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
Left = 6
Height = 15
Top = 101
Width = 241
Width = 533
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 8
@ -546,7 +620,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
WordWrap = True
end
object lbWordMin: TLabel
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = lbKeyBoundMinLen
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HQuarter
@ -554,7 +628,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 15
Top = 119
Width = 116
Width = 262
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 3
@ -568,10 +642,10 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideTop.Control = lbWordMin
AnchorSideRight.Control = HCenterKey
AnchorSideRight.Side = asrBottom
Left = 133
Left = 279
Height = 15
Top = 119
Width = 115
Width = 261
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Right = 6
@ -580,7 +654,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
WordWrap = True
end
object edWordMin: TSpinEdit
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = lbWordMin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HQuarter
@ -595,8 +669,8 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
BorderSpacing.Right = 6
Constraints.MaxWidth = 70
MaxValue = 9999
OnChange = GeneralCheckBoxChange
TabOrder = 4
OnChange = GeneralCheckBoxChange
end
object edSelectMin: TSpinEdit
AnchorSideLeft.Control = HQuarter
@ -604,7 +678,7 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
AnchorSideRight.Side = asrBottom
Left = 133
Left = 279
Height = 23
Top = 138
Width = 70
@ -614,21 +688,21 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
BorderSpacing.Right = 6
Constraints.MaxWidth = 70
MaxValue = 9999
OnChange = GeneralCheckBoxChange
TabOrder = 5
OnChange = GeneralCheckBoxChange
end
object HQuarter: TLabel
AnchorSideLeft.Control = lbNewKeyOptions
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = PageKeys
Left = 127
AnchorSideTop.Control = pnlKeys
Left = 273
Height = 1
Top = 0
Width = 1
ParentColor = False
end
object cbSmartSelectBound: TCheckBox
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = edWordMin
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
@ -636,18 +710,18 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 19
Top = 167
Width = 228
Width = 520
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 6
BorderSpacing.Right = 20
BorderSpacing.Bottom = 6
Caption = 'cbSmartSelectBound'
OnChange = GeneralCheckBoxChange
TabOrder = 6
OnChange = GeneralCheckBoxChange
end
object cbGlobalList: TCheckBox
AnchorSideLeft.Control = PageKeys
AnchorSideLeft.Control = pnlKeys
AnchorSideTop.Control = cbSmartSelectBound
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = HCenterKey
@ -655,21 +729,18 @@ object EditorMarkupUserDefinedFrame: TEditorMarkupUserDefinedFrame
Left = 6
Height = 19
Top = 192
Width = 228
Width = 520
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 6
BorderSpacing.Top = 6
BorderSpacing.Right = 20
BorderSpacing.Bottom = 6
Caption = 'cbGlobalList'
OnChange = GeneralCheckBoxChange
TabOrder = 7
OnChange = GeneralCheckBoxChange
end
end
end
end
object ListMenu: TPopupMenu
left = 456
top = 65528
end
end

View File

@ -51,6 +51,10 @@ type
{ TEditorMarkupUserDefinedFrame }
TEditorMarkupUserDefinedFrame = class(TAbstractIDEOptionsEditor)
btnAdd: TButton;
btnCopy: TButton;
btnDelete: TButton;
cbGroup: TComboBox;
cbCaseSense: TCheckBox;
cbMatchEndBound: TCheckBox;
cbMatchStartBound: TCheckBox;
@ -59,11 +63,14 @@ type
cbKeyBoundEnd: TCheckBox;
cbSmartSelectBound: TCheckBox;
cbGlobalList: TCheckBox;
divEditGroup: TDividerBevel;
divKeyAdd: TDividerBevel;
divKeyRemove: TDividerBevel;
divKeyToggle: TDividerBevel;
divSelectGroup: TDividerBevel;
edListName: TEdit;
HCenter: TLabel;
lbListName: TLabel;
lbWordMin: TLabel;
lbSelectMin: TLabel;
HQuarter: TLabel;
@ -76,12 +83,10 @@ type
lbKeyRemove2: TLabel;
lbKeyToggle1: TLabel;
lbKeyToggle2: TLabel;
lbListName: TLabel;
ListMenu: TPopupMenu;
MainPanel: TPanel;
Notebook1: TNotebook;
PageMain: TPage;
PageKeys: TPage;
MainPanel: TScrollBox;
pnlKeys: TPanel;
pnlMain: TPanel;
PageControl1: TPageControl;
Panel1: TPanel;
btnKeyAdd: TSpeedButton;
btnKeyRemove: TSpeedButton;
@ -89,22 +94,17 @@ type
edWordMin: TSpinEdit;
edSelectMin: TSpinEdit;
SynColorAttrEditor1: TSynColorAttrEditor;
ToolBar1: TToolBar;
tbSelectList: TToolButton;
tbNewList: TToolButton;
tbDeleteList: TToolButton;
ToolButton2: TToolButton;
tbMainPage: TToolButton;
tbKeyPage: TToolButton;
tabMain: TTabSheet;
tabKeys: TTabSheet;
WordList: TColorStringGrid;
procedure cbGroupChange(Sender: TObject);
procedure edListNameEditingDone(Sender: TObject);
procedure edListNameKeyPress(Sender: TObject; var Key: char);
procedure KeyEditClicked(Sender: TObject);
procedure PageControl1Change(Sender: TObject);
procedure tbDeleteListClick(Sender: TObject);
procedure tbNewListClick(Sender: TObject);
procedure tbSelectListClick(Sender: TObject);
procedure GeneralCheckBoxChange(Sender: TObject);
procedure tbSelectPageClicked(Sender: TObject);
procedure WordListButtonClick(Sender: TObject; {%H-}aCol, aRow: Integer);
procedure WordListColRowDeleted(Sender: TObject; {%H-}IsColumn: Boolean; {%H-}sIndex,
{%H-}tIndex: Integer);
@ -122,7 +122,6 @@ type
FSelectedRow: Integer;
FUpdatingDisplay: Integer;
procedure CheckDuplicate(AnIndex: Integer);
procedure DoListSelected(Sender: TObject);
procedure MaybeCleanEmptyRow(aRow: Integer);
procedure UpdateKeys;
procedure UpdateTermOptions;
@ -272,6 +271,15 @@ begin
UpdateListDropDownFull;
end;
procedure TEditorMarkupUserDefinedFrame.cbGroupChange(Sender: TObject);
begin
if WordList.EditorMode then
WordList.EditingDone;
FSelectedListIdx := cbGroup.ItemIndex;
UpdateListDisplay;
end;
procedure TEditorMarkupUserDefinedFrame.edListNameKeyPress(Sender: TObject; var Key: char);
begin
if key in [#10,#13] then edListNameEditingDone(nil);
@ -298,6 +306,12 @@ begin
UpdateKeys;
end;
procedure TEditorMarkupUserDefinedFrame.PageControl1Change(Sender: TObject);
begin
if WordList.EditorMode then
WordList.EditingDone;
end;
procedure TEditorMarkupUserDefinedFrame.tbDeleteListClick(Sender: TObject);
begin
if FUserWords = nil then exit;
@ -330,11 +344,6 @@ begin
UpdateListDisplay;
end;
procedure TEditorMarkupUserDefinedFrame.tbSelectListClick(Sender: TObject);
begin
tbSelectList.CheckMenuDropdown;
end;
procedure TEditorMarkupUserDefinedFrame.GeneralCheckBoxChange(Sender: TObject);
var
i: PtrInt;
@ -406,17 +415,6 @@ begin
end;
procedure TEditorMarkupUserDefinedFrame.tbSelectPageClicked(Sender: TObject);
begin
if WordList.EditorMode then
WordList.EditingDone;
if tbMainPage.Down then
Notebook1.PageIndex := 0
else
Notebook1.PageIndex := 1;
end;
procedure TEditorMarkupUserDefinedFrame.WordListButtonClick(Sender: TObject;
aCol, aRow: Integer);
var
@ -554,15 +552,6 @@ begin
UpdateDupErrors;
end;
procedure TEditorMarkupUserDefinedFrame.DoListSelected(Sender: TObject);
begin
if WordList.EditorMode then
WordList.EditingDone;
FSelectedListIdx := TMenuItem(Sender).Tag;
UpdateListDisplay;
end;
procedure TEditorMarkupUserDefinedFrame.MaybeCleanEmptyRow(aRow: Integer);
var
i: PtrInt;
@ -645,34 +634,27 @@ end;
procedure TEditorMarkupUserDefinedFrame.UpdateListDropDownFull;
var
m: TMenuItem;
i: Integer;
begin
ListMenu.Items.Clear;
if FUserWordsList.Count > 0 then begin
for i := 0 to FUserWordsList.Count - 1 do begin
m := TMenuItem.Create(ListMenu);
m.Caption := FUserWordsList.Lists[i].Name;
m.Tag := i;
m.OnClick := @DoListSelected;
ListMenu.Items.Add(m);
end;
end;
cbGroup.Clear;
for i := 0 to FUserWordsList.Count - 1 do
cbGroup.Items.Add(FUserWordsList.Lists[i].Name);
UpdateListDropDownCaption;
end;
procedure TEditorMarkupUserDefinedFrame.UpdateListDropDownCaption;
begin
if FUserWordsList.Count = 0 then begin
tbSelectList.Enabled := False;
tbSelectList.Caption := dlgMarkupUserDefinedNoLists;
cbGroup.Enabled := False;
cbGroup.Caption := dlgMarkupUserDefinedNoLists;
end
else begin
tbSelectList.Enabled := True;
cbGroup.Enabled := True;
if (FSelectedListIdx >= 0) and (FSelectedListIdx < FUserWordsList.Count) then
tbSelectList.Caption := FUserWordsList.Lists[FSelectedListIdx].Name
cbGroup.ItemIndex := FSelectedListIdx
//cbGroup.Caption := FUserWordsList.Lists[FSelectedListIdx].Name
else
tbSelectList.Caption := dlgMarkupUserDefinedNoListsSel;
cbGroup.Caption := dlgMarkupUserDefinedNoListsSel;
end;
end;
@ -753,11 +735,13 @@ procedure TEditorMarkupUserDefinedFrame.Setup(ADialog: TAbstractOptionsEditorDia
begin
SynColorAttrEditor1.Setup;
SynColorAttrEditor1.ShowPrior := True;
tbNewList.Caption := dlgMarkupUserDefinedListNew;
tbDeleteList.Caption := dlgMarkupUserDefinedListDel;
divSelectGroup.Caption := dlgMarkupUserDefinedDivSelect;
divEditGroup.Caption := dlgMarkupUserDefinedDivEdit;
btnAdd.Caption := dlgMarkupUserDefinedListNew;
btnDelete.Caption := dlgMarkupUserDefinedListDel;
lbListName.Caption := dlgMarkupUserDefinedListName;
tbMainPage.Caption := dlgMarkupUserDefinedPageMain;
tbKeyPage.Caption := dlgMarkupUserDefinedPageKeys;
tabMain.Caption := dlgMarkupUserDefinedPageMain;
tabKeys.Caption := dlgMarkupUserDefinedPageKeys;
cbCaseSense.Caption := dlgMarkupUserDefinedMatchCase;
cbMatchStartBound.Caption := dlgMarkupUserDefinedMatchStartBound;
cbMatchEndBound.Caption := dlgMarkupUserDefinedMatchEndBound;
@ -791,7 +775,7 @@ begin
FSelectedListIdx := 0;
UpdateListDropDownFull;
UpdateListDisplay;
tbDeleteList.Enabled := FUserWordsList.Count > 0;
cbGroup.Enabled := FUserWordsList.Count > 0;
FGlobalColors := nil;
UpdateKeys;
end;

View File

@ -2021,6 +2021,8 @@ resourcestring
dlgIncludeCodeTemplatesToIdentCompl = 'Include code templates';
dlgMarkupUserDefined = 'User defined markup';
dlgMarkupUserDefinedDivSelect = 'Create or Select list';
dlgMarkupUserDefinedDivEdit = 'Edit list';
dlgMarkupUserDefinedNoLists = 'No lists';
dlgMarkupUserDefinedNoListsSel = 'Select ...';
dlgMarkupUserDefinedNewName = 'New list';

View File

@ -570,12 +570,21 @@ procedure TSynColorAttrEditor.UpdateAll;
(FCurrentColorScheme.AttributeByEnum[aha] <> nil) and
(Element.StoredName = FCurrentColorScheme.AttributeByEnum[aha].StoredName);
end;
var
UsingTempAttr: Boolean;
begin
if (FCurHighlightElement = nil) or UpdatingColor then
Exit;
if UpdatingColor then
exit;
UpdatingColor := True;
DisableAlign;
try
UsingTempAttr := FCurHighlightElement = nil;
if UsingTempAttr then begin
FCurHighlightElement := TColorSchemeAttribute.Create(nil, nil, '');
FCurHighlightElement.Clear;
end;
// Adjust color captions
ForeGroundUseDefaultCheckBox.Caption := dlgForecolor;
BackGroundUseDefaultCheckBox.Caption := dlgBackColor;
@ -804,6 +813,8 @@ begin
UpdatingColor := False;
finally
if UsingTempAttr then
FreeAndNil(FCurHighlightElement);
EnableAlign;
end;
pnlElementAttributesResize(nil);