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

libkdepim

  • sources
  • kde-4.14
  • kdepim
  • libkdepim
  • multiplyingline
multiplyingline.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Casey Link <unnamedrambler@gmail.com>
3  Copyright (C) 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4 
5  Refactored from earlier code by:
6  Copyright (c) 2010 Volker Krause <vkrause@kde.org>
7  Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
8 
9  This library is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or (at your
12  option) any later version.
13 
14  This library is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
17  License for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with this library; see the file COPYING.LIB. If not, write to the
21  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  02110-1301, USA.
23 */
24 
25 #ifndef MULTIPLYINGLINE_H
26 #define MULTIPLYINGLINE_H
27 
28 #include "kdepim_export.h"
29 
30 #include <KGlobalSettings>
31 
32 #include <QWidget>
33 #include <QSharedPointer>
34 
35 namespace KPIM {
36 
41 class KDEPIM_EXPORT MultiplyingLineData
42 {
43 public:
44  typedef QSharedPointer<MultiplyingLineData> Ptr;
45  virtual ~MultiplyingLineData(){}
46 
50  virtual void clear() = 0;
54  virtual bool isEmpty() const = 0;
55 };
56 
64 class KDEPIM_EXPORT MultiplyingLine : public QWidget
65 {
66 
67  Q_OBJECT
68 public:
69  explicit MultiplyingLine( QWidget *parent );
70  virtual ~MultiplyingLine() {}
71 
76  virtual void activate() = 0;
82  virtual bool isActive() const = 0;
83 
89  virtual bool isModified() const = 0;
90 
94  virtual void clearModified() = 0;
95 
100  virtual MultiplyingLineData::Ptr data() const = 0;
106  virtual void setData( const MultiplyingLineData::Ptr &data ) = 0;
107 
113  virtual bool isEmpty() const = 0;
114 
122  virtual int setColumnWidth( int w ) = 0;
123 
137  virtual void fixTabOrder( QWidget *previous ) = 0;
138 
145  virtual QWidget *tabOut() const = 0;
146 
150  virtual void clear() = 0;
151 
156  virtual void setCompletionMode( KGlobalSettings::Completion mode ) = 0;
157 
171  virtual void moveCompletionPopup() = 0;
172 
179  virtual void aboutToBeDeleted();
180 
181 signals:
185  void returnPressed( KPIM::MultiplyingLine * );
189  void downPressed( KPIM::MultiplyingLine * );
193  void upPressed( KPIM::MultiplyingLine * );
197  void rightPressed();
201  void deleteLine( KPIM::MultiplyingLine * );
205  void completionModeChanged( KGlobalSettings::Completion );
206 public slots:
207  void slotPropagateDeletion();
208 
209 protected slots:
210  void slotReturnPressed();
211  void slotFocusUp();
212  void slotFocusDown();
213 
214 
215 protected:
220  virtual void keyPressEvent( QKeyEvent * );
221 };
222 
223 }
224 
225 #endif // MULTIPLYINGLINE_H
kdepim_export.h
QWidget
KPIM::MultiplyingLine::~MultiplyingLine
virtual ~MultiplyingLine()
Definition: multiplyingline.h:70
KPIM::MultiplyingLineData
ABC representing line data.
Definition: multiplyingline.h:41
QSharedPointer
KPIM::MultiplyingLineData::Ptr
QSharedPointer< MultiplyingLineData > Ptr
Definition: multiplyingline.h:44
KPIM::MultiplyingLine
Abstract Base Class representing a line in the Multiplying line widget.
Definition: multiplyingline.h:64
QKeyEvent
KPIM::MultiplyingLineData::~MultiplyingLineData
virtual ~MultiplyingLineData()
Definition: multiplyingline.h:45
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

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

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