Source Code (Use browser search to find items of interest.)

Class Index

empath'EmpathPathSelectWidget (./kdepim/empath/ui/settings/EmpathPathSelectWidget.h:46)

class EmpathPathSelectWidget : public QWidget
{
    Q_OBJECT
    
    public:
    
        EmpathPathSelectWidget(const QString & initialPath, QWidget * parent);

        virtual ~EmpathPathSelectWidget();

        virtual QString path() const;
        virtual void setPath(const QString &);
        
    protected slots:
    
        virtual void s_browse() = 0;

    signals:

        virtual void changed(const QString &);
    
    protected:

        QLineEdit     * le_path_;
        QPushButton   * pb_select_;
};


empath'EmpathPathSelectWidget::EmpathPathSelectWidget() (./kdepim/empath/ui/settings/EmpathPathSelectWidget.cpp:38)

EmpathPathSelectWidget::EmpathPathSelectWidget
    (const QString & initialPath, QWidget * parent)
    :   QWidget(parent, "PathSelectWidget")
{
    le_path_    = new QLineEdit(initialPath, this);
    pb_select_  = new QPushButton(this);
    
    pb_select_->setPixmap(empathIcon("misc-browse"));
    pb_select_->setFixedWidth(pb_select_->sizeHint().height());

    QObject::connect(pb_select_, SIGNAL(clicked()), this, SLOT(s_browse()));

    QHBoxLayout * layout = new QHBoxLayout(this);
    layout->addWidget(le_path_);
    layout->addWidget(pb_select_);
}


empath'EmpathPathSelectWidget::~EmpathPathSelectWidget() (./kdepim/empath/ui/settings/EmpathPathSelectWidget.cpp:55)

EmpathPathSelectWidget::~EmpathPathSelectWidget()
{
}

    QString

empath'EmpathPathSelectWidget::path() (./kdepim/empath/ui/settings/EmpathPathSelectWidget.cpp:60)

EmpathPathSelectWidget::path() const
{
    return le_path_->text();
}

    void

empath'EmpathPathSelectWidget::setPath() (./kdepim/empath/ui/settings/EmpathPathSelectWidget.cpp:66)

EmpathPathSelectWidget::setPath(const QString & s)
{
    le_path_->setText(s);
    emit(changed(s));
}
        
    void