Added a gutter and currentline highlighting to the SQL editor.

Currently gutter only shows linenumbers. Code is mostly from http://doc.qt.io/qt-5/qtwidgets-widgets-codeeditor-example.html

There is a little bit included in this commit from a first try to make toobars adept to the current tab.

Code #2
This commit is contained in:
eelke 2018-04-08 09:07:43 +02:00
parent 5e83094e6a
commit 47ee1857cd
15 changed files with 281 additions and 6 deletions

24
pglab/PglPage.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef PGLPAGE_H
#define PGLPAGE_H
#include <QWidget>
/// Provides a pluggable system for toolbar buttons and menu actions
///
/// We will need several kind of actions
/// - create actions, these will create a new document or load from file , always available in menu
/// - save actions available when on tab
/// - edit actions
/// - custom menu?
///
/// Can we use same groupings for toolbars and menu's
/// How about additional toolbars?
///
class PglPage: public QWidget{
public:
using QWidget::QWidget;
};
#endif // PGLPAGE_H