/****************************************************************************
** Form interface generated from reading ui file './transactionsortoption.ui'
**
** Created: mar mag 18 15:46:57 2010
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef TRANSACTIONSORTOPTION_H
#define TRANSACTIONSORTOPTION_H

#include <qvariant.h>
#include <qwidget.h>

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class KListView;
class QListViewItem;
class KPushButton;

class TransactionSortOption : public QWidget
{
    Q_OBJECT

public:
    TransactionSortOption( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~TransactionSortOption();

    KListView* m_availableList;
    KPushButton* m_addButton;
    KPushButton* m_removeButton;
    KListView* m_selectedList;
    KPushButton* m_upButton;
    KPushButton* m_downButton;

    void init();
    QString settings( void ) const;

public slots:
    virtual void setSettings( const QString & settings );
    virtual void toggleDirection( QListViewItem * item );

signals:
    void settingsChanged(const QString&);

protected:
    QListViewItem * addEntry( KListView * p, QListViewItem * after, int idx );

    QHBoxLayout* TransactionSortOptionLayout;
    QVBoxLayout* layout3;
    QVBoxLayout* layout5;
    QSpacerItem* spacer3;
    QSpacerItem* spacer4;
    QVBoxLayout* layout4;
    QVBoxLayout* layout6;
    QSpacerItem* spacer5;
    QSpacerItem* spacer6;

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 );


};

#endif // TRANSACTIONSORTOPTION_H
