|
@@ -171,7 +171,7 @@ CONST
|
|
TYPE
|
|
TYPE
|
|
PSItem = ^TSItem;
|
|
PSItem = ^TSItem;
|
|
TSItem = RECORD
|
|
TSItem = RECORD
|
|
- Value: PString; { Item string }
|
|
|
|
|
|
+ Value: Sw_PString; { Item string }
|
|
Next: PSItem; { Next item }
|
|
Next: PSItem; { Next item }
|
|
END;
|
|
END;
|
|
|
|
|
|
@@ -189,7 +189,7 @@ TYPE
|
|
FirstPos: Sw_Integer; { First position }
|
|
FirstPos: Sw_Integer; { First position }
|
|
SelStart: Sw_Integer; { Selected start }
|
|
SelStart: Sw_Integer; { Selected start }
|
|
SelEnd: Sw_Integer; { Selected end }
|
|
SelEnd: Sw_Integer; { Selected end }
|
|
- Data: PString; { Input line data }
|
|
|
|
|
|
+ Data: Sw_PString; { Input line data }
|
|
Validator: PValidator; { Validator of view }
|
|
Validator: PValidator; { Validator of view }
|
|
CONSTRUCTOR Init (Var Bounds: TRect; AMaxLen: Sw_Integer);
|
|
CONSTRUCTOR Init (Var Bounds: TRect; AMaxLen: Sw_Integer);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
@@ -219,7 +219,7 @@ TYPE
|
|
AmDefault: Boolean; { If default button }
|
|
AmDefault: Boolean; { If default button }
|
|
Flags : Byte; { Button flags }
|
|
Flags : Byte; { Button flags }
|
|
Command : Word; { Button command }
|
|
Command : Word; { Button command }
|
|
- Title : PString; { Button title }
|
|
|
|
|
|
+ Title : Sw_PString; { Button title }
|
|
CONSTRUCTOR Init (Var Bounds: TRect; ATitle: TTitleStr; ACommand: Word;
|
|
CONSTRUCTOR Init (Var Bounds: TRect; ATitle: TTitleStr; ACommand: Word;
|
|
AFlags: Word);
|
|
AFlags: Word);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
@@ -334,7 +334,7 @@ TYPE
|
|
TMultiCheckBoxes = OBJECT (TCluster)
|
|
TMultiCheckBoxes = OBJECT (TCluster)
|
|
SelRange: Byte; { Select item range }
|
|
SelRange: Byte; { Select item range }
|
|
Flags : Word; { Select flags }
|
|
Flags : Word; { Select flags }
|
|
- States : PString; { Strings }
|
|
|
|
|
|
+ States : Sw_PString; { Strings }
|
|
CONSTRUCTOR Init (Var Bounds: TRect; AStrings: PSItem;
|
|
CONSTRUCTOR Init (Var Bounds: TRect; AStrings: PSItem;
|
|
ASelRange: Byte; AFlags: Word; Const AStates: String);
|
|
ASelRange: Byte; AFlags: Word; Const AStates: String);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
@@ -413,14 +413,14 @@ TYPE
|
|
{---------------------------------------------------------------------------}
|
|
{---------------------------------------------------------------------------}
|
|
TYPE
|
|
TYPE
|
|
TStaticText = OBJECT (TView)
|
|
TStaticText = OBJECT (TView)
|
|
- Text: PString; { Text string ptr }
|
|
|
|
- CONSTRUCTOR Init (Var Bounds: TRect; Const AText: String);
|
|
|
|
|
|
+ Text: Sw_PString; { Text string ptr }
|
|
|
|
+ CONSTRUCTOR Init (Var Bounds: TRect; Const AText: Sw_String);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
DESTRUCTOR Done; Virtual;
|
|
DESTRUCTOR Done; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
PROCEDURE Store (Var S: TStream);
|
|
PROCEDURE Store (Var S: TStream);
|
|
- PROCEDURE GetText (Var S: String); Virtual;
|
|
|
|
|
|
+ PROCEDURE GetText (Var S: Sw_String); Virtual;
|
|
END;
|
|
END;
|
|
PStaticText = ^TStaticText;
|
|
PStaticText = ^TStaticText;
|
|
|
|
|
|
@@ -435,14 +435,14 @@ TYPE
|
|
TParamText = OBJECT (TStaticText)
|
|
TParamText = OBJECT (TStaticText)
|
|
ParamCount: Sw_Integer; { Parameter count }
|
|
ParamCount: Sw_Integer; { Parameter count }
|
|
ParamList : Pointer; { Parameter list }
|
|
ParamList : Pointer; { Parameter list }
|
|
- CONSTRUCTOR Init (Var Bounds: TRect; Const AText: String;
|
|
|
|
|
|
+ CONSTRUCTOR Init (Var Bounds: TRect; Const AText: Sw_String;
|
|
AParamCount: Sw_Integer);
|
|
AParamCount: Sw_Integer);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
FUNCTION DataSize: Sw_Word; Virtual;
|
|
FUNCTION DataSize: Sw_Word; Virtual;
|
|
PROCEDURE GetData (Var Rec); Virtual;
|
|
PROCEDURE GetData (Var Rec); Virtual;
|
|
PROCEDURE SetData (Var Rec); Virtual;
|
|
PROCEDURE SetData (Var Rec); Virtual;
|
|
PROCEDURE Store (Var S: TStream);
|
|
PROCEDURE Store (Var S: TStream);
|
|
- PROCEDURE GetText (Var S: String); Virtual;
|
|
|
|
|
|
+ PROCEDURE GetText (Var S: Sw_String); Virtual;
|
|
END;
|
|
END;
|
|
PParamText = ^TParamText;
|
|
PParamText = ^TParamText;
|
|
|
|
|
|
@@ -453,7 +453,7 @@ TYPE
|
|
TLabel = OBJECT (TStaticText)
|
|
TLabel = OBJECT (TStaticText)
|
|
Light: Boolean;
|
|
Light: Boolean;
|
|
Link: PView; { Linked view }
|
|
Link: PView; { Linked view }
|
|
- CONSTRUCTOR Init (Var Bounds: TRect; CONST AText: String; ALink: PView);
|
|
|
|
|
|
+ CONSTRUCTOR Init (Var Bounds: TRect; CONST AText: Sw_String; ALink: PView);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
CONSTRUCTOR Load (Var S: TStream);
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
@@ -502,7 +502,7 @@ TYPE
|
|
THistoryWindow = OBJECT (TWindow)
|
|
THistoryWindow = OBJECT (TWindow)
|
|
Viewer: PListViewer; { List viewer object }
|
|
Viewer: PListViewer; { List viewer object }
|
|
CONSTRUCTOR Init (Var Bounds: TRect; HistoryId: Word);
|
|
CONSTRUCTOR Init (Var Bounds: TRect; HistoryId: Word);
|
|
- FUNCTION GetSelection: String; Virtual;
|
|
|
|
|
|
+ FUNCTION GetSelection: Sw_String; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
PROCEDURE InitViewer (HistoryId: Word); Virtual;
|
|
PROCEDURE InitViewer (HistoryId: Word); Virtual;
|
|
END;
|
|
END;
|
|
@@ -525,7 +525,7 @@ TYPE
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
FUNCTION GetPalette: PPalette; Virtual;
|
|
FUNCTION InitHistoryWindow (Var Bounds: TRect): PHistoryWindow; Virtual;
|
|
FUNCTION InitHistoryWindow (Var Bounds: TRect): PHistoryWindow; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
PROCEDURE Draw; Virtual;
|
|
- PROCEDURE RecordHistory (CONST S: String); Virtual;
|
|
|
|
|
|
+ PROCEDURE RecordHistory (CONST S: Sw_String); Virtual;
|
|
PROCEDURE Store (Var S: TStream);
|
|
PROCEDURE Store (Var S: TStream);
|
|
PROCEDURE HandleEvent (Var Event: TEvent); Virtual;
|
|
PROCEDURE HandleEvent (Var Event: TEvent); Virtual;
|
|
END;
|
|
END;
|
|
@@ -544,7 +544,7 @@ TYPE
|
|
end; { of TBrowseInputLine }
|
|
end; { of TBrowseInputLine }
|
|
|
|
|
|
TBrowseInputLineRec = record
|
|
TBrowseInputLineRec = record
|
|
- Text: string;
|
|
|
|
|
|
+ Text: Sw_String;
|
|
History: Sw_Word;
|
|
History: Sw_Word;
|
|
end; { of TBrowseInputLineRec }
|
|
end; { of TBrowseInputLineRec }
|
|
{#Z+}
|
|
{#Z+}
|
|
@@ -566,7 +566,7 @@ TYPE
|
|
TCommandIcon = Object(TStaticText)
|
|
TCommandIcon = Object(TStaticText)
|
|
{ A TCommandIcon sends an evCommand message to its owner with
|
|
{ A TCommandIcon sends an evCommand message to its owner with
|
|
Event.Command set to #Command# when it is clicked with a mouse. }
|
|
Event.Command set to #Command# when it is clicked with a mouse. }
|
|
- constructor Init (var Bounds : TRect; AText : String; ACommand : Word);
|
|
|
|
|
|
+ constructor Init (var Bounds : TRect; AText : Sw_String; ACommand : Word);
|
|
{ Creates an instance of a TCommandIcon and sets #Command# to
|
|
{ Creates an instance of a TCommandIcon and sets #Command# to
|
|
ACommand. AText is the text which is displayed as the icon. If an
|
|
ACommand. AText is the text which is displayed as the icon. If an
|
|
error occurs Init fails. }
|
|
error occurs Init fails. }
|
|
@@ -589,7 +589,7 @@ TYPE
|
|
clusters with #NewCommandSItem# rather than the standarad #NewSItem#.
|
|
clusters with #NewCommandSItem# rather than the standarad #NewSItem#.
|
|
It is used to associate a command with an individual cluster item. }
|
|
It is used to associate a command with an individual cluster item. }
|
|
{#X TCommandCheckBoxes TCommandRadioButtons }
|
|
{#X TCommandCheckBoxes TCommandRadioButtons }
|
|
- Value : String;
|
|
|
|
|
|
+ Value : Sw_String;
|
|
{ Value is the text displayed for the cluster item. }
|
|
{ Value is the text displayed for the cluster item. }
|
|
{#X Command Next }
|
|
{#X Command Next }
|
|
Command : Word;
|
|
Command : Word;
|
|
@@ -777,7 +777,7 @@ TYPE
|
|
A pointer to the new button is returned for checking validity of the
|
|
A pointer to the new button is returned for checking validity of the
|
|
initialization. }
|
|
initialization. }
|
|
{#X NewInputLine NewLabel }
|
|
{#X NewInputLine NewLabel }
|
|
- function NewLabel (X, Y : Sw_Integer; AText : String;
|
|
|
|
|
|
+ function NewLabel (X, Y : Sw_Integer; AText : Sw_String;
|
|
ALink : PView) : PLabel;
|
|
ALink : PView) : PLabel;
|
|
{ NewLabel creates and inserts into the dialog a new TLabel and
|
|
{ NewLabel creates and inserts into the dialog a new TLabel and
|
|
associates it with ALink. }
|
|
associates it with ALink. }
|
|
@@ -809,7 +809,7 @@ TYPE
|
|
EditCommand: Word;
|
|
EditCommand: Word;
|
|
ListBox: PListBox;
|
|
ListBox: PListBox;
|
|
ldOptions: Word;
|
|
ldOptions: Word;
|
|
- constructor Init (ATitle: TTitleStr; Items: string; AButtons: Word;
|
|
|
|
|
|
+ constructor Init (ATitle: TTitleStr; Items: Sw_String; AButtons: Word;
|
|
AListBox: PListBox; AEditCommand, ANewCommand: Word);
|
|
AListBox: PListBox; AEditCommand, ANewCommand: Word);
|
|
constructor Load(var S: TStream);
|
|
constructor Load(var S: TStream);
|
|
procedure HandleEvent(var Event: TEvent); virtual;
|
|
procedure HandleEvent(var Event: TEvent); virtual;
|
|
@@ -832,13 +832,13 @@ singly-linked lists of strings, to end a chain the next TSItem
|
|
should be nil.
|
|
should be nil.
|
|
28Apr98 LdB
|
|
28Apr98 LdB
|
|
---------------------------------------------------------------------}
|
|
---------------------------------------------------------------------}
|
|
-FUNCTION NewSItem (Const Str: String; ANext: PSItem): PSItem;
|
|
|
|
|
|
+FUNCTION NewSItem (Const Str: Sw_String; ANext: PSItem): PSItem;
|
|
|
|
|
|
{ NewCommandSItem allocates and returns a pointer to a new #TCommandSItem#
|
|
{ NewCommandSItem allocates and returns a pointer to a new #TCommandSItem#
|
|
record. The Value and Next fields of the record are set to NewStr(Str)
|
|
record. The Value and Next fields of the record are set to NewStr(Str)
|
|
and ANext, respectively. The NewSItem function and the TSItem record type
|
|
and ANext, respectively. The NewSItem function and the TSItem record type
|
|
allow easy construction of singly-linked lists of command strings. }
|
|
allow easy construction of singly-linked lists of command strings. }
|
|
-function NewCommandSItem (Str : String; ACommand : Word;
|
|
|
|
|
|
+function NewCommandSItem (Str : Sw_String; ACommand : Word;
|
|
ANext : PCommandSItem) : PCommandSItem;
|
|
ANext : PCommandSItem) : PCommandSItem;
|
|
|
|
|
|
{+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
|
|
{+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
|