#include <transactionsortoption.h>
Public Slots | |
virtual void | setSettings (const QString &settings) |
virtual void | toggleDirection (QListViewItem *item) |
Signals | |
void | settingsChanged (const QString &) |
Public Member Functions | |
TransactionSortOption (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
~TransactionSortOption () | |
void | init () |
QString | settings (void) const |
Public Attributes | |
KListView * | m_availableList |
KPushButton * | m_addButton |
KPushButton * | m_removeButton |
KListView * | m_selectedList |
KPushButton * | m_upButton |
KPushButton * | m_downButton |
Protected Slots | |
virtual void | languageChange () |
void | slotAvailableSelected (QListViewItem *item) |
void | slotSelectedSelected (QListViewItem *item) |
void | slotAddItem (void) |
void | slotRemoveItem (void) |
void | slotUpItem (void) |
void | slotDownItem (void) |
Protected Member Functions | |
QListViewItem * | addEntry (KListView *p, QListViewItem *after, int idx) |
Protected Attributes | |
QHBoxLayout * | TransactionSortOptionLayout |
QVBoxLayout * | layout3 |
QVBoxLayout * | layout5 |
QSpacerItem * | spacer3 |
QSpacerItem * | spacer4 |
QVBoxLayout * | layout4 |
QVBoxLayout * | layout6 |
QSpacerItem * | spacer5 |
QSpacerItem * | spacer6 |
TransactionSortOption::TransactionSortOption | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
WFlags | fl = 0 | |||
) |
TransactionSortOption::~TransactionSortOption | ( | ) |
void TransactionSortOption::init | ( | void | ) |
QString TransactionSortOption::settings | ( | void | ) | const |
void TransactionSortOption::setSettings | ( | const QString & | settings | ) | [virtual, slot] |
Setup the two lists according to the elements found in list. If an item is negative, it will show up in the available list, if positive, it shows up in the selected list.
Special care is taken about the two values EntryDateSort and EntryOrderSort. These two entries cannot (should not) exist alone. Inside this widget, only the EntryOrderSort is used.
setSettings() takes care of hiding the EntryDateSort item and if it exists in settings
without EntryOrderSort being present, it will add EntryOrderSort.
void TransactionSortOption::toggleDirection | ( | QListViewItem * | item | ) | [virtual, slot] |
void TransactionSortOption::settingsChanged | ( | const QString & | ) | [signal] |
QListViewItem * TransactionSortOption::addEntry | ( | KListView * | p, | |
QListViewItem * | after, | |||
int | idx | |||
) | [protected] |
virtual void TransactionSortOption::languageChange | ( | ) | [protected, virtual, slot] |
void TransactionSortOption::slotAvailableSelected | ( | QListViewItem * | item | ) | [protected, slot] |
void TransactionSortOption::slotSelectedSelected | ( | QListViewItem * | item | ) | [protected, slot] |
void TransactionSortOption::slotAddItem | ( | void | ) | [protected, slot] |
void TransactionSortOption::slotRemoveItem | ( | void | ) | [protected, slot] |
void TransactionSortOption::slotUpItem | ( | void | ) | [protected, slot] |
void TransactionSortOption::slotDownItem | ( | void | ) | [protected, slot] |
KPushButton* TransactionSortOption::m_addButton |
KPushButton* TransactionSortOption::m_removeButton |
KPushButton* TransactionSortOption::m_upButton |
KPushButton* TransactionSortOption::m_downButton |
QHBoxLayout* TransactionSortOption::TransactionSortOptionLayout [protected] |
QVBoxLayout* TransactionSortOption::layout3 [protected] |
QVBoxLayout* TransactionSortOption::layout5 [protected] |
QSpacerItem* TransactionSortOption::spacer3 [protected] |
QSpacerItem* TransactionSortOption::spacer4 [protected] |
QVBoxLayout* TransactionSortOption::layout4 [protected] |
QVBoxLayout* TransactionSortOption::layout6 [protected] |
QSpacerItem* TransactionSortOption::spacer5 [protected] |
QSpacerItem* TransactionSortOption::spacer6 [protected] |