Compare commits

...
Author SHA1 Message Date
Tannin f784c34877 - bugfix: endless loop in detection of mod order problems 2014-05-04 16:13:35 +02:00
Tannin b529b1f6a8 - main window now has a small view displaying log messages
- mod list will now be highlighted when grouping is active is active
- download tooltip now supports bbcode markup in the description
- bbcode translator will now translate some named colors
- algorithm for detection of mod order problems is now more sophisticated
- exposed more functionality to python plugins
- updated to qt 4.8.6 dlls
- bugfix: plugin list wasn't
- bugfix: state changes in mod list wasn't always reported
- bugfix: loot client will now create necessary directory
- bugfix: NCC sometimes used wrong source path for extracting
- bugfix: removed noisy debug message
2014-05-04 14:50:01 +02:00
Tannin be9382e684 some fixes towards qt5 compatibility 2014-03-16 20:04:57 +01:00
Tannin 35cc2bb91c - ini file changes that would have to overwrite ini tweaks are now stored in a separate file
and actually get used.
- a warning message advices users to clean out that separate file
- slightly improved default main window layout
- bugfix: newly created ini tweaks were added to the list with incorrect  properties
2014-02-17 21:15:20 +01:00
Tannin 402d6b3a7d - moved code for file previews to plugins 2014-01-14 21:16:36 +01:00
Tannin 6e84aac467 - minor text fixes
- versions without a subminor version are now displayed without it (1.1 instead of 1.1.0)
- version compares now prefer the decimal comparison over the traditional
2013-12-07 16:07:28 +01:00
3 changed files with 265 additions and 141 deletions
+5 -1
View File
@@ -10,6 +10,10 @@ TEMPLATE = lib
CONFIG += plugins
CONFIG += dll
contains(QT_VERSION, "^5.*") {
QT += widgets
}
DEFINES += DIAGNOSEBASIC_LIBRARY
DEFINES += NOMINMAX
@@ -22,7 +26,7 @@ HEADERS += diagnosebasic.h
include(../plugin_template.pri)
INCLUDEPATH += "$(BOOSTPATH)"
INCLUDEPATH += "$(BOOSTPATH)"
#CONFIG += dll
+233 -140
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -25,6 +25,8 @@ along with this plugin. If not, see <http://www.gnu.org/licenses/>.
#include <iplugindiagnose.h>
#include <imoinfo.h>
#include <imodlist.h>
#include <QString>
#include <QSet>
class DiagnoseBasic : public QObject, MOBase::IPlugin, MOBase::IPluginDiagnose
@@ -73,6 +75,7 @@ private:
static const unsigned int PROBLEM_NITPICKINSTALLED = 4;
static const unsigned int PROBLEM_ASSETORDER = 5;
static const unsigned int PROBLEM_MODLISTBACKUP = 6;
static const unsigned int PROBLEM_PROFILETWEAKS = 7;
static const unsigned int NUM_CONTEXT_ROWS = 5;
@@ -83,6 +86,9 @@ private:
QString modName;
int pluginPriority;
int modPriority;
int sortPriority;
int sortGroup;
QSet<QString> relevantScripts;
};
struct Move {
@@ -95,8 +101,29 @@ private:
Move(const ListElement &initItem, const ListElement &initReference, EType initType)
: item(initItem), reference(initReference), type(initType) {}
};
struct Sorter {
struct {
int operator()(const ListElement &lhs, const ListElement &rhs)
{
return lhs.modPriority < rhs.modPriority;
}
} minMod;
std::vector<Move> moves;
void operator()(std::vector<ListElement> modList);
private:
void sortGroup(std::vector<ListElement> modList);
};
friend bool operator<(const Move &lhs, const Move &rhs);
private:
void topoSort(std::vector<ListElement> &list) const;
private:
MOBase::IOrganizer *m_MOInfo;