Kate
katecompletionconfig.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2006 Hamish Rodda <rodda@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef KATECOMPLETIONCONFIG_H 00020 #define KATECOMPLETIONCONFIG_H 00021 00022 #include <kdialog.h> 00023 00024 #include "kateconfig.h" 00025 00026 namespace Ui { class CompletionConfigWidget; } 00027 00028 class QTreeWidgetItem; 00029 class KateCompletionModel; 00030 00034 class KateCompletionConfig : public KDialog, public KateConfig 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 explicit KateCompletionConfig(KateCompletionModel* model, QWidget* parent = 0L); 00040 virtual ~KateCompletionConfig(); 00041 00045 void readConfig (const KConfigGroup &config); 00046 00050 void writeConfig (KConfigGroup &config); 00051 00052 public Q_SLOTS: 00053 void apply(); 00054 00055 protected: 00056 virtual void updateConfig(); 00057 00058 private Q_SLOTS: 00059 void moveColumnUp(); 00060 void moveColumnDown(); 00061 void moveGroupingUp(); 00062 void moveGroupingDown(); 00063 void moveGroupingOrderUp(); 00064 void moveGroupingOrderDown(); 00065 00066 private: 00067 void applyInternal(); 00068 00069 Ui::CompletionConfigWidget* ui; 00070 KateCompletionModel* m_model; 00071 00072 QTreeWidgetItem* m_groupingScopeType; 00073 QTreeWidgetItem* m_groupingScope; 00074 QTreeWidgetItem* m_groupingAccessType; 00075 QTreeWidgetItem* m_groupingItemType; 00076 }; 00077 00078 #endif