fbdbg  3.0
FreeBASIC Debugger
IniUDT Class Reference

Class to handle values in the file fbdebugger.ini. More...

Public Types

enum  {
  FSH, FVM, FSL, FFL,
  FLT, FPT, FTT, FLN
}
 

Public Member Functions

 IniUDT ()
 Constructor to initially load the ini file. More...
 
FUNCTION_AS_gchar_PTR loadIni ()
 Load the ini file from disk. More...
 
FUNCTION_AS_gchar_PTR saveIni ()
 Save data to ini file on disk. More...
 
PROPERTY_AS_gboolean Bool (BYVAL_AS_INTEGER)
 Receive the gboolean value of the specified flag. More...
 
PROPERTY Bool (BYVAL_AS_INTEGER, BYVAL_AS_gboolean)
 Set the state of the specified flag. More...
 
PROPERTY_AS_STRING Flag (BYVAL_AS_INTEGER)
 Receive the textual value of the specified flag. More...
 
PROPERTY Flag (BYVAL_AS_INTEGER, BYVAL_AS_STRING)
 Set the state of the specified flag based on a string. More...
 

Public Attributes

guint32 Flags
 All flags.
 
guint32 CurPos
 The position of the current line.
 
guint32 DelVal
 The value for step delays.
 
guint32 ColForegr
 The foreground color.
 
guint32 ColLineNo
 The background color for line numbers.
 
guint32 ColBackgr
 The background color.
 
guint32 ColBackgrCur
 The background color for the current line.
 
guint32 ColKeyword
 The color to highlight keywords.
 
guint32 ColStrings
 The color to highlight strings.
 
guint32 ColPrepro
 The color to highlight pre-processors.
 
guint32 ColComment
 The color to highlight comments.
 
guint32 ColNumbers
 The color to highlight numbers.
 
guint32 ColEscape
 The color to highlight escape characters.
 
guint32 ColCursor
 The color to highlight the cursor/selection.
 
STRING FbcExe
 The path/file of the FreeBASIC compiler.
 
STRING IdeExe
 The path/file of the IDE.
 
STRING CmdlFbc
 Additional options for fbc.
 
STRING FnamLog
 The path/file of the log file.
 
STRING JitPrev
 The Just In Time debugger.
 
STRING FontSrc = "Monospace 8"
 The (default) name of the font for source views.
 
STRING StlSchm = "fbdebugger"
 The (default) name of the style scheme for source views.
 
STRING SavExe [EXEMAX+1]
 Array for path/name of last executables.
 
STRING CmdExe [EXEMAX+1]
 Array for commands of last executables.
 
STRING BrkExe [EXEMAX+1][BRKMAX+1]
 Array for breakpoints.
 
STRING WtchExe [EXEMAX+1][WTCHMAX+1]
 Array for watch of executables.
 

Detailed Description

Class to handle values in the file fbdebugger.ini.

Definition at line 32 of file core.bi.

Member Enumeration Documentation

anonymous enum
Enumerator
FSH 

Flag syntax highlighting.

FVM 

Flag verbose mode.

FSL 

Flag screen log.

FFL 

Flag file log.

FLT 

Flag line trace.

FPT 

Flag proc trace.

FTT 

Flag tool tips.

FLN 

Flag line numbers.

Definition at line 63 of file core.bi.

Constructor & Destructor Documentation

IniUDT::IniUDT ( )

Constructor to initially load the ini file.

This constructor initialy loads the file fbdebugger.ini on startup and reports an error message in console window in case of a failure.

Definition at line 18 of file ini.bas.

Here is the call graph for this function:

Member Function Documentation

PROPERTY_AS_gboolean IniUDT::Bool ( BYVAL_AS_INTEGER  I)

Receive the gboolean value of the specified flag.

Parameters
IThe flag index [0, 31]
Returns
The flag state [0, 1]

This property returns either TRUE or FALSE, depending on the flag state.

Definition at line 32 of file ini.bas.

PROPERTY IniUDT::Bool ( BYVAL_AS_INTEGER  I,
BYVAL_AS_gboolean  V 
)

Set the state of the specified flag.

Parameters
IThe flag index [0, 31]
VThe new flag state to set

This property sets a new flag state. 0 (zero) is off (= FALSE), any other value sets on (= TRUE).

Definition at line 45 of file ini.bas.

PROPERTY_AS_STRING IniUDT::Flag ( BYVAL_AS_INTEGER  I)

Receive the textual value of the specified flag.

Parameters
IThe flag index [0, 31]
Returns
The flag state string ["TRUE", "FALSE"]

This property returns the flag state as string (either "TRUE" or "FALSE").

Definition at line 60 of file ini.bas.

Here is the caller graph for this function:

PROPERTY IniUDT::Flag ( BYVAL_AS_INTEGER  I,
BYVAL_AS_STRING  V 
)

Set the state of the specified flag based on a string.

Parameters
IThe flag index [0, 31]
VThe new flag state to set

This property sets a new flag state. "TRUE" (non-case-sensitive) is on, any other value sets off.

Definition at line 73 of file ini.bas.

FUNCTION_AS_gchar_PTR IniUDT::loadIni ( )

Load the ini file from disk.

Returns
NULL on success, an error code otherwise

Member function to load the data from file fbdebugger.ini and populate the member variables. Strings get trimmed, flags are set when input is "TRUE" (non-case-sensitive).

Definition at line 88 of file ini.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

FUNCTION_AS_gchar_PTR IniUDT::saveIni ( )

Save data to ini file on disk.

Returns
NULL on success, an error code otherwise

Member function to save the data from the member variables to file fbdebugger.ini. Strings get trimmed before saving.

Definition at line 164 of file ini.bas.

Here is the call graph for this function:


The documentation for this class was generated from the following files: