mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 01:19:47 +01:00 
			
		
		
		
	ideintf, ide: change result type of TMainIDEBase.GetMainBar from TComponent to TForm.
It was an unnecessary limitation because there is Forms dependency in both units already. git-svn-id: trunk@51050 -
This commit is contained in:
		
							parent
							
								
									574bda0e99
								
							
						
					
					
						commit
						f1c10c63a7
					
				@ -297,7 +297,7 @@ type
 | 
			
		||||
    property ToolStatus: TLazToolStatus read FToolStatus write SetToolStatus;
 | 
			
		||||
 | 
			
		||||
    // the main window with the IDE menu
 | 
			
		||||
    function GetMainBar: TComponent; virtual; abstract;
 | 
			
		||||
    function GetMainBar: TForm; virtual; abstract;
 | 
			
		||||
    property MainBarSubTitle: string read FMainBarSubTitle write SetMainBarSubTitle;
 | 
			
		||||
 | 
			
		||||
    // find file
 | 
			
		||||
 | 
			
		||||
@ -137,7 +137,7 @@ type
 | 
			
		||||
    procedure StartIDE; virtual; abstract;
 | 
			
		||||
    destructor Destroy; override;
 | 
			
		||||
    procedure CreateOftenUsedForms; virtual; abstract;
 | 
			
		||||
    function GetMainBar: TComponent; override;
 | 
			
		||||
    function GetMainBar: TForm; override;
 | 
			
		||||
    procedure SetRecentProjectFilesMenu;
 | 
			
		||||
    procedure SetRecentFilesMenu;
 | 
			
		||||
    function BeginCodeTool(var ActiveSrcEdit: TSourceEditor;
 | 
			
		||||
@ -705,7 +705,7 @@ begin
 | 
			
		||||
  ActiveUnitInfo:=AnUnitInfo;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
function TMainIDEBase.GetMainBar: TComponent;
 | 
			
		||||
function TMainIDEBase.GetMainBar: TForm;
 | 
			
		||||
begin
 | 
			
		||||
  Result:=MainIDEBar;
 | 
			
		||||
end;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user