Ignore:
Timestamp:
Mar 16, 2012, 4:02:47 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: 0.7.1 trunk update

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/filechooser.h

    r119 r124  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2020#define _FILECHOOSER_H_
    2121
    22 #include "ui_filechooser.h"
     22#include "lineedit_with_icon.h"
    2323#include <QFileDialog>
    2424
    25 class FileChooser : public QWidget, public Ui::FileChooser
     25class QToolButton;
     26
     27class FileChooser : public LineEditWithIcon
    2628{
    2729    Q_OBJECT
     
    3840    ~FileChooser();
    3941
    40         QLineEdit * lineEdit();
    41         QToolButton * toolButton();
    42 
    43         QString text() const;
    4442        QString caption() const { return _caption; };
    4543        QString filter() const { return _filter; };
     
    4846
    4947public slots:
    50         void setText(const QString & text);
    5148        void setCaption(const QString & caption) { _caption = caption; };
    5249        void setFilter(const QString & filter) { _filter = filter; };
     
    5754        void fileChanged(QString file);
    5855
     56protected:
     57        virtual void setupButton();
     58
    5959protected slots:
    60         virtual void on_button_clicked();
     60        virtual void openFileDialog();
    6161
    6262protected:
     
    6565        DialogType _type;
    6666        QFileDialog::Options _options;
     67
     68        static QString last_dir;
    6769};
    6870
Note: See TracChangeset for help on using the changeset viewer.