2018-04-08 09:07:43 +02:00
|
|
|
|
#ifndef PGLPAGE_H
|
|
|
|
|
|
#define PGLPAGE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2018-05-14 20:24:41 +02:00
|
|
|
|
#include <vector>
|
2018-04-08 09:07:43 +02:00
|
|
|
|
|
|
|
|
|
|
/// 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?
|
|
|
|
|
|
///
|
2018-05-14 20:24:41 +02:00
|
|
|
|
class PlgPage: public QWidget{
|
2018-04-08 09:07:43 +02:00
|
|
|
|
public:
|
|
|
|
|
|
using QWidget::QWidget;
|
|
|
|
|
|
|
2018-05-14 20:24:41 +02:00
|
|
|
|
/// Returns the toolbar buttons for this page
|
|
|
|
|
|
virtual std::vector<QAction*> getToolbarActions();
|
|
|
|
|
|
virtual bool canClose();
|
2018-04-08 09:07:43 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PGLPAGE_H
|