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

kontact

  • sources
  • kde-4.12
  • kdepim
  • kontact
  • plugins
  • summary
summaryview_part.h
Go to the documentation of this file.
1 /*
2  This file is part of KDE Kontact.
3 
4  Copyright (C) 2003 Sven Lüppken <sven@kde.org>
5  Copyright (C) 2003 Tobias König <tokoe@kde.org>
6  Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 
24 #ifndef SUMMARYVIEW_PART_H
25 #define SUMMARYVIEW_PART_H
26 
27 #include <KParts/ReadOnlyPart>
28 
29 class DropWidget;
30 
31 namespace KontactInterface {
32  class Core;
33  class Summary;
34 }
35 
36 class KAboutData;
37 class KAction;
38 
39 class QFrame;
40 class QLabel;
41 class QVBoxLayout;
42 
43 class SummaryViewPart : public KParts::ReadOnlyPart
44 {
45  Q_OBJECT
46 
47  public:
48  SummaryViewPart( KontactInterface::Core *core, const char *widgetName,
49  const KAboutData *aboutData, QObject *parent = 0 );
50  ~SummaryViewPart();
51 
52  public slots:
53  void slotTextChanged();
54  void slotAdjustPalette();
55  void setDate( const QDate &newDate );
56  void updateSummaries();
57 
58  signals:
59  void textChanged( const QString & );
60 
61  protected:
62  virtual bool openFile();
63  virtual void partActivateEvent( KParts::PartActivateEvent *event );
64 
65  protected slots:
66  void slotConfigure();
67  void updateWidgets();
68  void summaryWidgetMoved( QWidget *target, QWidget *widget, int alignment );
69 
70  private:
71  void initGUI( KontactInterface::Core *core );
72  void loadLayout();
73  void saveLayout();
74  QString widgetName( QWidget * ) const;
75 
76  QStringList configModules() const;
77  void drawLtoR( QWidget *target, QWidget *widget, int alignment );
78  void drawRtoL( QWidget *target, QWidget *widget, int alignment );
79 
80  QMap<QString, KontactInterface::Summary*> mSummaries;
81  KontactInterface::Core *mCore;
82  DropWidget *mFrame;
83  QFrame *mMainWidget;
84  QVBoxLayout *mMainLayout;
85  QVBoxLayout *mLeftColumn;
86  QVBoxLayout *mRightColumn;
87  QLabel *mUsernameLabel;
88  QLabel *mDateLabel;
89  KAction *mConfigAction;
90 
91  QStringList mLeftColumnSummaries;
92  QStringList mRightColumnSummaries;
93 };
94 
95 #endif
SummaryViewPart::SummaryViewPart
SummaryViewPart(KontactInterface::Core *core, const char *widgetName, const KAboutData *aboutData, QObject *parent=0)
Definition: summaryview_part.cpp:57
SummaryViewPart::slotConfigure
void slotConfigure()
Definition: summaryview_part.cpp:432
SummaryViewPart::updateWidgets
void updateWidgets()
Definition: summaryview_part.cpp:115
SummaryViewPart::textChanged
void textChanged(const QString &)
QWidget
QObject
SummaryViewPart::~SummaryViewPart
~SummaryViewPart()
Definition: summaryview_part.cpp:85
SummaryViewPart::openFile
virtual bool openFile()
Definition: summaryview_part.cpp:90
SummaryViewPart::setDate
void setDate(const QDate &newDate)
Definition: summaryview_part.cpp:425
SummaryViewPart
Definition: summaryview_part.h:43
DropWidget
Definition: dropwidget.h:30
SummaryViewPart::updateSummaries
void updateSummaries()
Definition: summaryview_part.cpp:106
QLabel
SummaryViewPart::partActivateEvent
virtual void partActivateEvent(KParts::PartActivateEvent *event)
Definition: summaryview_part.cpp:95
SummaryViewPart::slotAdjustPalette
void slotAdjustPalette()
Definition: summaryview_part.cpp:396
QFrame
SummaryViewPart::slotTextChanged
void slotTextChanged()
Definition: summaryview_part.cpp:391
SummaryViewPart::summaryWidgetMoved
void summaryWidgetMoved(QWidget *target, QWidget *widget, int alignment)
Definition: summaryview_part.cpp:251
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:30 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

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