mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-30 18:51:28 +01:00
Asciitab now in fvision
This commit is contained in:
parent
5d02532af3
commit
c66e40dbca
@ -29,6 +29,7 @@ type
|
|||||||
TExecType = (exNormal,exNoSwap,exDosShell);
|
TExecType = (exNormal,exNoSwap,exDosShell);
|
||||||
|
|
||||||
TIDEApp = object(TApplication)
|
TIDEApp = object(TApplication)
|
||||||
|
IsRunning : boolean;
|
||||||
constructor Init;
|
constructor Init;
|
||||||
procedure InitDesktop; virtual;
|
procedure InitDesktop; virtual;
|
||||||
procedure InitMenuBar; virtual;
|
procedure InitMenuBar; virtual;
|
||||||
@ -257,6 +258,7 @@ begin
|
|||||||
inherited Init;
|
inherited Init;
|
||||||
InitAdvMsgBox;
|
InitAdvMsgBox;
|
||||||
InsideDone:=false;
|
InsideDone:=false;
|
||||||
|
IsRunning:=true;
|
||||||
MenuBar^.GetBounds(R); R.A.X:=R.B.X-8;
|
MenuBar^.GetBounds(R); R.A.X:=R.B.X-8;
|
||||||
New(ClockView, Init(R));
|
New(ClockView, Init(R));
|
||||||
ClockView^.GrowMode:=gfGrowLoX+gfGrowHiX;
|
ClockView^.GrowMode:=gfGrowLoX+gfGrowHiX;
|
||||||
@ -391,14 +393,8 @@ begin
|
|||||||
NewLine(
|
NewLine(
|
||||||
NewItem(menu_tools_grep,menu_key_tools_grep, kbShiftF2, cmGrep, hcGrep,
|
NewItem(menu_tools_grep,menu_key_tools_grep, kbShiftF2, cmGrep, hcGrep,
|
||||||
NewItem(menu_tools_calculator, '', kbNoKey, cmCalculator, hcCalculator,
|
NewItem(menu_tools_calculator, '', kbNoKey, cmCalculator, hcCalculator,
|
||||||
{$ifndef FVISION}
|
|
||||||
NewItem(menu_tools_asciitable, '', kbNoKey, cmAsciiTable, hcAsciiTable,
|
NewItem(menu_tools_asciitable, '', kbNoKey, cmAsciiTable, hcAsciiTable,
|
||||||
{$endif}
|
nil)))))))),
|
||||||
nil))))))
|
|
||||||
{$ifndef FVISION}
|
|
||||||
)
|
|
||||||
{$endif}
|
|
||||||
),
|
|
||||||
NewSubMenu(menu_options, hcOptionsMenu, NewMenu(
|
NewSubMenu(menu_options, hcOptionsMenu, NewMenu(
|
||||||
NewItem(menu_options_mode,'', kbNoKey, cmSwitchesMode, hcSwitchesMode,
|
NewItem(menu_options_mode,'', kbNoKey, cmSwitchesMode, hcSwitchesMode,
|
||||||
NewItem(menu_options_compiler,'', kbNoKey, cmCompiler, hcCompiler,
|
NewItem(menu_options_compiler,'', kbNoKey, cmCompiler, hcCompiler,
|
||||||
@ -1185,6 +1181,7 @@ end;
|
|||||||
destructor TIDEApp.Done;
|
destructor TIDEApp.Done;
|
||||||
begin
|
begin
|
||||||
InsideDone:=true;
|
InsideDone:=true;
|
||||||
|
IsRunning:=false;
|
||||||
inherited Done;
|
inherited Done;
|
||||||
RemoveBrowsersCollection;
|
RemoveBrowsersCollection;
|
||||||
DoneHelpSystem;
|
DoneHelpSystem;
|
||||||
@ -1193,7 +1190,10 @@ end;
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.11 2002-04-25 13:34:17 pierre
|
Revision 1.12 2002-05-29 22:38:13 pierre
|
||||||
|
Asciitab now in fvision
|
||||||
|
|
||||||
|
Revision 1.11 2002/04/25 13:34:17 pierre
|
||||||
* fix the disappearing desktop for win32
|
* fix the disappearing desktop for win32
|
||||||
|
|
||||||
Revision 1.10 2002/04/12 08:58:22 pierre
|
Revision 1.10 2002/04/12 08:58:22 pierre
|
||||||
|
|||||||
@ -24,7 +24,6 @@ end;
|
|||||||
|
|
||||||
procedure TIDEApp.DoAsciiTable;
|
procedure TIDEApp.DoAsciiTable;
|
||||||
begin
|
begin
|
||||||
{$ifndef FVISION}
|
|
||||||
if ASCIIChart=nil then
|
if ASCIIChart=nil then
|
||||||
begin
|
begin
|
||||||
New(ASCIIChart, Init);
|
New(ASCIIChart, Init);
|
||||||
@ -32,7 +31,6 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
ASCIIChart^.Focus;
|
ASCIIChart^.Focus;
|
||||||
{$endif FVISION}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -354,7 +352,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 2001-08-05 12:23:00 peter
|
Revision 1.3 2002-05-29 22:38:13 pierre
|
||||||
|
Asciitab now in fvision
|
||||||
|
|
||||||
|
Revision 1.2 2001/08/05 12:23:00 peter
|
||||||
* Automatically support for fvision or old fv
|
* Automatically support for fvision or old fv
|
||||||
|
|
||||||
Revision 1.1 2001/08/04 11:30:23 peter
|
Revision 1.1 2001/08/04 11:30:23 peter
|
||||||
|
|||||||
@ -80,9 +80,7 @@ const ClipboardWindow : PClipboardWindow = nil;
|
|||||||
AltMouseAction : integer = acBrowseSymbol;
|
AltMouseAction : integer = acBrowseSymbol;
|
||||||
StartupOptions : longint = 0;
|
StartupOptions : longint = 0;
|
||||||
LastExitCode : integer = 0;
|
LastExitCode : integer = 0;
|
||||||
{$ifndef FVISION}
|
|
||||||
ASCIIChart : PFPASCIIChart = nil;
|
ASCIIChart : PFPASCIIChart = nil;
|
||||||
{$endif FVISION}
|
|
||||||
BackgroundPath : string{$ifdef GABOR}[60]{$endif} = BackgroundName;
|
BackgroundPath : string{$ifdef GABOR}[60]{$endif} = BackgroundName;
|
||||||
DesktopPath : string{$ifdef GABOR}[60]{$endif} = DesktopName;
|
DesktopPath : string{$ifdef GABOR}[60]{$endif} = DesktopName;
|
||||||
DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
|
DesktopFileFlags : longint = dfHistoryLists+dfOpenWindows+
|
||||||
@ -114,7 +112,10 @@ implementation
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 2001-08-05 12:23:01 peter
|
Revision 1.3 2002-05-29 22:33:23 pierre
|
||||||
|
Asciitab now in fvision
|
||||||
|
|
||||||
|
Revision 1.2 2001/08/05 12:23:01 peter
|
||||||
* Automatically support for fvision or old fv
|
* Automatically support for fvision or old fv
|
||||||
|
|
||||||
Revision 1.1 2001/08/04 11:30:24 peter
|
Revision 1.1 2001/08/04 11:30:24 peter
|
||||||
|
|||||||
@ -27,9 +27,7 @@ uses
|
|||||||
Commands,HelpCtx,
|
Commands,HelpCtx,
|
||||||
{$endif FVISION}
|
{$endif FVISION}
|
||||||
Views,Menus,Dialogs,App,Gadgets,
|
Views,Menus,Dialogs,App,Gadgets,
|
||||||
{$ifndef FVISION}
|
|
||||||
ASCIITAB,
|
ASCIITAB,
|
||||||
{$endif FVISION}
|
|
||||||
WEditor,WCEdit,
|
WEditor,WCEdit,
|
||||||
WUtils,WHelp,WHlpView,WViews,WANSI,
|
WUtils,WHelp,WHlpView,WViews,WANSI,
|
||||||
Comphook,
|
Comphook,
|
||||||
@ -392,7 +390,6 @@ type
|
|||||||
TitleST : PStaticText;
|
TitleST : PStaticText;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifndef FVISION}
|
|
||||||
PFPASCIIChart = ^TFPASCIIChart;
|
PFPASCIIChart = ^TFPASCIIChart;
|
||||||
TFPASCIIChart = object(TASCIIChart)
|
TFPASCIIChart = object(TASCIIChart)
|
||||||
constructor Init;
|
constructor Init;
|
||||||
@ -401,7 +398,6 @@ type
|
|||||||
procedure HandleEvent(var Event: TEvent); virtual;
|
procedure HandleEvent(var Event: TEvent); virtual;
|
||||||
destructor Done; virtual;
|
destructor Done; virtual;
|
||||||
end;
|
end;
|
||||||
{$endif FVISION}
|
|
||||||
|
|
||||||
PVideoModeListBox = ^TVideoModeListBox;
|
PVideoModeListBox = ^TVideoModeListBox;
|
||||||
TVideoModeListBox = object(TDropDownListBox)
|
TVideoModeListBox = object(TDropDownListBox)
|
||||||
@ -478,6 +474,7 @@ function StartEditor(Editor: PCodeEditor; FileName: string): boolean;
|
|||||||
|
|
||||||
{$ifdef VESA}
|
{$ifdef VESA}
|
||||||
procedure InitVESAScreenModes;
|
procedure InitVESAScreenModes;
|
||||||
|
procedure DoneVESAScreenModes;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
procedure NoDebugger;
|
procedure NoDebugger;
|
||||||
@ -577,14 +574,12 @@ const
|
|||||||
Load: @TGDBWindow.Load;
|
Load: @TGDBWindow.Load;
|
||||||
Store: @TGDBWindow.Store
|
Store: @TGDBWindow.Store
|
||||||
);
|
);
|
||||||
{$ifndef FVISION}
|
|
||||||
RFPASCIIChart: TStreamRec = (
|
RFPASCIIChart: TStreamRec = (
|
||||||
ObjType: 1509;
|
ObjType: 1509;
|
||||||
VmtLink: Ofs(TypeOf(TFPASCIIChart)^);
|
VmtLink: Ofs(TypeOf(TFPASCIIChart)^);
|
||||||
Load: @TFPASCIIChart.Load;
|
Load: @TFPASCIIChart.Load;
|
||||||
Store: @TFPASCIIChart.Store
|
Store: @TFPASCIIChart.Store
|
||||||
);
|
);
|
||||||
{$endif FVISION}
|
|
||||||
RProgramInfoWindow: TStreamRec = (
|
RProgramInfoWindow: TStreamRec = (
|
||||||
ObjType: 1510;
|
ObjType: 1510;
|
||||||
VmtLink: Ofs(TypeOf(TProgramInfoWindow)^);
|
VmtLink: Ofs(TypeOf(TProgramInfoWindow)^);
|
||||||
@ -977,7 +972,7 @@ begin
|
|||||||
S:=UpcaseStr(S);
|
S:=UpcaseStr(S);
|
||||||
_Is:=AsmReservedWords[Idx]^.Search(@S,Item);
|
_Is:=AsmReservedWords[Idx]^.Search(@S,Item);
|
||||||
{$ifdef i386}
|
{$ifdef i386}
|
||||||
if not _Is then
|
if not _Is and (Length(S)>1) then
|
||||||
begin
|
begin
|
||||||
LastC:=S[Length(S)];
|
LastC:=S[Length(S)];
|
||||||
if LastC in ['B','D','L','Q','S','T','V','W'] then
|
if LastC in ['B','D','L','Q','S','T','V','W'] then
|
||||||
@ -986,7 +981,7 @@ begin
|
|||||||
Dec(Idx);
|
Dec(Idx);
|
||||||
if (AsmReservedWords[Idx]<>nil) and (AsmReservedWords[Idx]^.Count<>0) then
|
if (AsmReservedWords[Idx]<>nil) and (AsmReservedWords[Idx]^.Count<>0) then
|
||||||
_Is:=AsmReservedWords[Idx]^.Search(@S,Item);
|
_Is:=AsmReservedWords[Idx]^.Search(@S,Item);
|
||||||
if not _Is then
|
if not _Is and (Length(S)>1) then
|
||||||
begin
|
begin
|
||||||
LastTwo:=S[Length(S)]+LastC;
|
LastTwo:=S[Length(S)]+LastC;
|
||||||
if (LastTwo='BL') or
|
if (LastTwo='BL') or
|
||||||
@ -3880,7 +3875,6 @@ begin
|
|||||||
inherited HandleEvent(Event);
|
inherited HandleEvent(Event);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ifndef FVISION}
|
|
||||||
constructor TFPASCIIChart.Init;
|
constructor TFPASCIIChart.Init;
|
||||||
begin
|
begin
|
||||||
inherited Init;
|
inherited Init;
|
||||||
@ -3933,7 +3927,6 @@ begin
|
|||||||
ASCIIChart:=nil;
|
ASCIIChart:=nil;
|
||||||
inherited Done;
|
inherited Done;
|
||||||
end;
|
end;
|
||||||
{$endif FVISION}
|
|
||||||
|
|
||||||
function TVideoModeListBox.GetText(Item: pointer; MaxLen: sw_integer): string;
|
function TVideoModeListBox.GetText(Item: pointer; MaxLen: sw_integer): string;
|
||||||
var P: PVideoMode;
|
var P: PVideoMode;
|
||||||
@ -4180,6 +4173,11 @@ begin
|
|||||||
RegisterVesaVideoMode(ML.Modes[I]);
|
RegisterVesaVideoMode(ML.Modes[I]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure DoneVESAScreenModes;
|
||||||
|
begin
|
||||||
|
FreeVesaModes;
|
||||||
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
procedure NoDebugger;
|
procedure NoDebugger;
|
||||||
@ -4209,7 +4207,10 @@ end;
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.16 2002-05-24 21:15:31 pierre
|
Revision 1.17 2002-05-29 22:38:13 pierre
|
||||||
|
Asciitab now in fvision
|
||||||
|
|
||||||
|
Revision 1.16 2002/05/24 21:15:31 pierre
|
||||||
* add FV suffix in About dialog if using FVision library
|
* add FV suffix in About dialog if using FVision library
|
||||||
|
|
||||||
Revision 1.15 2002/04/17 11:10:13 pierre
|
Revision 1.15 2002/04/17 11:10:13 pierre
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user