@ -4,7 +4,7 @@
# include <QAbstractTableModel>
# include <QAbstractTableModel>
# include <QStringList>
# include <QStringList>
# include <QSet>
# include <QSet>
# include <QIcon>
# include "loadordererror.hpp"
# include "loadordererror.hpp"
namespace ContentSelectorModel
namespace ContentSelectorModel
@ -23,7 +23,7 @@ namespace ContentSelectorModel
{
{
Q_OBJECT
Q_OBJECT
public :
public :
explicit ContentModel ( QObject * parent = 0 ) ;
explicit ContentModel ( QObject * parent , QIcon warningIcon ) ;
~ ContentModel ( ) ;
~ ContentModel ( ) ;
void setEncoding ( const QString & encoding ) ;
void setEncoding ( const QString & encoding ) ;
@ -57,6 +57,9 @@ namespace ContentSelectorModel
void refreshModel ( ) ;
void refreshModel ( ) ;
/// Checks all plug-ins for load order errors and updates mPluginsWithLoadOrderError with plug-ins with issues
void checkForLoadOrderErrors ( ) ;
private :
private :
void addFile ( EsmFile * file ) ;
void addFile ( EsmFile * file ) ;
@ -65,9 +68,6 @@ namespace ContentSelectorModel
void sortFiles ( ) ;
void sortFiles ( ) ;
/// Checks all plug-ins for load order errors and updates mPluginsWithLoadOrderError with plug-ins with issues
void checkForLoadOrderErrors ( ) ;
/// Checks a specific plug-in for load order errors
/// Checks a specific plug-in for load order errors
/// \return all errors found for specific plug-in
/// \return all errors found for specific plug-in
QList < LoadOrderError > checkForLoadOrderErrors ( const EsmFile * file , int row ) const ;
QList < LoadOrderError > checkForLoadOrderErrors ( const EsmFile * file , int row ) const ;
@ -82,6 +82,7 @@ namespace ContentSelectorModel
QSet < QString > mPluginsWithLoadOrderError ;
QSet < QString > mPluginsWithLoadOrderError ;
QTextCodec * mCodec ;
QTextCodec * mCodec ;
QString mEncoding ;
QString mEncoding ;
QIcon mWarningIcon ;
public :
public :