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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • knotes
knotes/summarywidget.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2014-2015 Laurent Montel <montel@kde.org>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef SUMMARYWIDGET_H
27 #define SUMMARYWIDGET_H
28 
29 #include <KontactInterface/Summary>
30 #include <KViewStateMaintainer>
31 #include <Akonadi/Item>
32 class QGridLayout;
33 class QItemSelectionModel;
34 class QLabel;
35 namespace KontactInterface {
36 class Plugin;
37 }
38 
39 namespace Akonadi {
40 class ChangeRecorder;
41 class Collection;
42 class EntityTreeModel;
43 class ETMViewStateSaver;
44 class Item;
45 }
46 namespace NoteShared {
47 class NotesChangeRecorder;
48 class NotesAkonadiTreeModel;
49 }
50 class KCheckableProxyModel;
51 
52 class KNotesSummaryWidget : public KontactInterface::Summary
53 {
54  Q_OBJECT
55 public:
56  KNotesSummaryWidget(KontactInterface::Plugin *plugin, QWidget *parent );
57  ~KNotesSummaryWidget();
58 
59  void updateSummary( bool force = false );
60  QStringList configModules() const;
61 
62 protected:
63  virtual bool eventFilter( QObject *obj, QEvent *e );
64 
65 private slots:
66  void updateFolderList();
67  void slotSelectNote(const QString &note);
68  void slotPopupMenu(const QString &);
69 private:
70  void deleteNote(const QString &note);
71  void displayNotes(const QModelIndex &parent, int &counter);
72  void createNote(const Akonadi::Item &item, int counter);
73  QPixmap mDefaultPixmap;
74  QGridLayout *mLayout;
75  KontactInterface::Plugin *mPlugin;
76  QList<QLabel *> mLabels;
77  QPixmap mPixmap;
78  NoteShared::NotesChangeRecorder *mNoteRecorder;
79  NoteShared::NotesAkonadiTreeModel *mNoteTreeModel;
80  QItemSelectionModel *mSelectionModel;
81  KCheckableProxyModel *mModelProxy;
82  KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mModelState;
83  bool mInProgress;
84 };
85 
86 #endif
QModelIndex
QEvent
QWidget
KNotesSummaryWidget
Definition: knotes/summarywidget.h:52
QGridLayout
KNotesSummaryWidget::KNotesSummaryWidget
KNotesSummaryWidget(KontactInterface::Plugin *plugin, QWidget *parent)
Definition: knotes/summarywidget.cpp:61
QObject
KNotesSummaryWidget::configModules
QStringList configModules() const
Definition: knotes/summarywidget.cpp:247
QString
QList< QLabel * >
QStringList
QPixmap
KNotesSummaryWidget::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: knotes/summarywidget.cpp:232
KNotesSummaryWidget::~KNotesSummaryWidget
~KNotesSummaryWidget()
Definition: knotes/summarywidget.cpp:107
QItemSelectionModel
QLabel
KNotesSummaryWidget::updateSummary
void updateSummary(bool force=false)
Definition: knotes/summarywidget.cpp:215
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • 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