diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-24 09:29:41 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:18 -0400 |
| commit | 581cfacbbdee17f2b4df8195487e5934702a430e (patch) | |
| tree | c98bfef6022fd5445449477904115747d2c206af /src/modinfodialog.h | |
| parent | ad4a90692b73bd73fa7a88690a95daa348839add (diff) | |
changed "tab index" to "tab id", this was confusing the order in the widget and the id from the enum
fixed reordering
Diffstat (limited to 'src/modinfodialog.h')
| -rw-r--r-- | src/modinfodialog.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/modinfodialog.h b/src/modinfodialog.h index 1cefc71a..54e056b8 100644 --- a/src/modinfodialog.h +++ b/src/modinfodialog.h @@ -64,7 +64,6 @@ public: TAB_FILETREE
};
-public:
/**
* @brief constructor
*
@@ -91,7 +90,7 @@ public: void setMod(ModInfo::Ptr mod);
void setMod(const QString& name);
- void setTab(int index);
+ void setTab(ETabs id);
int exec() override;
@@ -125,20 +124,22 @@ private: OrganizerCore* m_core;
PluginContainer* m_plugin;
std::vector<TabInfo> m_tabs;
- int m_initialTab;
+ ETabs m_initialTab;
std::vector<TabInfo> createTabs();
- void restoreTabState(const QByteArray &state);
- QByteArray saveTabState() const;
- void update();
+ void restoreTabState(const QString& state);
+ QString saveTabState() const;
+ void update(bool firstTime=false);
void onDeleteShortcut();
int tabIndex(const QString &tabId);
MOShared::FilesOrigin* getOrigin();
- void setTabsVisibility();
+ void setTabsVisibility(bool firstTime);
void updateTabs();
void feedFiles();
void setTabsColors();
- void switchToTab(std::size_t index);
+ void switchToTab(ETabs id);
+ void reAddTabs(const std::vector<bool>& visibility, ETabs sel);
+ std::vector<QString> getOrderedTabNames() const;
template <class T>
std::unique_ptr<ModInfoDialogTab> createTab(int index)
|
