File indexing completed on 2024-04-28 05:41:55
0001 /*************************************************************************** 0002 * Copyright (C) 2007 by Rajko Albrecht ral@alwins-world.de * 0003 * https://kde.org/applications/development/org.kde.kdesvn * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0019 ***************************************************************************/ 0020 #pragma once 0021 0022 #include "svnqt/svnqttypes.h" 0023 #include <QStringList> 0024 #include <QTreeWidget> 0025 0026 class SvnItem; 0027 /** 0028 @author 0029 */ 0030 class Propertylist : public QTreeWidget 0031 { 0032 Q_OBJECT 0033 public: 0034 explicit Propertylist(QWidget *parent = nullptr); 0035 ~Propertylist() override; 0036 0037 bool checkExisting(const QString &aName, QTreeWidgetItem *it = nullptr); 0038 bool commitchanges() const 0039 { 0040 return m_commitit; 0041 } 0042 void setCommitchanges(bool how) 0043 { 0044 m_commitit = how; 0045 } 0046 0047 public Q_SLOTS: 0048 void displayList(const svn::PathPropertiesMapListPtr &, bool, bool, const QString &); 0049 void clear(); 0050 0051 protected Q_SLOTS: 0052 void init(); 0053 void slotItemChanged(QTreeWidgetItem *item, int col); 0054 0055 Q_SIGNALS: 0056 void sigSetProperty(const svn::PropertiesMap &, const QStringList &, const QString &); 0057 0058 protected: 0059 bool m_commitit; 0060 QString m_current; 0061 bool m_Dir; 0062 };