BALL
1.4.2
|
#include <BALL/VIEW/WIDGETS/logView.h>
Public Slots | |
virtual void | showGuestContextMenu (const QPoint &) |
bool | eventFilter (QObject *, QEvent *) |
Event filter logstream. More... | |
![]() | |
virtual void | dropEvent (QDropEvent *e) |
virtual void | dragEnterEvent (QDragEnterEvent *e) |
virtual void | showGuestContextMenu (const QPoint &) |
Public Member Functions | |
LogView (QWidget *parent=0, const char *name=0) | |
LogView (const LogView &view) | |
virtual | ~LogView () |
virtual void | initializeWidget (MainControl &main_control) |
virtual void | finalizeWidget (MainControl &main_control) |
void | logString (const String &text) |
![]() | |
DockWidget (QWidget *parent, const char *title=0) | |
Use this constructor! More... | |
virtual | ~DockWidget () |
void | setGuest (QWidget &guest) |
virtual void | fetchPreferences (INIFile &inifile) |
virtual void | writePreferences (INIFile &inifile) |
virtual void | setWidgetVisible (bool state) |
For usage with Python: More... | |
virtual void | registerForHelpSystem (const QObject *widget, const String &url) |
QGridLayout * | getGuestLayout () |
![]() | |
void | setWorkingDirFromFilename_ (String filename) |
virtual void | showHelp (const String &url) |
ModularWidget (const char *name="<ModularWidget>") | |
ModularWidget (const ModularWidget &widget) | |
virtual | ~ModularWidget () |
virtual void | destroy () |
virtual void | clear () |
virtual void | checkMenu (MainControl &main_control) |
QAction * | insertMenuEntry (Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence()) |
void | setMenuHint (const String &hint) |
void | setMenuHelp (const String &url) |
virtual void | addToolBarEntries (QToolBar *main_tb) |
void | setIcon (const String &filename, bool add_to_main_toolbar=true) |
virtual void | initializePreferencesTab (Preferences &preferences) |
virtual void | finalizePreferencesTab (Preferences &preferences) |
virtual void | applyPreferences () |
bool | lockComposites () |
bool | unlockComposites () |
Unlock the Composites. More... | |
MainControl * | getMainControl () const |
virtual void | setStatusbarText (const String &text, bool important=false) |
virtual void | setStatusbarText (const QString &text, bool important=false) |
More... | |
String | getWorkingDir () |
Implemented for convenience. More... | |
void | setWorkingDir (const String &dir) |
Implemented for convenience. More... | |
FragmentDB & | getFragmentDB () const |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
virtual bool | canHandle (const String &) const |
virtual bool | openFile (const String &) |
![]() | |
Embeddable (const String &identifier="<Embeddable>") | |
Embeddable (const Embeddable &embeddable) | |
virtual | ~Embeddable () |
void | setIdentifier (const String &identifier) |
const String & | getIdentifier () const |
void | unregisterThis () |
virtual void | registerThis () |
![]() | |
ConnectionObject () | |
virtual | ~ConnectionObject () |
void | registerConnectionObject (ConnectionObject &object) |
void | unregisterConnectionObject (ConnectionObject &object) |
bool | isConnectionObjectRegistered (const ConnectionObject &object) |
ConnectionObject * | getParent () const |
ConnectionObject * | getRoot () |
virtual void | onNotify (Message *message) |
virtual bool | isValid () const |
![]() | |
LogStreamNotifier () | |
virtual | ~LogStreamNotifier () |
void | registerAt (LogStream &log_stream, int min_level=LogStreamBuf::MIN_LEVEL, int max_level=LogStreamBuf::MAX_LEVEL) |
void | unregister () |
Protected Member Functions | |
void | logNotify () |
![]() | |
DockWidget () | |
DockWidget (const DockWidget &) | |
Private Attributes | |
QTextEdit * | text_edit_ |
Additional Inherited Members | |
![]() | |
typedef std::vector< Embeddable * > | EmbeddableVector |
![]() | |
static void | registerWidget (ModularWidget *mwidget) throw (Exception::NullPointer) |
![]() | |
static void | registerInstance_ (const std::type_info &type, const Embeddable *instance) |
static void | unregisterInstance_ (const Embeddable *instance) |
static Size | countInstances_ (const std::type_info &type) |
static Embeddable * | getInstance_ (const std::type_info &type, Position index) |
static Embeddable * | getInstance_ (const std::type_info &type, const String &identifier) |
![]() | |
QWidget * | container_ |
QWidget * | guest_ |
QGridLayout * | layout_ |
![]() | |
std::stringstream | stream_ |
LogStream * | registered_at_ |
LogView class. The class LogView records all messages sent to the Log object and displays them as a text history. The class is derived from LogStreamNotifier that provides the connection to the Log object. The class QTextEdit from the qt - library is responsible for the visualization of the text history. Use the class LogView as a widget. There are no initializations necessary. Just create this widget as a child widget of your application and it will record and show all messages sent to the Log object. The LogView supports URLs, that are included into the LogStream. The links must only be one line long. If such a link is clicked, it's document is shown in the HelpViewer. This can be used to show the corresponding section in the BALLView documentation for an occuring problem.
BALL::VIEW::LogView::LogView | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Default Constructor. The contructor connects the own stringstream with the Log object. If a string is written into Log this will be notified and the string will be displayed by this logView.
BALL::VIEW::LogView::LogView | ( | const LogView & | view | ) |
Copy constructor. Only for Python Interface The text of view will be copied into this logView.
|
virtual |
Destructor. Calls clear.
|
virtual |
Remove menu entries.
Reimplemented from BALL::VIEW::ModularWidget.
|
virtual |
Setup the menu entry in "Edit->Clear Logs".
Reimplemented from BALL::VIEW::DockWidget.
|
protectedvirtual |
Overridden notify call. Will be called by Log whenever a string is written to it. That string will then be displayed.
source | the notification source |
true
Reimplemented from BALL::LogStreamNotifier.
void BALL::VIEW::LogView::logString | ( | const String & | text | ) |
|
virtualslot |