-
Notifications
You must be signed in to change notification settings - Fork 2
/
tasksframe.lfm
169 lines (169 loc) · 4.87 KB
/
tasksframe.lfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
object TasksFrame: TTasksFrame
Left = 0
Height = 323
Top = 0
Width = 561
ClientHeight = 323
ClientWidth = 561
TabOrder = 0
DesignLeft = 282
DesignTop = 206
object ToolBar1: TToolBar
Left = 0
Height = 26
Top = 0
Width = 561
Caption = 'ToolBar1'
Images = NonVisualCtrlsDataModule.Icons
List = True
ParentShowHint = False
ShowHint = True
TabOrder = 0
object AddToolButton: TToolButton
Left = 1
Top = 2
Action = NonVisualCtrlsDataModule.CreateTaskAction
end
object EditToolButton: TToolButton
Left = 24
Top = 2
Action = NonVisualCtrlsDataModule.EditTaskAction
end
object RemoveToolButton: TToolButton
Left = 47
Top = 2
Action = NonVisualCtrlsDataModule.DeleteTaskAction
end
object SeparatorToolButton: TToolButton
Left = 70
Height = 22
Top = 2
Style = tbsSeparator
end
object StartTrackingToolButton: TToolButton
Left = 78
Top = 2
Action = NonVisualCtrlsDataModule.StartTimeTrackingAction
end
object StopTrackingToolButton: TToolButton
Left = 101
Top = 2
Action = NonVisualCtrlsDataModule.StopTimeTrackingAction
end
end
object TasksDBGrid: TVirtualDBGrid
AnchorSideTop.Control = FilterEdit
AnchorSideTop.Side = asrBottom
Left = 0
Height = 265
Top = 58
Width = 561
Align = alClient
Header.AutoSizeIndex = 2
Header.Columns = <
item
Position = 0
Text = 'ID'
Width = 30
FieldName = 'id'
ColumnType = ctDBField
end
item
Position = 1
Text = 'Name'
Width = 200
FieldName = 'name'
ColumnType = ctDBField
end
item
Position = 2
Text = 'Description'
Width = 87
FieldName = 'description'
ColumnType = ctDBField
end
item
Position = 3
Text = 'Created'
Width = 120
FieldName = 'created'
ColumnType = ctDBField
end
item
Position = 4
Text = 'Modified'
Width = 120
FieldName = 'modified'
ColumnType = ctDBField
end
item
Options = [coAllowClick, coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coAllowFocus, coEditable]
Position = 5
Text = 'is_active'
Width = 55
FieldName = 'is_active'
ColumnType = ctDBField
end
item
Options = [coAllowClick, coDraggable, coEnabled, coParentBidiMode, coParentColor, coResizable, coShowDropMark, coAllowFocus, coEditable]
Position = 6
Text = 'done'
Width = 38
FieldName = 'done'
ColumnType = ctDBField
end>
Header.Options = [hoAutoResize, hoColumnResize, hoDblClickResize, hoDrag, hoHotTrack, hoShowHint, hoShowSortGlyphs, hoVisible, hoDisableAnimatedResize]
Images = NonVisualCtrlsDataModule.Icons
LineStyle = lsSolid
PopupMenu = TasksGridPopupMenu
TabOrder = 1
OnBeforePaint = TasksDBGridBeforePaint
OnPaintText = TasksDBGridPaintText
OnGetImageIndex = TasksDBGridGetImageIndex
OnKeyDown = TasksDBGridKeyDown
BorderSpacing.Top = 32
DBOptions.DataSource = DatabaseDataModule.TasksDataSource
DBOptions.OddRowColor = clWindow
DBOptions.EvenRowColor = clWindow
DBOptions.SortColumnBgColor = 14745599
DBOptions.AdvOptions = [aoStrippedRows, aoShowHorzLines, aoShowVertLines, aoAutoInsertIndicator, aoAllowSorting, aoHighlightSortColumn, aoHourGlassCursor, aoSortDBFieldColumns, aoEditDBFieldColumns, aoSortCalculatedColumns, aoFullRowSelect]
OnRecordDblClick = TasksDBGridRecordDblClick
end
object FilterEdit: TListViewFilterEdit
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = ToolBar1
AnchorSideTop.Side = asrBottom
Left = 0
Height = 23
Top = 26
Width = 300
ButtonWidth = 23
NumGlyphs = 1
MaxLength = 0
TabOrder = 2
OnChange = FilterEditChange
end
object TasksGridPopupMenu: TPopupMenu
Images = NonVisualCtrlsDataModule.Icons
Left = 448
Top = 216
object MenuItem1: TMenuItem
Action = NonVisualCtrlsDataModule.EditTaskAction
end
object MenuItem2: TMenuItem
Action = NonVisualCtrlsDataModule.DeleteTaskAction
end
object MenuItem5: TMenuItem
Action = NonVisualCtrlsDataModule.StartTimeTrackingAction
end
object MenuItem6: TMenuItem
Action = NonVisualCtrlsDataModule.StopTimeTrackingAction
end
object MenuItem3: TMenuItem
Action = NonVisualCtrlsDataModule.MarkTaskAsDoneAction
end
object MenuItem4: TMenuItem
Action = NonVisualCtrlsDataModule.UnMarkTaskAsDoneAction
end
end
end