2022-12-08 19:43:42 +00:00
|
|
|
#ifndef FRAGMENTSORDERVIEW_H
|
|
|
|
#define FRAGMENTSORDERVIEW_H
|
|
|
|
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include <QTableView>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <libParse.h>
|
|
|
|
#include "appcore.h"
|
2023-03-10 13:01:19 +00:00
|
|
|
#include <commandsdispatcher.h>
|
2022-12-08 19:43:42 +00:00
|
|
|
|
|
|
|
namespace Components {
|
|
|
|
|
2023-03-10 13:01:19 +00:00
|
|
|
class FragmentsOrderView : public QWidget, public Schedule::AccessibleObject
|
2022-12-08 19:43:42 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FragmentsOrderView(Core::AppCore *core, QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void refresh();
|
|
|
|
|
|
|
|
void double_click(const QModelIndex &index);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Core::AppCore *const core_ins;
|
|
|
|
QTableView *const table_view;
|
|
|
|
QStandardItemModel *const table_base;
|
|
|
|
|
2023-03-10 13:01:19 +00:00
|
|
|
|
|
|
|
// AccessibleObject interface
|
|
|
|
public:
|
|
|
|
virtual QString name() const override;
|
2022-12-08 19:43:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FRAGMENTSORDERVIEW_H
|