edbee - Qt Editor Library
texteditorscrollarea.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <QScrollArea>
9 
10 class QLinearGradient;
11 class QPainter;
12 
13 namespace edbee {
14 
15 class PrivateShadowWidget;
16 
18 class TextEditorScrollArea : public QScrollArea
19 {
20  Q_OBJECT
21 public:
22  explicit TextEditorScrollArea(QWidget* parent = 0);
23  virtual ~TextEditorScrollArea();
24 
25  void setLeftWidget(QWidget* widget);
26  void setTopWidget(QWidget* widget);
27  void setRightWidget(QWidget* widget);
28  void setBottomWidget(QWidget* widget);
29 
30 public:
31 
32  void layoutMarginWidgets();
33  void enableShadowWidget(bool enabled);
34 
35 protected:
36  virtual void resizeEvent(QResizeEvent* event);
37 
38 private:
39 
40  QWidget* leftWidgetRef_;
41  QWidget* topWidgetRef_;
42  QWidget* rightWidgetRef_;
43  QWidget* bottomWidgetRef_;
44  PrivateShadowWidget* shadowWidgetRef_;
45 
46 };
47 
48 } // edbee
void setBottomWidget(QWidget *widget)
Definition: texteditorscrollarea.cpp:164
void layoutMarginWidgets()
this method layouts the margin-widgets
Definition: texteditorscrollarea.cpp:170
virtual void resizeEvent(QResizeEvent *event)
Definition: texteditorscrollarea.cpp:215
void setTopWidget(QWidget *widget)
Definition: texteditorscrollarea.cpp:154
TextEditorScrollArea(QWidget *parent=0)
Definition: texteditorscrollarea.cpp:132
void setRightWidget(QWidget *widget)
Definition: texteditorscrollarea.cpp:159
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
virtual ~TextEditorScrollArea()
Definition: texteditorscrollarea.cpp:145
A special class to draw a shadow over the widget.
Definition: texteditorscrollarea.cpp:22
void setLeftWidget(QWidget *widget)
Definition: texteditorscrollarea.cpp:149
void enableShadowWidget(bool enabled)
Definition: texteditorscrollarea.cpp:209
A special scrollarea that makes it possible to add components to the margins of it.
Definition: texteditorscrollarea.h:18