Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SimpleListSelectionFormLogic.h
Go to the documentation of this file.
1 #ifndef SIMPLELISTSELECTIONFORMLOGIC_H
2 #define SIMPLELISTSELECTIONFORMLOGIC_H
3 
4 #include "GeneralFormLogic.h"
5 
6 class QListWidgetItem;
8 {
9  Q_OBJECT
10 public:
13 
14  void SetTextStateCaptionLabel( const QString &text );
15 
16  void AddItem( const QString &orderText, const QString &descriptionText );
17  void ClearItems();
18 
19  void SetFocusToListWidget();
20 
21  void SelectFirstItem();
22 
23  void SetKeyEnabled( const Qt::Key key, const bool enabled );
24  void SetAllKeysEnabled( const bool enabled );
25 
26  virtual bool eventFilter( QObject *object, QEvent *event );
27 
28  void ShowLineEdit();
29  void SetAutoSuggestValues( QStringList autoSuggestValues );
30  void SetValueToAutoSuggest( const QString &value );
31 
32  void SetFocusToLineEdit();
33  void ClearLineEditFocus();
34  void SetLineEditText( const QString &text );
35  QString GetLineEditText() const;
36  void SetCurrentRow( int row );
37  int GetCurrentRow();
38  void ScrollToRow( int row );
39 
40 signals:
41  void OnItemSelected( int index );
42  void OnCurrentRowChanged( int index );
43  void OnLineEditTextChanged( QString text );
45 
46 private slots:
47  void OnCurrentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
48 
49 private:
51 
52  class DataClass;
53  QSharedPointer<DataClass> d;
54 
56 };
57 
58 #endif // SIMPLELISTSELECTIONFORMLOGIC_H
int GetCurrentRow()
Definition: SimpleListSelectionFormLogic.cpp:169
void SelectFirstItem()
Definition: SimpleListSelectionFormLogic.cpp:86
Definition: GeneralFormLogic.h:7
virtual ~SimpleListSelectionFormLogic()
Definition: SimpleListSelectionFormLogic.cpp:54
void ScrollToRow(int row)
Definition: SimpleListSelectionFormLogic.cpp:174
void SetFocusToListWidget()
Definition: SimpleListSelectionFormLogic.cpp:81
void OnCurrentRowChanged(int index)
void ClearItems()
Definition: SimpleListSelectionFormLogic.cpp:76
void SetValueToAutoSuggest(const QString &value)
Definition: SimpleListSelectionFormLogic.cpp:139
void SetAutoSuggestValues(QStringList autoSuggestValues)
Definition: SimpleListSelectionFormLogic.cpp:134
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: SimpleListSelectionFormLogic.cpp:101
void SetLineEditText(const QString &text)
Definition: SimpleListSelectionFormLogic.cpp:154
void SetAllKeysEnabled(const bool enabled)
Definition: SimpleListSelectionFormLogic.cpp:96
void SetKeyEnabled(const Qt::Key key, const bool enabled)
Definition: SimpleListSelectionFormLogic.cpp:91
void ClearLineEditFocus()
Definition: SimpleListSelectionFormLogic.cpp:149
void OnLineEditTextChanged(QString text)
void SetFocusToLineEdit()
Definition: SimpleListSelectionFormLogic.cpp:144
Definition: SimpleListSelectionFormLogic.cpp:15
void OnItemSelected(int index)
void ShowLineEdit()
Definition: SimpleListSelectionFormLogic.cpp:129
QString GetLineEditText() const
Definition: SimpleListSelectionFormLogic.cpp:159
void AddItem(const QString &orderText, const QString &descriptionText)
Definition: SimpleListSelectionFormLogic.cpp:63
Definition: SimpleListSelectionFormLogic.h:7
void SetCurrentRow(int row)
Definition: SimpleListSelectionFormLogic.cpp:164
void SetTextStateCaptionLabel(const QString &text)
Definition: SimpleListSelectionFormLogic.cpp:58
SimpleListSelectionFormLogic()
Definition: SimpleListSelectionFormLogic.cpp:33