summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-10 10:48:09 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-04 03:33:16 -0500
commit7e748d15c9d4fdf42b753f58e033899c5753b899 (patch)
tree1dd850ea652acf4cbcc8d43a8dc8d50dbc0bee72 /src/mainwindow.h
parente9da5b4fad488a5e1ff61d68cc6a24b68f0d4440 (diff)
split data tab
removed a bunch of undefined functions in MainWindow
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h44
1 files changed, 2 insertions, 42 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 2c45049a..d50705e3 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -34,12 +34,11 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "iplugingame.h" //namespace MOBase { class IPluginGame; }
#include <log.h>
-//Note the commented headers here can be replaced with forward references,
-//when I get round to cleaning up main.cpp
class Executable;
class CategoryFactory;
class OrganizerCore;
class FilterList;
+class DataTab;
class PluginListSortProxy;
namespace BSA { class Archive; }
@@ -122,8 +121,6 @@ public:
bool addProfile();
void updateBSAList(const QStringList &defaultArchives, const QStringList &activeArchives);
- void refreshDataTree();
- void refreshDataTreeKeepExpandedNodes();
void refreshSaveList();
void setModListSorting(int index);
@@ -137,10 +134,6 @@ public:
void addPrimaryCategoryCandidates(QMenu *primaryCategoryMenu, ModInfo::Ptr info);
- void updateModInDirectoryStructure(unsigned int index, ModInfo::Ptr modInfo);
-
- QString getOriginDisplayName(int originID);
-
void installTranslator(const QString &name);
virtual void disconnectPlugins();
@@ -219,20 +212,12 @@ private:
QMenu* createPopupMenu() override;
void activateSelectedProfile();
- void startSteam();
-
- void updateTo(QTreeWidgetItem *subTree, const std::wstring &directorySoFar, const MOShared::DirectoryEntry &directoryEntry, bool conflictsOnly, QIcon *fileIcon, QIcon *folderIcon);
bool refreshProfiles(bool selectProfile = true);
void refreshExecutablesList();
void installMod(QString fileName = "");
- QList<MOBase::IOrganizer::FileInfo> findFileInfos(const QString &path, const std::function<bool (const MOBase::IOrganizer::FileInfo &)> &filter) const;
-
bool modifyExecutablesDialog(int selection);
void displayModInformation(int row, ModInfoTabIDs tab=ModInfoTabIDs::None);
- void testExtractBSA(int modIndex);
-
- void writeDataToFile(QFile &file, const QString &directory, const MOShared::DirectoryEntry &directoryEntry);
/**
* Sets category selections from menu; for multiple mods, this will only apply
@@ -267,8 +252,6 @@ private:
void displaySaveGameInfo(QListWidgetItem *newItem);
- HANDLE nextChildProcess();
-
bool errorReported(QString &logFile);
void updateESPLock(bool locked);
@@ -285,8 +268,6 @@ private:
QMenu *openFolderMenu();
- std::set<QString> enabledArchives();
-
void scheduleUpdateButton();
QDir currentSavesDir() const;
@@ -297,7 +278,6 @@ private:
void dropLocalFile(const QUrl &url, const QString &outputDir, bool move);
void sendSelectedModsToPriority(int newPriority);
- void sendSelectedPluginsToPriority(int newPriority);
void toggleMO2EndorseState();
void toggleUpdateAction();
@@ -322,6 +302,7 @@ private:
MOBase::TutorialControl m_Tutorial;
std::unique_ptr<FilterList> m_Filters;
+ std::unique_ptr<DataTab> m_DataTab;
int m_OldProfileIndex;
@@ -364,8 +345,6 @@ private:
QFileSystemWatcher m_SavesWatcher;
- std::vector<QTreeWidgetItem*> m_RemoveWidget;
-
QByteArray m_ArchiveListHash;
bool m_DidUpdateMasterList;
@@ -438,18 +417,6 @@ private slots:
void deleteSavegame_clicked();
void fixMods_clicked(SaveGameInfo::MissingAssets const &missingAssets);
// data-tree context menu
- void writeDataToFile();
- void openDataFile();
- void openDataFile(QTreeWidgetItem* item);
- void runDataFileHooked();
- void runDataFileHooked(QTreeWidgetItem* item);
- void addAsExecutable();
- void previewDataFile();
- void previewDataFile(QTreeWidgetItem* item);
- void hideFile();
- void unhideFile();
- void openDataOriginExplorer_clicked();
- void openDataModInfo_clicked();
// pluginlist context menu
void enableSelectedPlugins_clicked();
@@ -592,10 +559,7 @@ private slots:
void unignoreUpdate();
void refreshSavesIfOpen();
- void expandDataTreeItem(QTreeWidgetItem *item);
- void activateDataTreeItem(QTreeWidgetItem *item, int column);
void about();
- void delayedRemove();
void modListSortIndicatorChanged(int column, Qt::SortOrder order);
void modListSectionResized(int logicalIndex, int oldSize, int newSize);
@@ -634,11 +598,7 @@ private slots: // ui slots
void on_centralWidget_customContextMenuRequested(const QPoint &pos);
void on_bsaList_customContextMenuRequested(const QPoint &pos);
void on_clearFiltersButton_clicked();
- void on_btnRefreshData_clicked();
void on_btnRefreshDownloads_clicked();
- void on_conflictsCheckBox_toggled(bool checked);
- void on_showArchiveDataCheckBox_toggled(bool checked);
- void on_dataTree_customContextMenuRequested(const QPoint &pos);
void on_executablesListBox_currentIndexChanged(int index);
void on_modList_customContextMenuRequested(const QPoint &pos);
void on_modList_doubleClicked(const QModelIndex &index);