~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to mailcommon/searchpatternedit.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
class QAbstractButton;
34
34
class QRadioButton;
35
35
class QStackedWidget;
 
36
class KPushButton;
36
37
 
37
38
namespace MailCommon {
38
39
 
81
82
      accordingly. */
82
83
  void reset();
83
84
  static int ruleFieldToId( const QString & i18nVal );
 
85
  void updateAddRemoveButton( bool addButtonEnabled, bool removeButtonEnabled );
84
86
 
85
87
public slots:
86
88
  void slotFunctionChanged();
96
98
     contents/value of the rule. */
97
99
  void contentsChanged( const QString & );
98
100
 
 
101
  void addWidget( QWidget * );
 
102
  void removeWidget( QWidget* );
 
103
 
99
104
protected:
100
105
  /** Used internally to translate i18n-ized pseudo-headers back to
101
106
      english. */
106
111
 
107
112
protected slots:
108
113
  void slotRuleFieldChanged( const QString & );
 
114
  void slotAddWidget();
 
115
  void slotRemoveWidget();
109
116
 
110
117
private:
111
118
  void initWidget();
115
122
  KComboBox *mRuleField;
116
123
  QStackedWidget *mFunctionStack;
117
124
  QStackedWidget *mValueStack;
 
125
  KPushButton *mAdd;
 
126
  KPushButton *mRemove;
118
127
  bool mAbsoluteDates;
119
128
};
120
129
 
135
144
 
136
145
public slots:
137
146
  void reset();
 
147
  void slotAddWidget( QWidget* );
 
148
  void slotRemoveWidget( QWidget* );
138
149
 
139
150
protected:
140
151
  virtual void clearWidget( QWidget *aWidget );
141
152
  virtual QWidget* createWidget( QWidget *parent );
142
153
 
143
154
private:
 
155
  void reconnectWidget( SearchRuleWidget *w );
 
156
  void updateAddRemoveButton();
144
157
  void regenerateRuleListFromWidgets();
145
158
  QList<MailCommon::SearchRule::Ptr> *mRuleList;
146
159
  bool mHeadersOnly;