mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 05:01:50 +02:00
ide, codetools, ideintf: fix warnings
git-svn-id: trunk@17616 -
This commit is contained in:
parent
2f04ce8eba
commit
fb380a80d4
@ -592,7 +592,6 @@ type
|
|||||||
Params: TFindDeclarationParams): boolean;
|
Params: TFindDeclarationParams): boolean;
|
||||||
protected
|
protected
|
||||||
WordIsPredefinedIdentifier: TKeyWordFunctionList;
|
WordIsPredefinedIdentifier: TKeyWordFunctionList;
|
||||||
procedure BeginParsing(DeleteNodes, OnlyInterfaceNeeded: boolean); override;
|
|
||||||
protected
|
protected
|
||||||
// node caches
|
// node caches
|
||||||
procedure DoDeleteNodes; override;
|
procedure DoDeleteNodes; override;
|
||||||
@ -697,6 +696,7 @@ type
|
|||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure ConsistencyCheck; override;
|
procedure ConsistencyCheck; override;
|
||||||
|
|
||||||
|
procedure BeginParsing(DeleteNodes, OnlyInterfaceNeeded: boolean); override;
|
||||||
procedure ValidateToolDependencies; override;
|
procedure ValidateToolDependencies; override;
|
||||||
function FindDeclaration(const CursorPos: TCodeXYPosition;
|
function FindDeclaration(const CursorPos: TCodeXYPosition;
|
||||||
out NewPos: TCodeXYPosition; out NewTopLine: integer): boolean;
|
out NewPos: TCodeXYPosition; out NewTopLine: integer): boolean;
|
||||||
|
@ -82,6 +82,9 @@ type
|
|||||||
procedure WriteSet(Value: LongInt; SetType: Pointer); override;
|
procedure WriteSet(Value: LongInt; SetType: Pointer); override;
|
||||||
procedure WriteString(const Value: String); override;
|
procedure WriteString(const Value: String); override;
|
||||||
procedure WriteWideString(const Value: WideString); override;
|
procedure WriteWideString(const Value: WideString); override;
|
||||||
|
{$IF DECLARED(UnicodeString)}
|
||||||
|
procedure WriteUnicodeString(const Value: UnicodeString); override;
|
||||||
|
{$IFEND}
|
||||||
{$IFDEF HasReadWriteBuf}
|
{$IFDEF HasReadWriteBuf}
|
||||||
procedure Write(const Buffer; Count: Longint); override;
|
procedure Write(const Buffer; Count: Longint); override;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -452,6 +455,14 @@ begin
|
|||||||
GetPropertyElement('widestring')['value'] := System.UTF8Encode(Value);
|
GetPropertyElement('widestring')['value'] := System.UTF8Encode(Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IF DECLARED(UnicodeString)}
|
||||||
|
procedure TXMLObjectWriter.WriteUnicodeString(const Value: UnicodeString);
|
||||||
|
// save unicodestrings as utf8
|
||||||
|
begin
|
||||||
|
GetPropertyElement('unicodestring')['value'] := System.UTF8Encode(Value);
|
||||||
|
end;
|
||||||
|
{$endif}
|
||||||
|
|
||||||
{$IFDEF HasReadWriteBuf}
|
{$IFDEF HasReadWriteBuf}
|
||||||
procedure TXMLObjectWriter.Write(const Buffer; Count: Longint);
|
procedure TXMLObjectWriter.Write(const Buffer; Count: Longint);
|
||||||
begin
|
begin
|
||||||
|
@ -46,7 +46,7 @@ type
|
|||||||
{ TLazTextConverterToolClasses }
|
{ TLazTextConverterToolClasses }
|
||||||
|
|
||||||
TLazTextConverterToolClasses = class(TTextConverterToolClasses)
|
TLazTextConverterToolClasses = class(TTextConverterToolClasses)
|
||||||
protected
|
public
|
||||||
function GetTempFilename: string; override;
|
function GetTempFilename: string; override;
|
||||||
function SupportsType(aTextType: TTextConverterType): boolean; override;
|
function SupportsType(aTextType: TTextConverterType): boolean; override;
|
||||||
function LoadFromFile(Converter: TIDETextConverter; const AFilename: string;
|
function LoadFromFile(Converter: TIDETextConverter; const AFilename: string;
|
||||||
|
@ -45,12 +45,12 @@ type
|
|||||||
protected
|
protected
|
||||||
procedure DoSelectionChanged; override;
|
procedure DoSelectionChanged; override;
|
||||||
function GetImageFor(AComponent: TComponent):integer;
|
function GetImageFor(AComponent: TComponent):integer;
|
||||||
procedure DragDrop(Source: TObject; X,Y: Integer); override;
|
|
||||||
procedure DragOver(Source: TObject; X,Y: Integer; State: TDragState;
|
procedure DragOver(Source: TObject; X,Y: Integer; State: TDragState;
|
||||||
var Accept: Boolean); override;
|
var Accept: Boolean); override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure DragDrop(Source: TObject; X,Y: Integer); override;
|
||||||
procedure RebuildComponentNodes; virtual;
|
procedure RebuildComponentNodes; virtual;
|
||||||
procedure UpdateComponentNodesValues; virtual;
|
procedure UpdateComponentNodesValues; virtual;
|
||||||
function CreateNodeCaption(APersistent: TPersistent): string; virtual;
|
function CreateNodeCaption(APersistent: TPersistent): string; virtual;
|
||||||
|
@ -4,47 +4,21 @@ object ObjectInspectorDlg: TObjectInspectorDlg
|
|||||||
Top = 175
|
Top = 175
|
||||||
Width = 275
|
Width = 275
|
||||||
HelpContext = 0
|
HelpContext = 0
|
||||||
Align = alNone
|
|
||||||
AllowDropFiles = False
|
|
||||||
AutoScroll = True
|
|
||||||
AutoSize = False
|
|
||||||
BorderIcons = [biSystemMenu, biMinimize, biMaximize]
|
|
||||||
BorderStyle = bsSizeable
|
|
||||||
Caption = 'ObjectInspectorDlg'
|
Caption = 'ObjectInspectorDlg'
|
||||||
ChildSizing.LeftRightSpacing = 0
|
|
||||||
ChildSizing.TopBottomSpacing = 0
|
|
||||||
ChildSizing.HorizontalSpacing = 0
|
|
||||||
ChildSizing.VerticalSpacing = 0
|
|
||||||
ChildSizing.ControlsPerLine = 0
|
|
||||||
ClientHeight = 669
|
ClientHeight = 669
|
||||||
ClientWidth = 275
|
ClientWidth = 275
|
||||||
DockSite = False
|
|
||||||
DragKind = dkDrag
|
|
||||||
DragMode = dmManual
|
|
||||||
Enabled = True
|
|
||||||
Font.Height = 0
|
Font.Height = 0
|
||||||
Font.Style = []
|
Font.Style = []
|
||||||
FormStyle = fsNormal
|
|
||||||
KeyPreview = True
|
KeyPreview = True
|
||||||
OnResize = ObjectInspectorResize
|
OnResize = ObjectInspectorResize
|
||||||
ParentBiDiMode = True
|
|
||||||
ParentFont = False
|
|
||||||
PopupMenu = MainPopupMenu
|
PopupMenu = MainPopupMenu
|
||||||
Position = poDesigned
|
|
||||||
ShowInTaskBar = stDefault
|
|
||||||
UseDockManager = False
|
|
||||||
LCLVersion = '0.9.27'
|
LCLVersion = '0.9.27'
|
||||||
WindowState = wsNormal
|
|
||||||
object StatusBar: TStatusBar
|
object StatusBar: TStatusBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 646
|
Top = 646
|
||||||
Width = 275
|
Width = 275
|
||||||
HelpContext = 0
|
HelpContext = 0
|
||||||
DragCursor = crDrag
|
|
||||||
DragKind = dkDrag
|
|
||||||
DragMode = dmManual
|
|
||||||
Enabled = True
|
|
||||||
Panels = <
|
Panels = <
|
||||||
item
|
item
|
||||||
Alignment = taLeftJustify
|
Alignment = taLeftJustify
|
||||||
@ -54,7 +28,6 @@ object ObjectInspectorDlg: TObjectInspectorDlg
|
|||||||
Alignment = taLeftJustify
|
Alignment = taLeftJustify
|
||||||
Width = 50
|
Width = 50
|
||||||
end>
|
end>
|
||||||
ParentShowHint = True
|
|
||||||
SimplePanel = False
|
SimplePanel = False
|
||||||
end
|
end
|
||||||
object AvailPersistentComboBox: TComboBox
|
object AvailPersistentComboBox: TComboBox
|
||||||
@ -64,40 +37,13 @@ object ObjectInspectorDlg: TObjectInspectorDlg
|
|||||||
Width = 275
|
Width = 275
|
||||||
HelpContext = 0
|
HelpContext = 0
|
||||||
Align = alTop
|
Align = alTop
|
||||||
ArrowKeysTraverseList = True
|
|
||||||
AutoComplete = False
|
AutoComplete = False
|
||||||
AutoCompleteText = [cbactEndOfLineComplete, cbactSearchAscending]
|
|
||||||
AutoDropDown = False
|
|
||||||
AutoSelect = False
|
|
||||||
AutoSize = True
|
|
||||||
BorderSpacing.Left = 0
|
|
||||||
BorderSpacing.Top = 0
|
|
||||||
BorderSpacing.Right = 0
|
|
||||||
BorderSpacing.Bottom = 0
|
|
||||||
BorderSpacing.Around = 0
|
|
||||||
BorderSpacing.CellAlignHorizontal = ccaFill
|
|
||||||
BorderSpacing.CellAlignVertical = ccaFill
|
|
||||||
CharCase = ecNormal
|
|
||||||
Ctl3D = False
|
Ctl3D = False
|
||||||
DragCursor = crDrag
|
|
||||||
DragMode = dmManual
|
|
||||||
DropDownCount = 8
|
|
||||||
Enabled = True
|
|
||||||
ItemHeight = 13
|
ItemHeight = 13
|
||||||
ItemIndex = -1
|
|
||||||
ItemWidth = 0
|
ItemWidth = 0
|
||||||
MaxLength = 0
|
|
||||||
OnCloseUp = AvailComboBoxCloseUp
|
OnCloseUp = AvailComboBoxCloseUp
|
||||||
ParentBidiMode = True
|
|
||||||
ParentColor = False
|
|
||||||
ParentCtl3D = True
|
|
||||||
ParentFont = True
|
|
||||||
ParentShowHint = True
|
|
||||||
Sorted = False
|
|
||||||
Style = csDropDownList
|
Style = csDropDownList
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
TabStop = True
|
|
||||||
Visible = True
|
|
||||||
end
|
end
|
||||||
object MainPopupMenu: TPopupMenu
|
object MainPopupMenu: TPopupMenu
|
||||||
OnPopup = OnMainPopupMenuPopup
|
OnPopup = OnMainPopupMenuPopup
|
||||||
|
@ -2,35 +2,17 @@
|
|||||||
|
|
||||||
LazarusResources.Add('TObjectInspectorDlg','FORMDATA',[
|
LazarusResources.Add('TObjectInspectorDlg','FORMDATA',[
|
||||||
'TPF0'#19'TObjectInspectorDlg'#18'ObjectInspectorDlg'#4'Left'#3'$'#1#6'Height'
|
'TPF0'#19'TObjectInspectorDlg'#18'ObjectInspectorDlg'#4'Left'#3'$'#1#6'Height'
|
||||||
+#3#157#2#3'Top'#3#175#0#5'Width'#3#19#1#11'HelpContext'#2#0#5'Align'#7#6'alN'
|
+#3#157#2#3'Top'#3#175#0#5'Width'#3#19#1#11'HelpContext'#2#0#7'Caption'#6#18
|
||||||
+'one'#14'AllowDropFiles'#8#10'AutoScroll'#9#8'AutoSize'#8#11'BorderIcons'#11
|
+'ObjectInspectorDlg'#12'ClientHeight'#3#157#2#11'ClientWidth'#3#19#1#11'Font'
|
||||||
+#12'biSystemMenu'#10'biMinimize'#10'biMaximize'#0#11'BorderStyle'#7#10'bsSiz'
|
+'.Height'#2#0#10'Font.Style'#11#0#10'KeyPreview'#9#8'OnResize'#7#21'ObjectIn'
|
||||||
+'eable'#7'Caption'#6#18'ObjectInspectorDlg'#28'ChildSizing.LeftRightSpacing'
|
+'spectorResize'#9'PopupMenu'#7#13'MainPopupMenu'#10'LCLVersion'#6#6'0.9.27'#0
|
||||||
+#2#0#28'ChildSizing.TopBottomSpacing'#2#0#29'ChildSizing.HorizontalSpacing'#2
|
+#10'TStatusBar'#9'StatusBar'#4'Left'#2#0#6'Height'#2#23#3'Top'#3#134#2#5'Wid'
|
||||||
+#0#27'ChildSizing.VerticalSpacing'#2#0#27'ChildSizing.ControlsPerLine'#2#0#12
|
+'th'#3#19#1#11'HelpContext'#2#0#6'Panels'#14#1#9'Alignment'#7#13'taLeftJusti'
|
||||||
+'ClientHeight'#3#157#2#11'ClientWidth'#3#19#1#8'DockSite'#8#8'DragKind'#7#6
|
+'fy'#5'Width'#2'd'#0#1#9'Alignment'#7#13'taLeftJustify'#5'Width'#2'2'#0#0#11
|
||||||
+'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9#11'Font.Height'#2#0#10'Font.'
|
+'SimplePanel'#8#0#0#9'TComboBox'#23'AvailPersistentComboBox'#4'Left'#2#0#6'H'
|
||||||
+'Style'#11#0#9'FormStyle'#7#8'fsNormal'#10'KeyPreview'#9#8'OnResize'#7#21'Ob'
|
+'eight'#2#21#3'Top'#2#0#5'Width'#3#19#1#11'HelpContext'#2#0#5'Align'#7#5'alT'
|
||||||
+'jectInspectorResize'#14'ParentBiDiMode'#9#10'ParentFont'#8#9'PopupMenu'#7#13
|
+'op'#12'AutoComplete'#8#5'Ctl3D'#8#10'ItemHeight'#2#13#9'ItemWidth'#2#0#9'On'
|
||||||
+'MainPopupMenu'#8'Position'#7#10'poDesigned'#13'ShowInTaskBar'#7#9'stDefault'
|
+'CloseUp'#7#20'AvailComboBoxCloseUp'#5'Style'#7#14'csDropDownList'#8'TabOrde'
|
||||||
+#14'UseDockManager'#8#10'LCLVersion'#6#6'0.9.27'#11'WindowState'#7#8'wsNorma'
|
+'r'#2#0#0#0#10'TPopupMenu'#13'MainPopupMenu'#7'OnPopup'#7#20'OnMainPopupMenu'
|
||||||
+'l'#0#10'TStatusBar'#9'StatusBar'#4'Left'#2#0#6'Height'#2#23#3'Top'#3#134#2#5
|
+'Popup'#4'left'#2#9#3'top'#2#11#0#0#0
|
||||||
+'Width'#3#19#1#11'HelpContext'#2#0#10'DragCursor'#7#6'crDrag'#8'DragKind'#7#6
|
|
||||||
+'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9#6'Panels'#14#1#9'Alignment'#7
|
|
||||||
+#13'taLeftJustify'#5'Width'#2'd'#0#1#9'Alignment'#7#13'taLeftJustify'#5'Widt'
|
|
||||||
+'h'#2'2'#0#0#14'ParentShowHint'#9#11'SimplePanel'#8#0#0#9'TComboBox'#23'Avai'
|
|
||||||
+'lPersistentComboBox'#4'Left'#2#0#6'Height'#2#21#3'Top'#2#0#5'Width'#3#19#1
|
|
||||||
+#11'HelpContext'#2#0#5'Align'#7#5'alTop'#21'ArrowKeysTraverseList'#9#12'Auto'
|
|
||||||
+'Complete'#8#16'AutoCompleteText'#11#22'cbactEndOfLineComplete'#20'cbactSear'
|
|
||||||
+'chAscending'#0#12'AutoDropDown'#8#10'AutoSelect'#8#8'AutoSize'#9#18'BorderS'
|
|
||||||
+'pacing.Left'#2#0#17'BorderSpacing.Top'#2#0#19'BorderSpacing.Right'#2#0#20'B'
|
|
||||||
+'orderSpacing.Bottom'#2#0#20'BorderSpacing.Around'#2#0'!BorderSpacing.CellAl'
|
|
||||||
+'ignHorizontal'#7#7'ccaFill'#31'BorderSpacing.CellAlignVertical'#7#7'ccaFill'
|
|
||||||
+#8'CharCase'#7#8'ecNormal'#5'Ctl3D'#8#10'DragCursor'#7#6'crDrag'#8'DragMode'
|
|
||||||
+#7#8'dmManual'#13'DropDownCount'#2#8#7'Enabled'#9#10'ItemHeight'#2#13#9'Item'
|
|
||||||
+'Index'#2#255#9'ItemWidth'#2#0#9'MaxLength'#2#0#9'OnCloseUp'#7#20'AvailCombo'
|
|
||||||
+'BoxCloseUp'#14'ParentBidiMode'#9#11'ParentColor'#8#11'ParentCtl3D'#9#10'Par'
|
|
||||||
+'entFont'#9#14'ParentShowHint'#9#6'Sorted'#8#5'Style'#7#14'csDropDownList'#8
|
|
||||||
+'TabOrder'#2#0#7'TabStop'#9#7'Visible'#9#0#0#10'TPopupMenu'#13'MainPopupMenu'
|
|
||||||
+#7'OnPopup'#7#20'OnMainPopupMenuPopup'#4'left'#2#9#3'top'#2#11#0#0#0
|
|
||||||
]);
|
]);
|
||||||
|
@ -477,9 +477,6 @@ type
|
|||||||
procedure HandleStandardKeys(var Key: Word; Shift: TShiftState); virtual;
|
procedure HandleStandardKeys(var Key: Word; Shift: TShiftState); virtual;
|
||||||
procedure HandleKeyUp(var Key: Word; Shift: TShiftState); virtual;
|
procedure HandleKeyUp(var Key: Word; Shift: TShiftState); virtual;
|
||||||
procedure DoTabKey; virtual;
|
procedure DoTabKey; virtual;
|
||||||
|
|
||||||
procedure EraseBackground(DC: HDC); override;
|
|
||||||
|
|
||||||
procedure DoSetBounds(ALeft, ATop, AWidth, AHeight: integer); override;
|
procedure DoSetBounds(ALeft, ATop, AWidth, AHeight: integer); override;
|
||||||
procedure DoSelectionChange;
|
procedure DoSelectionChange;
|
||||||
public
|
public
|
||||||
@ -498,6 +495,7 @@ type
|
|||||||
function CanEditRowValue: boolean;
|
function CanEditRowValue: boolean;
|
||||||
procedure SaveChanges;
|
procedure SaveChanges;
|
||||||
function ConsistencyCheck: integer;
|
function ConsistencyCheck: integer;
|
||||||
|
procedure EraseBackground(DC: HDC); override;
|
||||||
function GetActiveRow: TOIPropertyGridRow;
|
function GetActiveRow: TOIPropertyGridRow;
|
||||||
function GetHintTypeAt(RowIndex: integer; X: integer): TPropEditHint;
|
function GetHintTypeAt(RowIndex: integer; X: integer): TPropEditHint;
|
||||||
|
|
||||||
|
@ -1130,7 +1130,7 @@ type
|
|||||||
// So, don't use it anymore.
|
// So, don't use it anymore.
|
||||||
public
|
public
|
||||||
// drag and dock
|
// drag and dock
|
||||||
procedure DragDrop(Source: TObject; X,Y: Integer); Dynamic;
|
procedure DragDrop(Source: TObject; X,Y: Integer); dynamic;
|
||||||
procedure Dock(NewDockSite: TWinControl; ARect: TRect); dynamic;
|
procedure Dock(NewDockSite: TWinControl; ARect: TRect); dynamic;
|
||||||
function ManualDock(NewDockSite: TWinControl;
|
function ManualDock(NewDockSite: TWinControl;
|
||||||
DropControl: TControl = nil;
|
DropControl: TControl = nil;
|
||||||
|
@ -723,6 +723,7 @@ begin
|
|||||||
// for each string in lrt/rst list check if it's already
|
// for each string in lrt/rst list check if it's already
|
||||||
// in PO if not add it
|
// in PO if not add it
|
||||||
Value := '';
|
Value := '';
|
||||||
|
Identifier := '';
|
||||||
Multi := false;
|
Multi := false;
|
||||||
for i:=0 to InputLines.Count-1 do begin
|
for i:=0 to InputLines.Count-1 do begin
|
||||||
Line:=InputLines[i];
|
Line:=InputLines[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user