~ken-vandine/ubuntu-filemanager-app/plugin_cleanup

« back to all changes in this revision

Viewing changes to folderlistmodel/dirmodel.h

  • Committer: carlos.mazieri at gmail
  • Date: 2013-04-10 23:27:08 UTC
  • Revision ID: carlos.mazieri@gmail.com-20130410232708-66hpn06pv2dlg2mr
added show Hidden Files feature as property

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
    Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged)
85
85
    inline QString path() const { return mCurrentDir; }  
86
 
 
87
 
    Q_PROPERTY(bool awaitingResults READ awaitingResults NOTIFY awaitingResultsChanged);
88
 
    bool awaitingResults() const;
89
 
 
90
86
    void setPath(const QString &pathName);
91
87
 
 
88
    Q_PROPERTY(bool awaitingResults READ awaitingResults NOTIFY awaitingResultsChanged)
 
89
    bool awaitingResults() const;    
 
90
 
92
91
    Q_INVOKABLE void rm(const QStringList &paths);
93
92
 
94
93
    Q_INVOKABLE bool rename(int row, const QString &newName);
97
96
 
98
97
    Q_PROPERTY(bool showDirectories READ showDirectories WRITE setShowDirectories NOTIFY showDirectoriesChanged)
99
98
    bool showDirectories() const;
100
 
    void setShowDirectories(bool showDirectories);
101
99
 
102
100
    Q_PROPERTY(QStringList nameFilters READ nameFilters WRITE setNameFilters NOTIFY nameFiltersChanged)
103
101
    QStringList nameFilters() const;
144
142
    Q_PROPERTY(QString parentPath READ parentPath NOTIFY pathChanged)
145
143
    Q_INVOKABLE QString parentPath() const;
146
144
 
 
145
    Q_PROPERTY(bool showHiddenFiles READ showHiddenFiles WRITE setShowHiddenFiles NOTIFY showHiddenFilesChanged)
 
146
    bool showHiddenFiles() const;    
 
147
 
147
148
    Q_INVOKABLE QString homePath() const;
148
149
 
149
150
    /*!
221
222
     */
222
223
    void cancelAction();
223
224
 
 
225
    void setShowDirectories(bool showDirectories);
 
226
    void setShowHiddenFiles(bool show);
 
227
 
224
228
signals:
225
229
    /*!
226
230
     * \brief insertedItem()
241
245
     */
242
246
    void     progress(int curItem, int totalItems, int percent);
243
247
 
 
248
    void     showHiddenFilesChanged();
 
249
 
244
250
private slots:
245
251
    void onItemRemoved(const QString&);
246
252
    void onItemRemoved(const QFileInfo&);
250
256
private:
251
257
    int  addItem(const QFileInfo& fi);
252
258
 
 
259
private:
 
260
    bool               mShowHiddenFiles;
 
261
 
253
262
#if defined(REGRESSION_TEST_FOLDERLISTMODEL) //used in Unit/Regression tests
254
263
public:
255
264
#else