1 /***************************************************************************
2 * Copyright 2007 Dukju Ahn <dukjuahn@gmail.com> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 ***************************************************************************/
11 #ifndef SVN_OUTPUTMODEL_H
12 #define SVN_OUTPUTMODEL_H
14 #include <QAbstractItemModel>
16 #include <outputview/ioutputviewmodel.h>
17 #include <QStandardItemModel>
20 * Model that is used by outputview notification.
21 * When activated, open the file. Depending on the result of update operation, it paints
22 * with corresponding color. For example, regarding conflicted item, it paints red color
25 * TODO Clearing the list by context menu.
30 class SvnOutputItem
: public QStandardItem
33 explicit SvnOutputItem( const QString
&path
, const QString
&msg
);
34 virtual ~SvnOutputItem();
41 class SvnOutputModel
: public QStandardItemModel
, public KDevelop::IOutputViewModel
50 explicit SvnOutputModel( KDevSvnPlugin
*part
, QObject
*parent
= 0 );
53 // IOutputViewModel interfaces.
55 void activate( const QModelIndex
& index
);
57 /// Highlight next conflicted item in list.
58 QModelIndex
nextHighlightIndex( const QModelIndex
& currentIndex
);
60 /// Highlight previous conflicted item in list.
61 QModelIndex
previousHighlightIndex( const QModelIndex
& currentIndex
);
64 KDevSvnPlugin
*m_part
;