cutter/src/dialogs/LayoutManager.h

31 lines
618 B
C
Raw Normal View History

#ifndef LAYOUT_MANAGER_H
#define LAYOUT_MANAGER_H
#include <QDialog>
#include <memory>
#include "core/Cutter.h"
#include "common/CutterLayout.h"
namespace Ui {
class LayoutManager;
}
class LayoutManager : public QDialog
{
Q_OBJECT
public:
LayoutManager(QMap<QString, Cutter::CutterLayout> &layouts, QWidget *parent);
~LayoutManager();
private:
void refreshNameList(QString selection = "");
void renameCurrentLayout();
void deleteLayout();
void updateButtons();
std::unique_ptr<Ui::LayoutManager> ui;
QMap<QString, Cutter::CutterLayout> &layouts;
};
#endif // LAYOUT_MANAGER_H