cutter/src/dialogs/LayoutManager.h
karliss 0ea5d6fa4b
Add UI for managing layouts (#2211)
* Add dialog for deleting and renaming layouts.

* Add documentation.

Co-authored-by: Itay Cohen
2020-05-24 01:12:32 +03:00

31 lines
618 B
C++

#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