Component update (whoa I hate delphi reinstallations)

Added another feature for the Code-Explorer
This commit is contained in:
Christian Hammacher 2006-03-06 19:47:22 +00:00
parent eb7a49f6d4
commit f2b8b82515
21 changed files with 70 additions and 38 deletions

View File

@ -115,7 +115,7 @@ AutoIncBuild=1
MajorVer=1 MajorVer=1
MinorVer=4 MinorVer=4
Release=0 Release=0
Build=16 Build=17
Debug=0 Debug=0
PreRelease=0 PreRelease=0
Special=0 Special=0
@ -126,7 +126,7 @@ CodePage=1252
[Version Info Keys] [Version Info Keys]
CompanyName=AMX Mod X Dev Team CompanyName=AMX Mod X Dev Team
FileDescription= FileDescription=
FileVersion=1.4.0.16 FileVersion=1.4.0.17
InternalName=gaben InternalName=gaben
LegalCopyright=AMX Mod X Dev Team LegalCopyright=AMX Mod X Dev Team
LegalTrademarks= LegalTrademarks=
@ -134,9 +134,3 @@ OriginalFilename=
ProductName=AMXX-Studio ProductName=AMXX-Studio
ProductVersion=1.4.0.0 ProductVersion=1.4.0.0
Comments= Comments=
[HistoryLists\hlConditionals]
Count=1
Item0=madExcept
[HistoryLists\hlUnitAliases]
Count=1
Item0=WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;

Binary file not shown.

Binary file not shown.

View File

@ -280,8 +280,11 @@ end;
procedure TSciSearchReplace.ShowSearchReplaceDialog(AReplace: boolean); procedure TSciSearchReplace.ShowSearchReplaceDialog(AReplace: boolean);
var var
dlg: TTextSearchDialog; dlg: TForm;
SelectedText : string; SelectedText : string;
SearchFromCursor: Boolean;
SearchInSelectionOnly: Boolean;
SearchRegularExpression: Boolean;
begin begin
if not Assigned(FEditor) then Exit; if not Assigned(FEditor) then Exit;
if AReplace then if AReplace then

View File

@ -152,16 +152,10 @@ var exConstants, exDefined, exIncluded, exMethods, exDefault, exEvents,
eStr: TStringList; eStr: TStringList;
eScrollPosX, eScrollPosY: Integer; eScrollPosX, eScrollPosY: Integer;
eTempNode: TTreeNode; eTempNode: TTreeNode;
eSelected: Integer;
begin begin
if Application.Terminated then exit; if Application.Terminated then exit;
if (frmMain.trvExplorer.Items.Count = 0) or (eActive <> ActiveDoc.Index) then exit; if (frmMain.trvExplorer.Items.Count = 0) or (eActive <> ActiveDoc.Index) then exit;
if Assigned(frmMain.trvExplorer.Selected) then
eSelected := frmMain.trvExplorer.Selected.AbsoluteIndex
else
eSelected := -1;
frmMain.trvExplorer.Items.BeginUpdate; frmMain.trvExplorer.Items.BeginUpdate;
try try
eScrollPosX := GetScrollPos(frmMain.trvExplorer.Handle, SB_HORZ); eScrollPosX := GetScrollPos(frmMain.trvExplorer.Handle, SB_HORZ);
@ -324,8 +318,6 @@ begin
SetScrollPos(frmMain.trvExplorer.Handle, SB_HORZ, eScrollPosX, False); SetScrollPos(frmMain.trvExplorer.Handle, SB_HORZ, eScrollPosX, False);
SetScrollPos(frmMain.trvExplorer.Handle, SB_VERT, eScrollPosY, False); SetScrollPos(frmMain.trvExplorer.Handle, SB_VERT, eScrollPosY, False);
if eSelected <> -1 then
frmMain.trvExplorer.Items[eSelected].Selected := True;
except except
// well, yes. // well, yes.
end; end;

View File

@ -641,7 +641,7 @@ begin
if eConfig.ReadString('Editor', 'AutoDisable', '1500') <> '-1' then if eConfig.ReadString('Editor', 'AutoDisable', '1500') <> '-1' then
frmSettings.txtAUDisable.Text := eConfig.ReadString('Editor', 'AutoDisable', '1500'); frmSettings.txtAUDisable.Text := eConfig.ReadString('Editor', 'AutoDisable', '1500');
if foldFold in frmMain.sciEditor.Folding then begin if foldFold in frmMain.sciEditor.Folding then begin
case frmMain.sciEditor.FoldMarkerType of case frmMain.sciEditor.FoldMarkers.MarkerType of
sciMarkArrows: frmSettings.cboCodeFolding.ItemIndex := 0; sciMarkArrows: frmSettings.cboCodeFolding.ItemIndex := 0;
sciMarkBox: frmSettings.cboCodeFolding.ItemIndex := 1; sciMarkBox: frmSettings.cboCodeFolding.ItemIndex := 1;
sciMarkCircle: frmSettings.cboCodeFolding.ItemIndex := 2; sciMarkCircle: frmSettings.cboCodeFolding.ItemIndex := 2;
@ -1017,6 +1017,8 @@ begin
frmMain.sciEditor.Colors.SelBack := clHighlight; frmMain.sciEditor.Colors.SelBack := clHighlight;
end; end;
frmMain.mnuRestoreBackup.Enabled := (FileExists(Document.FileName + '.bak')) and (not Document.Untitled); frmMain.mnuRestoreBackup.Enabled := (FileExists(Document.FileName + '.bak')) and (not Document.Untitled);
frmMain.trvExplorer.Selected := nil;
Screen.Cursor := crDefault; Screen.Cursor := crDefault;
Plugin_DocChange(Document.Index, Document.FileName, Document.Highlighter, RestoreCaret, False); Plugin_DocChange(Document.Index, Document.FileName, Document.Highlighter, RestoreCaret, False);
end; end;

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXListBox, StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXListBox,
mbTBXCheckListBox; mbTBXCheckListBox, SpTBXControls;
type type
TfrmAllFilesForm = class(TForm) TfrmAllFilesForm = class(TForm)

Binary file not shown.

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, SpTBXEditors, TntStdCtrls, TBXDkPanels, StdCtrls, ExtCtrls, Forms, SpTBXEditors, TntStdCtrls, TBXDkPanels,
SpTBXDkPanels; SpTBXDkPanels, SpTBXControls;
type type
TfrmConnGen = class(TForm) TfrmConnGen = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, mbTBXEdit, mbTBXValidateEdit, TBXDkPanels, StdCtrls, ExtCtrls, Forms, mbTBXEdit, mbTBXValidateEdit, TBXDkPanels,
SpTBXDkPanels, SpTBXEditors; SpTBXDkPanels, SpTBXEditors, SpTBXControls;
type type
TfrmGoToLine = class(TForm) TfrmGoToLine = class(TForm)

View File

@ -4,7 +4,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, OleCtrls, SHDocVw, ActiveX; StdCtrls, ExtCtrls, Forms, OleCtrls, SHDocVw_TLB, ActiveX;
type type
TfrmHTMLPreview = class(TForm) TfrmHTMLPreview = class(TForm)

View File

@ -4,7 +4,8 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, SpTBXEditors; StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, SpTBXEditors,
SpTBXControls;
type type
TfrmIRCPaster = class(TForm) TfrmIRCPaster = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, JvExControls, StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, JvExControls,
JvComponent, JvScrollText, ShellAPI, IdHTTP, jpeg, Dialogs; JvComponent, JvScrollText, ShellAPI, IdHTTP, jpeg, Dialogs, SpTBXControls;
type type
TfrmInfo = class(TForm) TfrmInfo = class(TForm)

View File

@ -4,7 +4,8 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, ClipBrd, SysUtils, Windows, Messages, Classes, Graphics, Controls, ClipBrd,
StdCtrls, ExtCtrls, Forms, mxFlatControls, TBXDkPanels, SpTBXDkPanels; StdCtrls, ExtCtrls, Forms, mxFlatControls, TBXDkPanels, SpTBXDkPanels,
SpTBXControls;
type type
TfrmMOTDGen = class(TForm) TfrmMOTDGen = class(TForm)

View File

@ -695,12 +695,14 @@ object frmMain: TfrmMain
Height = 501 Height = 501
Align = alClient Align = alClient
ActiveTabIndex = 0 ActiveTabIndex = 0
TabAutofitMaxSize = 100
ThemeType = tttTBX ThemeType = tttTBX
OnActiveTabChange = tsDocumentsActiveTabChange OnActiveTabChange = tsDocumentsActiveTabChange
HiddenItems = <> HiddenItems = <>
object tiDocument1: TSpTBXTabItem object tiDocument1: TSpTBXTabItem
Checked = True Checked = True
OnSelect = OnTabSelect OnSelect = OnTabSelect
CustomWidth = 100
ThemeType = tttTBX ThemeType = tttTBX
CaptionW = '< 1 Untitled.sma >' CaptionW = '< 1 Untitled.sma >'
end end
@ -809,13 +811,16 @@ object frmMain: TfrmMain
Colors.WhiteSpaceBack = clDefault Colors.WhiteSpaceBack = clDefault
Bookmark.BackColor = clGray Bookmark.BackColor = clGray
Bookmark.ForeColor = clWhite Bookmark.ForeColor = clWhite
Bookmark.MarkerType = 0 Bookmark.MarkerType = sciMFullRect
Gutter0.Width = 0 Gutter0.Width = 0
Gutter0.MarginType = gutLineNumber Gutter0.MarginType = gutLineNumber
Gutter0.Sensitive = False
Gutter1.Width = 40 Gutter1.Width = 40
Gutter1.MarginType = gutLineNumber Gutter1.MarginType = gutLineNumber
Gutter1.Sensitive = False
Gutter2.Width = 14 Gutter2.Width = 14
Gutter2.MarginType = gutSymbol Gutter2.MarginType = gutSymbol
Gutter2.Sensitive = True
WordWrapVisualFlags = [] WordWrapVisualFlags = []
WordWrapVisualFlagsLocation = [] WordWrapVisualFlagsLocation = []
LayoutCache = sciCacheCaret LayoutCache = sciCacheCaret
@ -827,7 +832,28 @@ object frmMain: TfrmMain
WordChars = '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' WordChars = '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
ControlCharSymbol = #0 ControlCharSymbol = #0
Folding = [foldFold, foldCompact, foldComment, foldPreprocessor, foldCommentPython, foldAtElse, foldHTML, foldHTMLPreProcessor] Folding = [foldFold, foldCompact, foldComment, foldPreprocessor, foldCommentPython, foldAtElse, foldHTML, foldHTMLPreProcessor]
FoldMarkerType = sciMarkBox FoldMarkers.MarkerType = sciMarkBox
FoldMarkers.FoldOpen.BackColor = clDefault
FoldMarkers.FoldOpen.ForeColor = clDefault
FoldMarkers.FoldOpen.MarkerType = sciMBoxMinus
FoldMarkers.FoldClosed.BackColor = clDefault
FoldMarkers.FoldClosed.ForeColor = clDefault
FoldMarkers.FoldClosed.MarkerType = sciMBoxPlus
FoldMarkers.FoldSub.BackColor = clDefault
FoldMarkers.FoldSub.ForeColor = clDefault
FoldMarkers.FoldSub.MarkerType = sciMVLine
FoldMarkers.FoldTail.BackColor = clDefault
FoldMarkers.FoldTail.ForeColor = clDefault
FoldMarkers.FoldTail.MarkerType = sciMLCorner
FoldMarkers.FoldEnd.BackColor = clDefault
FoldMarkers.FoldEnd.ForeColor = clDefault
FoldMarkers.FoldEnd.MarkerType = sciMBoxPlusConnected
FoldMarkers.FoldOpenMid.BackColor = clDefault
FoldMarkers.FoldOpenMid.ForeColor = clDefault
FoldMarkers.FoldOpenMid.MarkerType = sciMBoxMinusConnected
FoldMarkers.FoldMidTail.BackColor = clDefault
FoldMarkers.FoldMidTail.ForeColor = clDefault
FoldMarkers.FoldMidTail.MarkerType = sciMTCorner
LanguageManager.LanguageList = < LanguageManager.LanguageList = <
item item
Name = 'null' Name = 'null'
@ -6428,6 +6454,8 @@ object frmMain: TfrmMain
ParametersSeparators = ',' ParametersSeparators = ','
ParametersStart = '(' ParametersStart = '('
WordCharacters = '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' WordCharacters = '_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
TabSize = 0
UseStyle = False
OnBeforeShow = sciCallTipsBeforeShow OnBeforeShow = sciCallTipsBeforeShow
Left = 842 Left = 842
Top = 36 Top = 36

View File

@ -20,7 +20,7 @@ uses
ShellAPI, IdFTPCommon, IdAntiFreezeBase, IdAntiFreeze, JvComponent, ShellAPI, IdFTPCommon, IdAntiFreezeBase, IdAntiFreeze, JvComponent,
JvInspector, JvExControls, JvPluginManager, JvgLanguageLoader, JvInspector, JvExControls, JvPluginManager, JvgLanguageLoader,
JvWndProcHook, CommCtrl, JvPageList, JvPageListTreeView, JvWndProcHook, CommCtrl, JvPageList, JvPageListTreeView,
SciSearchReplaceBase; SciSearchReplaceBase, SpTBXControls;
type type
TfrmMain = class(TForm) TfrmMain = class(TForm)
@ -536,10 +536,10 @@ begin
sciEditor.WordWrap := sciNoWrap; sciEditor.WordWrap := sciNoWrap;
case frmSettings.cboCodeFolding.ItemIndex of case frmSettings.cboCodeFolding.ItemIndex of
0: sciEditor.FoldMarkerType := sciMarkArrows; 0: sciEditor.FoldMarkers.MarkerType := sciMarkArrows;
1: sciEditor.FoldMarkerType := sciMarkBox; 1: sciEditor.FoldMarkers.MarkerType := sciMarkBox;
2: sciEditor.FoldMarkerType := sciMarkCircle; 2: sciEditor.FoldMarkers.MarkerType := sciMarkCircle;
3: sciEditor.FoldMarkerType := sciMarkPlusMinus; 3: sciEditor.FoldMarkers.MarkerType := sciMarkPlusMinus;
end; end;
if frmSettings.cboCodeFolding.ItemIndex = 4 then if frmSettings.cboCodeFolding.ItemIndex = 4 then
sciEditor.Folding := sciEditor.Folding - [foldFold] sciEditor.Folding := sciEditor.Folding - [foldFold]
@ -1651,9 +1651,17 @@ begin
end; end;
procedure TfrmMain.trvExplorerDblClick(Sender: TObject); procedure TfrmMain.trvExplorerDblClick(Sender: TObject);
var eFile, eTemp: String;
begin begin
if Assigned(trvExplorer.Selected) then begin if Assigned(trvExplorer.Selected) then begin
if (trvExplorer.Selected.ImageIndex <> 42) and (trvExplorer.Selected.ImageIndex <> 43) then begin if (Assigned(trvExplorer.Selected.Parent)) and (trvExplorer.Selected.Parent.Text = 'Included') then begin
eFile := UpdateIncPath(trvExplorer.Selected.Text);
eTemp := odOpen.FileName;
odOpen.FileName := eFile;
mnuOpenClick(nil);
odOpen.FileName := eTemp;
end
else if (trvExplorer.Selected.ImageIndex <> 42) and (trvExplorer.Selected.ImageIndex <> 43) then begin
sciEditor.GotoLineEnsureVisible(Integer(trvExplorer.Selected.Data)); sciEditor.GotoLineEnsureVisible(Integer(trvExplorer.Selected.Data));
sciEditor.SetFocus; sciEditor.SetFocus;
UpdateCI(frmMain.sciEditor.GetCurrentLineNumber); UpdateCI(frmMain.sciEditor.GetCurrentLineNumber);
@ -2440,8 +2448,10 @@ begin
SCM_RELOADINI: ReloadIni; SCM_RELOADINI: ReloadIni;
SCM_SELECTLANGUAGE: SelectLanguage(eData); SCM_SELECTLANGUAGE: SelectLanguage(eData);
SCM_LOADFILE: begin SCM_LOADFILE: begin
eTemp := odOpen.FileName;
odOpen.FileName := eData; odOpen.FileName := eData;
mnuOpenClick(nil); mnuOpenClick(nil);
odOpen.FileName := eTemp;
end; end;
SCM_CURRPROJECTS: Msg.Result := tsMain.ActiveTabIndex; SCM_CURRPROJECTS: Msg.Result := tsMain.ActiveTabIndex;
SCM_COMPILE: mnuDoCompile.Click; SCM_COMPILE: mnuDoCompile.Click;

View File

@ -7,7 +7,8 @@ uses
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, JvExControls, StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, JvExControls,
JvComponent, JvPageList, TFlatRadioButtonUnit, TFlatMemoUnit, JvComponent, JvPageList, TFlatRadioButtonUnit, TFlatMemoUnit,
TFlatEditUnit, TB2Dock, TB2Toolbar, TBX, SpTBXItem, ImgList, TB2Item, TFlatEditUnit, TB2Dock, TB2Toolbar, TBX, SpTBXItem, ImgList, TB2Item,
Dialogs, TFlatComboBoxUnit, ComCtrls, ClipBrd, TFlatCheckBoxUnit; Dialogs, TFlatComboBoxUnit, ComCtrls, ClipBrd, TFlatCheckBoxUnit,
SpTBXControls;
type type
TfrmMenuGenerator = class(TForm) TfrmMenuGenerator = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXMemo, StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXMemo,
SpTBXEditors; SpTBXEditors, SpTBXControls;
type type
TfrmParamEdit = class(TForm) TfrmParamEdit = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXMemo, Dialogs, StdCtrls, ExtCtrls, Forms, TBXDkPanels, SpTBXDkPanels, mbTBXMemo, Dialogs,
IdFTPCommon; IdFTPCommon, SpTBXControls;
type type
TfrmPluginsIniEditor = class(TForm) TfrmPluginsIniEditor = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TntStdCtrls, SpTBXEditors, SpTBXDkPanels, StdCtrls, ExtCtrls, Forms, TntStdCtrls, SpTBXEditors, SpTBXDkPanels,
TBXDkPanels; TBXDkPanels, SpTBXControls;
type type
TfrmReplace = class(TForm) TfrmReplace = class(TForm)

View File

@ -5,7 +5,7 @@ interface
uses uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, SysUtils, Windows, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, TntStdCtrls, SpTBXEditors, SpTBXDkPanels, StdCtrls, ExtCtrls, Forms, TntStdCtrls, SpTBXEditors, SpTBXDkPanels,
TBXDkPanels, Dialogs; TBXDkPanels, Dialogs, SpTBXControls;
type type
TfrmSearch = class(TForm) TfrmSearch = class(TForm)