tvplanit: Beginning to integrate TVpGanttView in the tvplanit printing system. Still a long way to go...

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8453 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-09-06 23:12:47 +00:00
parent f2b4168f92
commit 39d169dea7
2 changed files with 21 additions and 13 deletions

View File

@ -1,6 +1,6 @@
object frmEditElement: TfrmEditElement object frmEditElement: TfrmEditElement
Left = 288 Left = 288
Height = 447 Height = 466
Top = 321 Top = 321
Width = 473 Width = 473
HorzScrollBar.Page = 378 HorzScrollBar.Page = 378
@ -8,7 +8,7 @@ object frmEditElement: TfrmEditElement
AutoSize = True AutoSize = True
BorderStyle = bsDialog BorderStyle = bsDialog
Caption = 'Edit Element' Caption = 'Edit Element'
ClientHeight = 447 ClientHeight = 466
ClientWidth = 473 ClientWidth = 473
OnCreate = FormCreate OnCreate = FormCreate
OnShow = FormShow OnShow = FormShow
@ -16,7 +16,7 @@ object frmEditElement: TfrmEditElement
object gbVisual: TGroupBox object gbVisual: TGroupBox
Left = 12 Left = 12
Height = 144 Height = 144
Top = 196 Top = 215
Width = 449 Width = 449
Align = alTop Align = alTop
AutoSize = True AutoSize = True
@ -359,7 +359,7 @@ object frmEditElement: TfrmEditElement
object gbCaption: TGroupBox object gbCaption: TGroupBox
Left = 12 Left = 12
Height = 54 Height = 54
Top = 352 Top = 371
Width = 449 Width = 449
Align = alTop Align = alTop
AutoSize = True AutoSize = True
@ -466,7 +466,7 @@ object frmEditElement: TfrmEditElement
object Panel2: TPanel object Panel2: TPanel
Left = 12 Left = 12
Height = 51 Height = 51
Top = 133 Top = 152
Width = 451 Width = 451
Align = alTop Align = alTop
AutoSize = True AutoSize = True
@ -564,7 +564,7 @@ object frmEditElement: TfrmEditElement
object ButtonPanel: TPanel object ButtonPanel: TPanel
Left = 0 Left = 0
Height = 25 Height = 25
Top = 414 Top = 433
Width = 461 Width = 461
Align = alTop Align = alTop
AutoSize = True AutoSize = True
@ -613,7 +613,7 @@ object frmEditElement: TfrmEditElement
end end
object ItemTypePanel: TPanel object ItemTypePanel: TPanel
Left = 12 Left = 12
Height = 78 Height = 97
Top = 43 Top = 43
Width = 451 Width = 451
Align = alTop Align = alTop
@ -622,12 +622,12 @@ object frmEditElement: TfrmEditElement
BorderSpacing.Top = 12 BorderSpacing.Top = 12
BorderSpacing.Right = 10 BorderSpacing.Right = 10
BevelOuter = bvNone BevelOuter = bvNone
ClientHeight = 78 ClientHeight = 97
ClientWidth = 451 ClientWidth = 451
TabOrder = 1 TabOrder = 1
object rgItemType: TRadioGroup object rgItemType: TRadioGroup
Left = 0 Left = 0
Height = 78 Height = 97
Top = 0 Top = 0
Width = 451 Width = 451
Align = alClient Align = alClient
@ -641,10 +641,10 @@ object frmEditElement: TfrmEditElement
ChildSizing.ShrinkHorizontal = crsScaleChilds ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 4 ChildSizing.ControlsPerLine = 3
ClientHeight = 58 ClientHeight = 77
ClientWidth = 447 ClientWidth = 447
Columns = 4 Columns = 3
ItemIndex = 0 ItemIndex = 0
Items.Strings = ( Items.Strings = (
'DayView' 'DayView'
@ -655,6 +655,7 @@ object frmEditElement: TfrmEditElement
'Caption' 'Caption'
'Tasks' 'Tasks'
'Contacts' 'Contacts'
'GanttView'
) )
OnClick = rgItemTypeClick OnClick = rgItemTypeClick
ParentFont = False ParentFont = False

View File

@ -370,6 +370,7 @@ type
FCalendar: TComponent; FCalendar: TComponent;
FContactGrid: TComponent; FContactGrid: TComponent;
FTaskList: TComponent; FTaskList: TComponent;
FGanttView: TComponent;
{ Notification Handles } { Notification Handles }
FNotifiers: TList; FNotifiers: TList;
FDefaultXMLFileName: string; FDefaultXMLFileName: string;
@ -433,6 +434,7 @@ type
property MonthView: TComponent read FMonthView write FMonthView; property MonthView: TComponent read FMonthView write FMonthView;
property Printing: Boolean read FPrintJob; property Printing: Boolean read FPrintJob;
property TaskList: TComponent read FTaskList write FTaskList; property TaskList: TComponent read FTaskList write FTaskList;
property GanttView: TComponent read FGanttView write FGanttView;
property UseFormComponents: Boolean read FUseFormComponents write SetUseFormComponents default True; property UseFormComponents: Boolean read FUseFormComponents write SetUseFormComponents default True;
property WeekView: TComponent read FWeekView write FWeekView; property WeekView: TComponent read FWeekView write FWeekView;
@ -455,7 +457,8 @@ uses
DateUtils, DateUtils,
{$ENDIF} {$ENDIF}
VpConst, VpMisc, VpBaseDS, VpPrtFmtCBox, VpConst, VpMisc, VpBaseDS, VpPrtFmtCBox,
VpDayView, VpWeekView, VpMonthView, VpTaskList, VpContactGrid, VpCalendar; VpDayView, VpWeekView, VpMonthView, VpGanttView,
VpTaskList, VpContactGrid, VpCalendar;
function XMLizeString(const s: string): string; function XMLizeString(const s: string): string;
var var
@ -1386,6 +1389,8 @@ begin
TVpContactGrid(FContactGrid).Parent := FParent; TVpContactGrid(FContactGrid).Parent := FParent;
FTaskList := TVpTaskList.Create(FParent); FTaskList := TVpTaskList.Create(FParent);
TVpTaskList(FTaskList).Parent := FParent; TVpTaskList(FTaskList).Parent := FParent;
FGanttView := TVpGanttView.Create(FParent);
TVpGanttView(FGanttView).Parent := FParent;
{$ENDIF} {$ENDIF}
end; end;
{=====} {=====}
@ -1407,6 +1412,7 @@ begin
FCalendar.Free; FCalendar.Free;
FContactGrid.Free; FContactGrid.Free;
FTaskList.Free; FTaskList.Free;
FGanttView.Free;
FParent.Free; FParent.Free;
{$ENDIF} {$ENDIF}
end; end;
@ -1646,6 +1652,7 @@ var
itCalendar : RenderControl := TVpLinkableControl(FCalendar); itCalendar : RenderControl := TVpLinkableControl(FCalendar);
itContacts : RenderControl := TVpLinkableControl(FContactGrid); itContacts : RenderControl := TVpLinkableControl(FContactGrid);
itTasks : RenderControl := TVpLinkableControl(FTaskList); itTasks : RenderControl := TVpLinkableControl(FTaskList);
itGanttView : RenderControl := TVpLinkableControl(FGanttView);
end; end;
if FOwner is TVpControlLink then if FOwner is TVpControlLink then
RenderControl.DataStore := (FOwner as TVPControlLink).DataStore; RenderControl.DataStore := (FOwner as TVPControlLink).DataStore;