• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knotes

  • sources
  • kde-4.14
  • kdepim
  • knotes
  • configdialog
knotecollectionconfigwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013-2015 Laurent Montel <montel@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef KNOTECOLLECTIONCONFIGWIDGET_H
21 #define KNOTECOLLECTIONCONFIGWIDGET_H
22 
23 #include <QWidget>
24 #include <Akonadi/Collection>
25 #include <QModelIndex>
26 
27 class QItemSelectionModel;
28 class KRecursiveFilterProxyModel;
29 namespace Akonadi {
30 class EntityTreeModel;
31 class ChangeRecorder;
32 class CollectionRequester;
33 class EntityTreeView;
34 }
35 class QTreeView;
36 class KCheckableProxyModel;
37 class KJob;
38 class KPushButton;
39 
40 class KNoteCollectionConfigWidget : public QWidget
41 {
42  Q_OBJECT
43 public:
44  explicit KNoteCollectionConfigWidget(QWidget *parent=0);
45  ~KNoteCollectionConfigWidget();
46 
47  void updateCollectionsRecursive(const QModelIndex &parent);
48 
49  void save();
50 Q_SIGNALS:
51  void emitChanged(bool);
52 
53 private Q_SLOTS:
54  void slotSelectAllCollections();
55  void slotUnselectAllCollections();
56  void slotCollectionsInserted(const QModelIndex &parent, int start, int end);
57  void slotModifyJobDone(KJob* job);
58  void slotUpdateCollectionStatus();
59  void slotSetCollectionFilter(const QString&);
60  void slotDataChanged();
61  void slotRenameCollection();
62  void slotUpdateButtons();
63  void slotCollectionModifyFinished(KJob *);
64 private:
65  void updateStatus(const QModelIndex &parent);
66  void forceStatus(const QModelIndex &parent, bool status);
67  Akonadi::EntityTreeView *mFolderView;
68  QItemSelectionModel *mSelectionModel;
69  Akonadi::EntityTreeModel *mModel;
70  Akonadi::ChangeRecorder *mChangeRecorder;
71  KCheckableProxyModel *mCheckProxy;
72  KRecursiveFilterProxyModel *mCollectionFilter;
73  Akonadi::CollectionRequester *mDefaultSaveFolder;
74  KPushButton *mRenameCollection;
75  bool mCanUpdateStatus;
76 };
77 
78 #endif // KNOTECOLLECTIONCONFIGWIDGET_H
KNoteCollectionConfigWidget::~KNoteCollectionConfigWidget
~KNoteCollectionConfigWidget()
Definition: knotecollectionconfigwidget.cpp:167
QModelIndex
QWidget
KNoteCollectionConfigWidget
Definition: knotecollectionconfigwidget.h:40
KNoteCollectionConfigWidget::KNoteCollectionConfigWidget
KNoteCollectionConfigWidget(QWidget *parent=0)
Definition: knotecollectionconfigwidget.cpp:54
KNoteCollectionConfigWidget::save
void save()
Definition: knotecollectionconfigwidget.cpp:282
KNoteCollectionConfigWidget::updateCollectionsRecursive
void updateCollectionsRecursive(const QModelIndex &parent)
Definition: knotecollectionconfigwidget.cpp:292
QString
QTreeView
QItemSelectionModel
QObject::parent
QObject * parent() const
KNoteCollectionConfigWidget::emitChanged
void emitChanged(bool)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knotes

Skip menu "knotes"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal