|
|
@ -43,12 +43,24 @@ TemplatesKeeper::~TemplatesKeeper()
|
|
|
|
clear();
|
|
|
|
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()
|
|
|
|
void TemplatesKeeper::clear()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
qDeleteAll(m_garbageLayouts);
|
|
|
|
qDeleteAll(m_garbageLayouts);
|
|
|
|
|
|
|
|
|
|
|
|
m_garbageLayouts.clear();
|
|
|
|
m_garbageLayouts.clear();
|
|
|
|
m_storedViews.clear();
|
|
|
|
m_storedViews.clear();
|
|
|
|
|
|
|
|
m_clipboardViews.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QString TemplatesKeeper::viewKeeperId(const QString &layoutCurrentId, const QString &viewId)
|
|
|
|
QString TemplatesKeeper::viewKeeperId(const QString &layoutCurrentId, const QString &viewId)
|
|
|
@ -89,6 +101,7 @@ QString TemplatesKeeper::storedView(const QString &layoutCurrentId, const QStrin
|
|
|
|
return storedviewpath;
|
|
|
|
return storedviewpath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|