fbdbg  3.0
FreeBASIC Debugger
LOG_Udt Class Reference

Class to handle the dialogs with text view. More...

Public Member Functions

 LOG_Udt ()
 Constructor reads the XML file. More...
 
SUB Notes (BYVAL_AS_gchar_PTR)
 Toggle notes window. More...
 
SUB add2Notes (BYVAL_AS_gchar_PTR Txt=0)
 Add text to the notes text view buffer. More...
 
SUB FileLog (BYVAL_AS_gchar_PTR)
 Toggle file log window. More...
 

Public Attributes

STRING Xml
 The design for the dialog windows (context of file log.ui)
 
GtkTextBuffer_PTR BufNotes
 The text buffer of the notes dialog.
 
GtkTextBuffer_PTR BufLogFile
 The text buffer of the screen file dialog.
 
GtkTextBuffer_PTR BufLogScreen
 The text buffer of the screen log dialog.
 

Detailed Description

Class to handle the dialogs with text view.

This class provides member functions to handle non-modal dialogs for text views for

  • Notes (editable)
  • screen LOG (editable)
  • file LOG (non-editable)
Todo:
Decide if we need a getNotes method here

Definition at line 204 of file gui.bi.

Constructor & Destructor Documentation

LOG_Udt::LOG_Udt ( )

Constructor reads the XML file.

Constructor to read the XML file containing the dialog window design. This file is used to build the dialog windows.

Definition at line 21 of file log_notes.bas.

Member Function Documentation

SUB LOG_Udt::add2Notes ( BYVAL_AS_gchar_PTR  Txt = 0)

Add text to the notes text view buffer.

Parameters
TxtThe context to add (may be NULL or empty string)

Member function to add some text to the notes text buffer. If the notes window isn't realized yet, the window gets opened first.

Todo:
Decide if we add context from ini file when opening the window.

Definition at line 44 of file log_notes.bas.

Here is the call graph for this function:

SUB LOG_Udt::FileLog ( BYVAL_AS_gchar_PTR  Fnam)

Toggle file log window.

Parameters
FnamPath/Name of log file to load

Member function to toggle the state of the file log window, either visible or invisible. When called first, a new dialog window gets created and the file content gets loaded in to the text buffer. In case of an open error the buffer is empty, no error message.

Definition at line 102 of file log_notes.bas.

SUB LOG_Udt::Notes ( BYVAL_AS_gchar_PTR  Txt = 0)

Toggle notes window.

Parameters
TxtContext to set in buffer (may be NULL or empty string)

Member function to toggle the state of the notes window, either visible or invisible. When called first, a new dialog window gets created.

Definition at line 59 of file log_notes.bas.

Here is the caller graph for this function:


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