⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 todolist.hpp

📁 TMS component pack v4.2 for delphi
💻 HPP
📖 第 1 页 / 共 5 页
字号:
	void __fastcall SetBackColor(const Graphics::TColor Value);
	void __fastcall SetFontColor(const Graphics::TColor Value);
	Comctrls::TMonthCalColors* __fastcall GetCalColors(void);
	void __fastcall SetCalColors(const Comctrls::TMonthCalColors* Value);
	
public:
	__fastcall TDatePickerColors(TEditColors* AOwner, TTodoDateTimePicker* AColorControl);
	__property TEditColors* Owner = {read=FOwner};
	
__published:
	__property Graphics::TColor BackColor = {read=GetBackColor, write=SetBackColor, nodefault};
	__property Graphics::TColor FontColor = {read=GetFontColor, write=SetFontColor, nodefault};
	__property Comctrls::TMonthCalColors* CalColors = {read=GetCalColors, write=SetCalColors};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TDatePickerColors(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TEditColors : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	TCustomTodoList* FOwner;
	TBackForeColors* FStringEditor;
	TBackForeColors* FMemoEditor;
	TBackForeColors* FIntegerEditor;
	TBackForeColors* FPriorityEditor;
	TBackForeColors* FStatusEditor;
	TDatePickerColors* FDefaultDateEditor;
	
public:
	__property TCustomTodoList* Owner = {read=FOwner};
	__fastcall TEditColors(TCustomTodoList* AOwner);
	__fastcall virtual ~TEditColors(void);
	
__published:
	__property TBackForeColors* StringEditor = {read=FStringEditor, write=FStringEditor};
	__property TBackForeColors* MemoEditor = {read=FMemoEditor, write=FMemoEditor};
	__property TBackForeColors* IntegerEditor = {read=FIntegerEditor, write=FIntegerEditor};
	__property TBackForeColors* PriorityEditor = {read=FPriorityEditor, write=FPriorityEditor};
	__property TBackForeColors* StatusEditor = {read=FStatusEditor, write=FStatusEditor};
	__property TDatePickerColors* DateEditor = {read=FDefaultDateEditor, write=FDefaultDateEditor};
};


typedef void __fastcall (__closure *TListHeaderEvent)(System::TObject* Sender, int Column);

typedef void __fastcall (__closure *TTodoItemEvent)(System::TObject* Sender, TTodoItem* ATodoItem, bool &Allow);

typedef void __fastcall (__closure *TTodoItemSelectEvent)(System::TObject* Sender, TTodoItem* ATodoItem);

typedef void __fastcall (__closure *TOnHeaderDragDropEvent)(System::TObject* Sender, int FromCol, int ToCol);

class DELPHICLASS TTodoItemCollection;
#pragma option push -b-
enum TGridLineStyle { glsNone, glsItems, glsAlways };
#pragma option pop

class PASCALIMPLEMENTATION TCustomTodoList : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	TTodoHeader* FTodoHeader;
	TTodoListBox* FTodoListBox;
	Forms::TFormBorderStyle FBorderStyle;
	Controls::TMouseEvent FOnMouseUp;
	Controls::TMouseEvent FOnMouseDown;
	Controls::TMouseMoveEvent FOnMouseMove;
	Controls::TKeyEvent FOnKeyDown;
	Controls::TKeyEvent FOnKeyUp;
	Controls::TKeyPressEvent FOnKeyPress;
	TPriorityToStringEvent FOnPriorityToString;
	TStatusToStringEvent FOnStatusToString;
	TStringToPriorityEvent FOnStringToPriority;
	TStringToStatusEvent FOnStringToStatus;
	int FPreviewHeight;
	int FItemHeight;
	TStatusStrings* FStatusStrings;
	TPriorityStrings* FPriorityStrings;
	TEditColors* FEditColors;
	TCompleteCheck* FCompleteCheck;
	Classes::TNotifyEvent FOnClick;
	Classes::TNotifyEvent FOnDblClick;
	Controls::TDragDropEvent FOnDragDrop;
	Controls::TEndDragEvent FOnEndDrag;
	Controls::TDragOverEvent FOnDragOver;
	Controls::TStartDragEvent FOnStartDrag;
	Classes::TNotifyEvent FOnEnter;
	Classes::TNotifyEvent FOnExit;
	bool FSorted;
	int FSortColumn;
	TSortDirection FSortDirection;
	int FNewIdx;
	TListHeaderEvent FOnHeaderRightClick;
	TListHeaderEvent FOnHeaderClick;
	bool FAutoInsertItem;
	bool FAutoDeleteItem;
	TTodoItemEvent FOnItemInsert;
	TTodoItemEvent FOnItemDelete;
	Classes::TNotifyEvent FOnEditStart;
	Classes::TNotifyEvent FOnEditDone;
	TTodoItemSelectEvent FOnItemSelect;
	TTodoItemSelectEvent FOnItemRightClick;
	bool FCompletionGraphic;
	bool FHintShowFullText;
	bool FHeaderDragDrop;
	TOnHeaderDragDropEvent FOnHeaderDragDrop;
	bool FAutoAdvanceEdit;
	int FStatusListWidth;
	int FPriorityListWidth;
	AnsiString FNullDate;
	TCompleteClick FOnCompleteClick;
	Classes::TStringList* FCategory;
	TTodoListStyle FLook;
	bool FAutoThemeAdapt;
	AnsiString FTotalTimeSuffix;
	void __fastcall NCPaintProc(void);
	Graphics::TColor __fastcall GetColor(void);
	HIDESBASE void __fastcall SetColor(const Graphics::TColor Value);
	Graphics::TFont* __fastcall GetFont(void);
	HIDESBASE void __fastcall SetFont(const Graphics::TFont* Value);
	TTodoItemCollection* __fastcall GetTodoItems(void);
	void __fastcall SetTodoItems(const TTodoItemCollection* Value);
	void __fastcall SetBorderStyle(const Forms::TBorderStyle Value);
	TTodoColumnCollection* __fastcall GetTodoColumns(void);
	void __fastcall SetTodoColumns(const TTodoColumnCollection* Value);
	void __fastcall SectionSized(System::TObject* Sender, int SectionIdx, int SectionWidth);
	AnsiString __fastcall GetDateFormat();
	void __fastcall SetDateFormat(const AnsiString Value);
	void __fastcall SetImages(const Controls::TImageList* Value);
	Controls::TImageList* __fastcall GetImages(void);
	TGridLineStyle __fastcall GetGridLines(void);
	void __fastcall SetGridLines(const TGridLineStyle Value);
	int __fastcall GetItemHeight(void);
	void __fastcall SetItemHeight(const int Value);
	bool __fastcall GetPreview(void);
	void __fastcall SetPreview(const bool Value);
	Graphics::TFont* __fastcall GetCompletionFont(void);
	Graphics::TFont* __fastcall GetPreviewFont(void);
	void __fastcall SetCompletionFont(const Graphics::TFont* Value);
	void __fastcall SetPreviewFont(const Graphics::TFont* Value);
	TProgressLook* __fastcall GetProgressLook(void);
	void __fastcall SetProgressLook(const TProgressLook* Value);
	Graphics::TFont* __fastcall GetPriorityFont(void);
	void __fastcall SetPriorityFont(const Graphics::TFont* Value);
	void __fastcall SetEditable(const bool Value);
	bool __fastcall GetEditable(void);
	bool __fastcall GetSelectAllInSubjectEdit(void);
	void __fastcall SetSelectAllInSubjectEdit(const bool Value);
	bool __fastcall GetShowSelection(void);
	void __fastcall SetShowSelection(const bool Value);
	void __fastcall SetPreviewHeight(const int Value);
	Graphics::TColor __fastcall GetSelectionColor(void);
	Graphics::TColor __fastcall GetSelectionFontColor(void);
	void __fastcall SetSelectionColor(const Graphics::TColor Value);
	void __fastcall SetSelectionFontColor(const Graphics::TColor Value);
	void __fastcall SetCompleteCheck(const TCompleteCheck* Value);
	Controls::TCursor __fastcall GetDragCursor(void);
	Controls::TDragKind __fastcall GetDragKind(void);
	Controls::TDragMode __fastcall GetDragMode(void);
	void __fastcall SetDragCursor(const Controls::TCursor Value);
	void __fastcall SetDragKind(const Controls::TDragKind Value);
	void __fastcall SetDragModeEx(const Controls::TDragMode Value);
	void __fastcall SetSortColumn(const int Value);
	void __fastcall SetSortDirection(const TSortDirection Value);
	void __fastcall SetSorted(const bool Value);
	TTodoItem* __fastcall GetSelected(void);
	Graphics::TFont* __fastcall GetHeaderFont(void);
	void __fastcall SetHeaderFont(const Graphics::TFont* Value);
	int __fastcall GetEditColumn(void);
	void __fastcall SetEditColumn(const int Value);
	bool __fastcall GetTabStopEx(void);
	void __fastcall SetTabStopEx(const bool Value);
	int __fastcall GetTabOrderEx(void);
	void __fastcall SetTabOrderEx(const int Value);
	void __fastcall SetCompletionGraphic(const bool Value);
	void __fastcall SetHeaderDragDrop(const bool Value);
	void __fastcall SetHintShowFullText(const bool Value);
	void __fastcall SetNullDate(const AnsiString Value);
	TTodoItem* __fastcall GetEditItem(void);
	Graphics::TColor __fastcall GetSelectionColorTo(void);
	void __fastcall SetSelectionColorTo(const Graphics::TColor Value);
	Graphics::TColor __fastcall GetActiveColumnColor(void);
	void __fastcall SetActiveColumnColor(const Graphics::TColor Value);
	bool __fastcall GetUseTab(void);
	void __fastcall SetUseTab(const bool Value);
	bool __fastcall GetMultiSelect(void);
	void __fastcall SetMultiSelect(const bool Value);
	int __fastcall GetSelCount(void);
	bool __fastcall GetItemSelected(int Index);
	void __fastcall SetItemSelected(int Index, const bool Value);
	bool __fastcall GetShowPriorityText(void);
	void __fastcall SetShowPriorityText(const bool Value);
	void __fastcall LisBoxHorizontalScroll(System::TObject* Sender);
	void __fastcall SetCategory(const Classes::TStringList* Value);
	Graphics::TColor __fastcall GetActiveItemColor(void);
	Graphics::TColor __fastcall GetActiveItemColorTo(void);
	void __fastcall SetActiveItemColor(const Graphics::TColor Value);
	void __fastcall SetActiveItemColorTo(const Graphics::TColor Value);
	bool __fastcall GetScrollHorizontal(void);
	void __fastcall SetScrollHorizontal(const bool Value);
	Graphics::TColor __fastcall GetHeaderColor(void);
	Graphics::TColor __fastcall GetHeaderColorTo(void);
	void __fastcall SetHeaderColor(const Graphics::TColor Value);
	void __fastcall SetHeaderColorTo(const Graphics::TColor Value);
	Graphics::TBitmap* __fastcall GetHandleGlyph(void);
	void __fastcall SetHandleGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetHeaderImages(const Controls::TImageList* Value);
	Controls::TImageList* __fastcall GetHeaderImages(void);
	int __fastcall GetHeaderHeight(void);
	void __fastcall SetHeaderHeight(const int Value);
	Graphics::TColor __fastcall GetGridLineColor(void);
	void __fastcall SetGridLineColor(const Graphics::TColor Value);
	Graphics::TColor __fastcall GetPreviewColor(void);
	Graphics::TColor __fastcall GetPreviewColorTo(void);
	void __fastcall SetPreviewColor(const Graphics::TColor Value);
	void __fastcall SetPreviewColorTo(const Graphics::TColor Value);
	bool __fastcall GetStretchLastColumn(void);
	void __fastcall SetStretchLastColumn(const bool Value);
	Graphics::TColor __fastcall GetHeaderActiveColor(void);
	Graphics::TColor __fastcall GetHeaderActiveColorTo(void);
	void __fastcall SetHeaderActiveColor(const Graphics::TColor Value);
	void __fastcall SetHeaderActiveColorTo(const Graphics::TColor Value);
	void __fastcall SetLook(const TTodoListStyle Value);
	void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
	void __fastcall ThemeAdapt(void);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	void __fastcall SetTotalTimeSuffix(const AnsiString Value);
	
protected:
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	void __fastcall ListMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ListMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall ListKeyUp(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall ListKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall ListKeyPress(System::TObject* Sender, char &Key);
	void __fastcall ListClick(System::TObject* Sender);
	void __fastcall ListDblClick(System::TObject* Sender);
	void __fastcall ListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
	void __fastcall ListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
	void __fastcall ListStartDrag(System::TObject* Sender, Controls::TDragObject* &DragObject);
	void __fastcall ListEndDrag(System::TObject* Sender, System::TObject* Target, int X, int Y);
	void __fastcall ListEnter(System::TObject* Sender);
	void __fastcall ListExit(System::TObject* Sender);
	void __fastcall ListSelect(System::TObject* Sender);
	void __fastcall HeaderClick(System::TObject* Sender, int Section);
	void __fastcall HeaderRightClick(System::TObject* Sender, int Section);
	void __fastcall CheckChanged(System::TObject* Sender);
	int __fastcall CompareItems(int A, int B);
	void __fastcall SwapItems(int A, int B);
	void __fastcall QuickSortItems(int Left, int Right);
	virtual bool __fastcall AllowAutoDelete(TTodoItem* ATodoItem);
	virtual bool __fastcall AllowAutoInsert(TTodoItem* ATodoItem);
	virtual void __fastcall ItemSelect(TTodoItem* ATodoItem);
	virtual void __fastcall EditDone(TTodoData Data, TTodoItem* EditItem);
	void __fastcall CompleteClick(int ItemIndex);
	virtual void __fastcall EditStart(void);
	__property TTodoListBox* TodoListBox = {read=FTodoListBox};
	void __fastcall ColumnsChanged(System::TObject* Sender);
	AnsiString __fastcall FormatDateTimeEx(AnsiString Format, System::TDateTime dt);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
	virtual int __fastcall GetVersionNr(void);
	virtual AnsiString __fastcall GetVersionString();
	
public:
	__fastcall virtual TCustomTodoList(Classes::TComponent* AOwner);
	__fastcall virtual ~TCustomTodoList(void);
	virtual void __fastcall Loaded(void);
	virtual void __fastcall SetFocus(void);
	virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
	virtual AnsiString __fastcall StatusToString(TTodoStatus AValue);
	virtual TTodoStatus __fastcall StringToStatus(AnsiString AValue);
	virtual AnsiString __fastcall PriorityToString(TTodoPriority AValue);
	virtual TTodoPriority __fastcall StringToPriority(AnsiString AValue);
	virtual AnsiString __fastcall StatusCommaText();
	virtual AnsiString __fastcall PriorityCommaText();
	void __fastcall SaveToStream(Classes::TStream* S);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -