FilterCriteriaWidget Class Reference

Part of the filter setup dialog (class FilterSetupDialog) to show a criteria of the selected filter. More...

#include <filtercriteriawidget.h>

List of all members.

Public Member Functions

 FilterCriteriaWidget (QWidget *parent=0)
 ~FilterCriteriaWidget ()
void setNumCriteria (int source, int condition, uint value)
void setTextCriteria (int source, int condition, QString value, bool cs)
void setTextListCriteria (int source, int condition, QString value, bool cs)
FilterCriteria_Type getValues ()

Private Slots

void slotSetWidgets ()
void slotOpenRegExpCheck ()

Private Attributes

KComboBox * cmbSource
KComboBox * cmbConditionText
KComboBox * cmbConditionTextList
KComboBox * cmbConditionNum
KLineEdit * txtCompValueText
KIntNumInput * spbCompValueNum
QCheckBox * chkCaseSensitive
KPushButton * btnOpenRegExpEditor

Detailed Description

Part of the filter setup dialog (class FilterSetupDialog) to show a criteria of the selected filter.

Author:
Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 76 of file filtercriteriawidget.h.


Constructor & Destructor Documentation

FilterCriteriaWidget::FilterCriteriaWidget ( QWidget *  parent = 0  ) 

Constructor

Parameters:
parent parent widget

Definition at line 21 of file filtercriteriawidget.cpp.

FilterCriteriaWidget::~FilterCriteriaWidget (  ) 

Destructor

Definition at line 152 of file filtercriteriawidget.cpp.


Member Function Documentation

FilterCriteria_Type FilterCriteriaWidget::getValues (  ) 

Returns the values of the criteria.

Returns:
criteria values

Definition at line 346 of file filtercriteriawidget.cpp.

void FilterCriteriaWidget::setNumCriteria ( int  source,
int  condition,
uint  value 
)

Sets the values of a numeric criteria.

Parameters:
source Object of Comparison (see constants.h for valid values)
Parameters:
condition Condition of the comparison (see constants.h for valid values)
Parameters:
value comparison value

Definition at line 245 of file filtercriteriawidget.cpp.

void FilterCriteriaWidget::setTextCriteria ( int  source,
int  condition,
QString  value,
bool  cs 
)

Sets the values of a text criteria.

Parameters:
source Object of Comparison (see constants.h for valid values)
Parameters:
condition Condition of the comparison (see constants.h for valid values)
Parameters:
value comparison string
Parameters:
cs TRUE - comparison is case sensitive; FALSE - comparison is not case sensitive

Definition at line 277 of file filtercriteriawidget.cpp.

void FilterCriteriaWidget::setTextListCriteria ( int  source,
int  condition,
QString  value,
bool  cs 
)

Sets the values of a text list criteria.

Parameters:
source Object of Comparison (see constants.h for valid values)
Parameters:
condition Condition of the comparison (see constants.h for valid values)
Parameters:
value comparison string
Parameters:
cs TRUE - comparison is case sensitive; FALSE - comparison is not case sensitive

Definition at line 313 of file filtercriteriawidget.cpp.

void FilterCriteriaWidget::slotOpenRegExpCheck (  )  [private, slot]

Opens a dialog to check a regex

Definition at line 226 of file filtercriteriawidget.cpp.

void FilterCriteriaWidget::slotSetWidgets (  )  [private, slot]

Connected with combobox cmbSource. Hides or shows the widgets dependent on the criteria source (text or numeric).

Definition at line 156 of file filtercriteriawidget.cpp.


Member Data Documentation

Button to open the regular expression editor.

Definition at line 166 of file filtercriteriawidget.h.

Checkbox to select case sensitive.

Definition at line 161 of file filtercriteriawidget.h.

Combobox to select the condition of a numeric source (Size, ...)

Definition at line 146 of file filtercriteriawidget.h.

Combobox to select the condition of a text source (From, To, ...)

Definition at line 136 of file filtercriteriawidget.h.

Combobox to select the condition of a text list source (Header)

Definition at line 141 of file filtercriteriawidget.h.

KComboBox* FilterCriteriaWidget::cmbSource [private]

Combobox to select the source of the criteria.

Definition at line 131 of file filtercriteriawidget.h.

KIntNumInput* FilterCriteriaWidget::spbCompValueNum [private]

Spin Box for a numeric comparative value.

Definition at line 156 of file filtercriteriawidget.h.

Line for a text comparative value.

Definition at line 151 of file filtercriteriawidget.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3