Loading...
Searching...
No Matches
logView.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_WIDGETS_LOGVIEW_H
#define BALL_VIEW_WIDGETS_LOGVIEW_H
#include <BALL/common.h>
#include <BALL/VIEW/WIDGETS/dockWidget.h>
#include <QtWidgets/QTextBrowser>
#include <QtGui/QDragEnterEvent>
#include <QtGui/QDragLeaveEvent>
#include <QtGui/QDropEvent>
namespace BALL
{
namespace VIEW
{
class DragLogView
: public QTextBrowser
{
Q_OBJECT
public:
DragLogView(QWidget* parent);
public Q_SLOTS:
virtual void contentsDragEnterEvent(QDragEnterEvent* e);
virtual void contentsDragLeaveEvent(QDragLeaveEvent* e);
virtual void contentsDropEvent(QDropEvent* e);
virtual void setSource(const QUrl& /* name */);
};
class BALL_VIEW_EXPORT LogView
: public DockWidget,
public LogStreamNotifier
{
Q_OBJECT
public:
BALL_EMBEDDABLE(LogView,DockWidget)
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);
// output a string
void logString(const String& text);
public Q_SLOTS:
virtual void showGuestContextMenu(const QPoint&);
bool eventFilter(QObject*, QEvent*);
protected:
void logNotify();
private:
QTextEdit* text_edit_;
};
} } // namespaces
#endif // BALL_VIEW_WIDGETS_LOGVIEW_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::LogStreamNotifier::LogStreamNotifier
LogStreamNotifier()
BALL::String
Definition string.h:57
BALL::VIEW::DockWidget::DockWidget
DockWidget(QWidget *parent, const char *title=0)
Use this constructor!
BALL::VIEW::DragLogView::contentsDropEvent
virtual void contentsDropEvent(QDropEvent *e)
BALL::VIEW::DragLogView::setSource
virtual void setSource(const QUrl &)
BALL::VIEW::DragLogView::contentsDragEnterEvent
virtual void contentsDragEnterEvent(QDragEnterEvent *e)
BALL::VIEW::DragLogView::contentsDragLeaveEvent
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e)
BALL::VIEW::DragLogView::DragLogView
DragLogView(QWidget *parent)
BALL::VIEW::LogView::finalizeWidget
virtual void finalizeWidget(MainControl &main_control)
BALL::VIEW::LogView::eventFilter
bool eventFilter(QObject *, QEvent *)
Event filter logstream.
BALL::VIEW::LogView::logNotify
void logNotify()
BALL::VIEW::LogView::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::LogView::LogView
LogView(QWidget *parent=0, const char *name=0)
BALL::VIEW::LogView::showGuestContextMenu
virtual void showGuestContextMenu(const QPoint &)
BALL::VIEW::LogView::logString
void logString(const String &text)
BALL::VIEW::MainControl
Definition mainControl.h:118
QEvent
QObject
QTextBrowser
QWidget
common.h
dockWidget.h
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13