templatekeeper provide clipboard functions

work/spdx
Michail Vourlakos 4 years ago
parent 8b00409d14
commit 1b72a68bc6

@ -43,12 +43,24 @@ TemplatesKeeper::~TemplatesKeeper()
clear();
}
Latte::Data::ViewsTable TemplatesKeeper::clipboardContents() const
{
return m_clipboardViews;
}
void TemplatesKeeper::setClipboardContents(const Latte::Data::ViewsTable &views)
{
m_clipboardViews.clear();
m_clipboardViews = views;
}
void TemplatesKeeper::clear()
{
qDeleteAll(m_garbageLayouts);
m_garbageLayouts.clear();
m_storedViews.clear();
m_clipboardViews.clear();
}
QString TemplatesKeeper::viewKeeperId(const QString &layoutCurrentId, const QString &viewId)
@ -89,6 +101,7 @@ QString TemplatesKeeper::storedView(const QString &layoutCurrentId, const QStrin
return storedviewpath;
}
}
}
}

@ -52,6 +52,8 @@ public:
QString storedView(const QString &layoutCurrentId, const QString &viewId);
Latte::Data::ViewsTable clipboardContents() const;
void setClipboardContents(const Latte::Data::ViewsTable &views);
public slots:
void clear();
@ -61,6 +63,7 @@ private:
private:
Latte::Data::ViewsTable m_storedViews;
Latte::Data::ViewsTable m_clipboardViews;
Latte::Corona *m_corona{nullptr};
Settings::Controller::Layouts *m_layoutsController{nullptr};

Loading…
Cancel
Save