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

messagelist

  • sources
  • kde-4.12
  • kdepim
  • messagelist
  • utils
aggregationeditor.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright 2008 Szymon Tomasz Stefanek <pragma@kvirc.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  *******************************************************************************/
20 
21 #ifndef __MESSAGELIST_UTILS_AGGREGATIONEDITOR_H__
22 #define __MESSAGELIST_UTILS_AGGREGATIONEDITOR_H__
23 
24 #include <messagelist/utils/optionseteditor.h>
25 
26 class KComboBox;
27 
28 namespace MessageList
29 {
30 
31 namespace Core
32 {
33 
34 class Aggregation;
35 
36 } // namespace Core
37 
38 namespace Utils
39 {
40 
46 class AggregationEditor : public OptionSetEditor
47 {
48  Q_OBJECT
49 public:
50  explicit AggregationEditor( QWidget *parent );
51  ~AggregationEditor();
52 
53 private:
54  Core::Aggregation * mCurrentAggregation; // shallow, may be null!
55 
56  // Grouping, Threading and Sorting tab
57  KComboBox * mGroupingCombo;
58  KComboBox * mGroupExpandPolicyCombo;
59  KComboBox * mThreadingCombo;
60  KComboBox * mThreadLeaderCombo;
61  KComboBox * mThreadExpandPolicyCombo;
62  // Advanced tab
63  KComboBox * mFillViewStrategyCombo;
64 
65 public:
71  void editAggregation( Core::Aggregation *set );
72 
77  Core::Aggregation * editedAggregation() const
78  { return mCurrentAggregation; }
79 
83  void commit();
84 
85 signals:
91  void aggregationNameChanged();
92 
93 private:
94 
95  // Helpers for filling the various editing elements
96 
97  void fillGroupingCombo();
98  void fillGroupExpandPolicyCombo();
99  void fillThreadingCombo();
100  void fillThreadLeaderCombo();
101  void fillThreadExpandPolicyCombo();
102  void fillFillViewStrategyCombo();
103  void setReadOnly(bool readOnly);
104 
105 private slots:
106 
107  // Internal handlers for editing element interaction
108 
109  void groupingComboActivated( int idx );
110  void threadingComboActivated( int idx );
111  virtual void slotNameEditTextEdited( const QString &newName );
112 
113 };
114 
115 } // namespace Utils
116 
117 } // namespace MessageList
118 
119 #endif
optionseteditor.h
MessageList::Core::Aggregation
A set of aggregation options that can be applied to the MessageList::Model in a single shot...
Definition: aggregation.h:43
MessageList::Utils::AggregationEditor
A widget that allows editing a single MessageList::Aggregation.
Definition: aggregationeditor.h:46
QWidget
MessageList::Utils::AggregationEditor::aggregationNameChanged
void aggregationNameChanged()
This is triggered when the aggregation name changes in the editor text field.
MessageList::Utils::AggregationEditor::editedAggregation
Core::Aggregation * editedAggregation() const
Returns the Aggregation currently edited by this AggregationEditor.
Definition: aggregationeditor.h:77
MessageList::Utils::OptionSetEditor
The base class for the OptionSet editors.
Definition: optionseteditor.h:45
MessageList::Utils::AggregationEditor::commit
void commit()
Explicitly commits the changes in the editor to the edited Aggregation, if any.
Definition: aggregationeditor.cpp:156
KComboBox
MessageList::Utils::AggregationEditor::AggregationEditor
AggregationEditor(QWidget *parent)
Definition: aggregationeditor.cpp:40
MessageList::Utils::AggregationEditor::~AggregationEditor
~AggregationEditor()
Definition: aggregationeditor.cpp:101
MessageList::Utils::AggregationEditor::editAggregation
void editAggregation(Core::Aggregation *set)
Sets the Aggregation to be edited.
Definition: aggregationeditor.cpp:105
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

Skip menu "messagelist"
  • 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

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