initial import of custom keys support (#101)

It will use the configuration file `$AWHOME/custom.ini`, group `[Custom]`. One
custom key per string, key is custom key, value is any of available
standard data.

Formatters will be defined by using standard way.
This commit is contained in:
2016-09-21 01:02:21 +03:00
parent 8e598bbd13
commit 1c52cf72be
4 changed files with 369 additions and 0 deletions

View File

@ -80,12 +80,14 @@ void AWFormatterConfig::updateUi()
= m_selectors.indexOf(static_cast<AWAbstractSelector *>(sender()));
if ((current.first.isEmpty()) && (current.second.isEmpty())) {
// remove current selector if it is empty and does not last
if (sender() == m_selectors.last())
return;
AWAbstractSelector *selector = m_selectors.takeAt(index);
ui->verticalLayout->removeWidget(selector);
selector->deleteLater();
} else {
// add new selector if something changed
if (sender() != m_selectors.last())
return;
auto keys = initKeys();