mirror of https://github.com/aseprite/aseprite.git
Move LayoutSelector::setActiveLayoutId() impl to .cpp file
This commit is contained in:
parent
778e62a411
commit
86c7fae42c
|
@ -503,6 +503,19 @@ void LayoutSelector::setupTooltips(TooltipManager* tooltipManager)
|
|||
tooltipManager->addTooltipFor(&m_button, Strings::main_window_layout(), TOP);
|
||||
}
|
||||
|
||||
void LayoutSelector::setActiveLayoutId(const std::string& layoutId)
|
||||
{
|
||||
if (layoutId.empty()) {
|
||||
m_activeLayoutId = Layout::kDefault;
|
||||
return;
|
||||
}
|
||||
|
||||
if (layoutId == m_activeLayoutId)
|
||||
return;
|
||||
|
||||
m_activeLayoutId = layoutId;
|
||||
}
|
||||
|
||||
void LayoutSelector::populateComboBox()
|
||||
{
|
||||
m_comboBox.deleteAllItems();
|
||||
|
|
|
@ -66,18 +66,7 @@ protected:
|
|||
|
||||
private:
|
||||
void setupTooltips(ui::TooltipManager* tooltipManager);
|
||||
void setActiveLayoutId(const std::string& layoutId)
|
||||
{
|
||||
if (layoutId.empty()) {
|
||||
m_activeLayoutId = Layout::kDefault;
|
||||
return;
|
||||
}
|
||||
|
||||
if (layoutId == m_activeLayoutId)
|
||||
return;
|
||||
|
||||
m_activeLayoutId = layoutId;
|
||||
}
|
||||
void setActiveLayoutId(const std::string& layoutId);
|
||||
|
||||
void populateComboBox();
|
||||
LayoutItem* getItemByLayoutId(const std::string& id);
|
||||
|
|
Loading…
Reference in New Issue