mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 13:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			77 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			77 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef DATAFILESLIST_H
 | |
| #define DATAFILESLIST_H
 | |
| 
 | |
| #include <QWidget>
 | |
| #include <QModelIndex>
 | |
| #include <components/files/collections.hpp>
 | |
| 
 | |
| 
 | |
| class QTableView;
 | |
| class QSortFilterProxyModel;
 | |
| class QSettings;
 | |
| class QAction;
 | |
| class QToolBar;
 | |
| class QMenu;
 | |
| class ProfilesComboBox;
 | |
| class DataFilesModel;
 | |
| 
 | |
| class TextInputDialog;
 | |
| 
 | |
| namespace Files { struct ConfigurationManager; }
 | |
| 
 | |
| class DataFilesList : public QWidget
 | |
| {
 | |
|     Q_OBJECT
 | |
| 
 | |
| public:
 | |
|     DataFilesList(Files::ConfigurationManager& cfg, QWidget *parent = 0);
 | |
| 
 | |
|     bool setupDataFiles(Files::PathContainer dataDirs, const QString encoding);
 | |
|     void selectedFiles(std::vector<boost::filesystem::path>& paths);
 | |
|     void uncheckAll();
 | |
|     QStringList checkedFiles();
 | |
|     void setCheckState(const QString& element, Qt::CheckState);
 | |
|     
 | |
| 
 | |
| public slots:
 | |
|     void setCheckState(QModelIndex index);
 | |
| 
 | |
|     void filterChanged(const QString filter);
 | |
|     void showContextMenu(const QPoint &point);
 | |
| 
 | |
|     // Action slots
 | |
| //    void moveUp();
 | |
| //    void moveDown();
 | |
| //    void moveTop();
 | |
| //    void moveBottom();
 | |
|     void check();
 | |
|     void uncheck();
 | |
|     void refresh();
 | |
| 
 | |
| private:
 | |
|     DataFilesModel *mMastersModel;
 | |
|     DataFilesModel *mPluginsModel;
 | |
| 
 | |
|     QSortFilterProxyModel *mPluginsProxyModel;
 | |
| 
 | |
|     QTableView *mMastersTable;
 | |
|     QTableView *mPluginsTable;
 | |
| 
 | |
|     QMenu *mContextMenu;
 | |
| 
 | |
| //    QAction *mMoveUpAction;
 | |
| //    QAction *mMoveDownAction;
 | |
| //    QAction *mMoveTopAction;
 | |
| //    QAction *mMoveBottomAction;
 | |
|     QAction *mCheckAction;
 | |
|     QAction *mUncheckAction;
 | |
| 
 | |
|     Files::ConfigurationManager &mCfgMgr;
 | |
| 
 | |
| //    const QStringList checkedPlugins();
 | |
| //    const QStringList selectedMasters();
 | |
| 
 | |
|     void createActions();
 | |
| };
 | |
| 
 | |
| #endif
 |