You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deleted Keywords will now be kept in the Database, to be still displayed in Presets.
- Deleted Keywords will be reenabled in the Database instead of adding them again.
- Pressing the Spacebar-Key while a Preset with a Sample Image is selected, display the enlarged display of the Sample Image.
- Opening Database Connections using just DB.Connect instead of If DB.Connect.
- Missing Keywords in Database, will no longer cause empty spaces followed by a "," anymore.
Copy file name to clipboardExpand all lines: Container_Preset.xojo_window
+86-18Lines changed: 86 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ Begin DesktopContainer Container_Preset
90
90
Text = ""
91
91
TextAlignment = 0
92
92
TextColor = &c000000
93
-
Tooltip = "Save your current selection of keywords, your example image and your model settings as a preset under a freely selectable name. If you selected a preset from the list below and do not change the name, the selected preset will be updated with your current settings."
93
+
Tooltip = "A name for your current selection of keywords, your example image and your model settings.\n\nIf you selected a preset from the list below and do not change the name, saving the selected preset will update it with your current settings.\n\nPress Enter or the Save Button, to save your current Preset."
94
94
Top = 0
95
95
Transparent = False
96
96
Underline = False
@@ -104,7 +104,7 @@ Begin DesktopContainer Container_Preset
104
104
Cancel = False
105
105
Caption = "💾"
106
106
Default = False
107
-
Enabled = True
107
+
Enabled = False
108
108
FontName = "System"
109
109
FontSize = 0.0
110
110
FontUnit = 0
@@ -123,7 +123,7 @@ Begin DesktopContainer Container_Preset
123
123
TabIndex = 2
124
124
TabPanelIndex = 0
125
125
TabStop = True
126
-
Tooltip = "Save the currently selected keywords as a new preset under the name entered on the left.\r\n\r\nIf you change the name shown at left of a previously selected preset, the preset will be saved as a new preset with the new name."
126
+
Tooltip = "Save the currently selected keywords as a preset labeled using the name entered in the Textfield to the left.\n\nIf you selected a preset from the list below and do not change the name, saving the selected preset will update it with your current settings."
127
127
Top = 0
128
128
Transparent = False
129
129
Underline = False
@@ -136,7 +136,7 @@ Begin DesktopContainer Container_Preset
136
136
Cancel = False
137
137
Caption = "🗑️"
138
138
Default = False
139
-
Enabled = True
139
+
Enabled = False
140
140
FontName = "System"
141
141
FontSize = 0.0
142
142
FontUnit = 0
@@ -155,7 +155,7 @@ Begin DesktopContainer Container_Preset
155
155
TabIndex = 3
156
156
TabPanelIndex = 0
157
157
TabStop = True
158
-
Tooltip = "Delete the current preset."
158
+
Tooltip = "Delete the currently selected presets."
159
159
Top = 0
160
160
Transparent = False
161
161
Underline = False
@@ -197,12 +197,12 @@ Begin DesktopContainer Container_Preset
197
197
LockTop = True
198
198
NegativeColumn = 3
199
199
RequiresSelection= True
200
-
RowSelectionType= 0
200
+
RowSelectionType= 1
201
201
Scope = 2
202
202
TabIndex = 4
203
203
TabPanelIndex = 0
204
204
TabStop = True
205
-
Tooltip = ""
205
+
Tooltip = "Press the SPACE-Key to enlarge the example image.\n\nSelect one or more Presets and click the Trashcan Button to delete selected Presets."
206
206
Top = 34
207
207
Transparent = False
208
208
Underline = False
@@ -728,20 +728,29 @@ End
728
728
Sub Preset_Delete()
729
729
If ListBox_Presets.SelectedRowIndex=-1ThenReturn
730
730
731
-
If Show_MessageDialog(MessageDialog.IconTypes.Caution, "Delete Preset", "Cancel", "Delete Preset", _
732
-
"Are you sure you want to delete the Preset named " + ListBox_Presets.SelectedRowValue + " ?") Then
733
-
734
-
Var PS AsNew Class_Preset(ListBox_Presets.RowTagAt(ListBox_Presets.SelectedRowIndex).IntegerValue)
731
+
If Show_MessageDialog(MessageDialog.IconTypes.Caution, "Delete Preset(s)", "Cancel", "Delete Preset(s)", _
732
+
"Are you sure you want to delete the selected Preset(s)?") Then
735
733
736
734
Var SelectedRowIndex AsInteger = ListBox_Presets.SelectedRowIndex
737
-
If PS.Delete Then
738
-
739
-
CurrentPreset.Sample = Nil
740
-
Canvas_Sample.Refresh
735
+
736
+
For X AsInteger = ListBox_Presets.LastRowIndex DownTo0
741
737
742
-
Presets_List
738
+
If ListBox_Presets.RowSelectedAt(X) Then
739
+
740
+
Var PS AsNew Class_Preset(ListBox_Presets.RowTagAt(X).IntegerValue)
741
+
If PS.Delete Then
742
+
743
+
CurrentPreset.Sample = Nil
744
+
Canvas_Sample.Refresh
745
+
746
+
End If
747
+
748
+
End If
743
749
744
-
End If
750
+
Next
751
+
752
+
Presets_List
753
+
745
754
If SelectedRowIndex<ListBox_Presets.RowCount Then ListBox_Presets.SelectedRowIndex=SelectedRowIndex
0 commit comments