removed unused or useless stuff,

renamed some functions for better description,
repaired the SettingsManager usage,
ToDo:
Dropdown list is not updated, it needs a restart,
display names for the directories instead of the path,
This commit is contained in:
Anakin
2017-06-17 15:42:43 +02:00
parent 6141263f45
commit 33fafb29a8
6 changed files with 89 additions and 108 deletions

View File

@@ -26,19 +26,18 @@ private:
int m_curSeverity;
FileInfoWindow* m_infoWindow;
QFileSystemModel* fmodel;
QStringList filters, dropDownDirList;
QFileSystemModel* m_fmodel;
QStringList m_filters;
// functions
private:
void setupWidgets();
void getAssetLibrary();
void setAsset(QString);
void setupAssetLibrary();
void updateAssetTree(QString);
void searchMeshFiles(QString path);
void openFile();
void openFileActual(QString);
void openFileDialog();
void openFile(QString);
void takeScreenShot();
void setDirList();
void aboutTool();
protected:

View File

@@ -22,8 +22,8 @@ public:
// attributes
private:
QFile file;
QString listOfDirs;
QFile m_file;
QStringList m_listOfDirs;
QVector3D m_bgColorOn = { 5, 5, 5 };
QVector3D m_bgColorOff = { 128, 204, 255 };
@@ -47,8 +47,7 @@ public:
bool isBfCulling() const;
bool isLight() const;
QString getListOfDirs();
void setListOfDirs(QString);
QStringList getListOfDirs();
int getLightType() const;
QVector3D getLightColor() const;
@@ -72,4 +71,5 @@ public:
void setHeadlight(bool value);
void setAutoColor(int value);
void updateDirectories(QString path);
};

View File

@@ -11,16 +11,11 @@ class SettingsWindow : public QWidget
public:
SettingsWindow(QWidget * parent = Q_NULLPTR);
~SettingsWindow();
QString getDirList();
private:
Ui::SettingsWindow* ui;
void setupConnections();
void updateDirList();
private:
QString dirList;
private slots:
void autoColorToggled();
@@ -42,5 +37,6 @@ signals:
void sendBackfaceCulling(bool value);
void sendZommSpeed(int percent);
void changeLightType(int value);
void pathChanged(QString path);
};