mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-06 03:55:27 +00:00
0ea5d6fa4b
* Add dialog for deleting and renaming layouts. * Add documentation. Co-authored-by: Itay Cohen
31 lines
618 B
C++
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
|