35 lines
694 B
C++
35 lines
694 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "ads/API.h"
|
|
#include "ads/ContainerWidget.h"
|
|
#include "ads/SectionContent.h"
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
virtual ~MainWindow();
|
|
|
|
private slots:
|
|
void onActiveTabChanged(const ADS_NS::SectionContent::RefPtr& sc, bool active);
|
|
void onActionAddSectionContentTriggered();
|
|
|
|
protected:
|
|
virtual void contextMenuEvent(QContextMenuEvent* e);
|
|
virtual void closeEvent(QCloseEvent* e);
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
ADS_NS::ContainerWidget* _container;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|