~ubuntu-branches/debian/sid/kdesvn/sid

« back to all changes in this revision

Viewing changes to src/svnfrontend/models/svnitemmodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-04-18 21:41:53 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090418214153-bdc4nd10fs47i8jp
Tags: 1.3.0-1
* New upstream release.
* debian/control
  - Bump Standards-Version to 3.8.1. No further changes.
  - Change Section of kdesvn-dbg to debug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *   Free Software Foundation, Inc.,                                       *
18
18
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
19
19
 ***************************************************************************/
20
 
#ifndef _SVNITEMMODEL_H
21
 
#define _SVNITEMMODEL_H
 
20
#ifndef SVNITEMMODEL_H
 
21
#define SVNITEMMODEL_H
22
22
 
23
23
#include <QAbstractListModel>
 
24
 
 
25
#include "svnitemmodelfwd.h"
 
26
 
24
27
#include "src/svnqt/shared_pointer.hpp"
25
28
#include "src/svnqt/svnqttypes.hpp"
26
29
 
29
32
class SvnItemModelData;
30
33
class QItemSelectionModel;
31
34
class MainTreeWidget;
32
 
class SvnItemModelNode;
33
 
class SvnItemModelNodeDir;
34
35
class SvnActions;
35
36
class QMimeData;
36
37
 
92
93
    QMimeData* mimeData(const QModelIndexList & indexes )const;
93
94
    virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column,const QModelIndex & parent);
94
95
 
95
 
    bool filterIndex(const QModelIndex&,int)const;
 
96
    bool filterIndex(const QModelIndex&,int,svnmodel::ItemTypeFlag)const;
96
97
 
97
98
    /* svn actions starts here */
98
99
    void makeIgnore(const QModelIndex&);
111
112
    bool refreshCurrentTree();
112
113
    bool refreshDirnode(SvnItemModelNodeDir*,bool check_empty=false,bool notrec=false);
113
114
    bool refreshItem(SvnItemModelNode*);
 
115
    bool refreshIndex(const QModelIndex&,bool sendSignal=true);
114
116
 
115
117
    void clearNodeDir(SvnItemModelNodeDir*);
116
118
 
122
124
protected:
123
125
   /* the parent entry must removed from list before */
124
126
   void insertDirs(SvnItemModelNode* _parent,svn::StatusEntries&);
125
 
   bool refreshIndex(const QModelIndex&,bool sendSignal=true);
126
127
   //! \a ind must be a directory index
127
128
   void checkAddNewItems(const QModelIndex&ind);
128
129
   bool checkRootNode();