mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Introduce tree favorites:
* Add a button right besides db/table filter for hiding non-favorites * Add an icon on the very left of table nodes, showing whether they are favorites Fixes issue #3366
This commit is contained in:
@ -25,6 +25,7 @@ type
|
||||
function GetObjType: String;
|
||||
function GetImageIndex: Integer;
|
||||
function GetOverlayImageIndex: Integer;
|
||||
function GetPath: String;
|
||||
function GetCreateCode: String;
|
||||
procedure SetCreateCode(Value: String);
|
||||
public
|
||||
@ -47,6 +48,7 @@ type
|
||||
property ObjType: String read GetObjType;
|
||||
property ImageIndex: Integer read GetImageIndex;
|
||||
property OverlayImageIndex: Integer read GetOverlayImageIndex;
|
||||
property Path: String read GetPath;
|
||||
property CreateCode: String read GetCreateCode write SetCreateCode;
|
||||
property WasSelected: Boolean read FWasSelected write FWasSelected;
|
||||
property Connection: TDBConnection read FConnection;
|
||||
@ -5205,6 +5207,12 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
function TDBObject.GetPath: String;
|
||||
begin
|
||||
Result := Database + DELIM + Schema + DELIM + Name;
|
||||
end;
|
||||
|
||||
|
||||
function TDBObject.GetCreateCode: String;
|
||||
begin
|
||||
if not FCreateCodeFetched then try
|
||||
|
Reference in New Issue
Block a user