VirtualBox

Ignore:
Timestamp:
Mar 27, 2009 2:11:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45194
Message:

FE/Qt4-OVF: changed file selector in the import wizard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFilePathSelectorWidget.h

    r17714 r18397  
    2424#define __VBoxFilePathSelectorWidget_h__
    2525
     26/* VBox includes */
    2627#include "QIWithRetranslateUI.h"
    2728
     
    2930#include <QComboBox>
    3031
     32/* VBox forward declarations */
     33class QILabel;
     34
     35/* Qt forward declarations */
    3136class QFileIconProvider;
    3237class QAction;
     38class QPushButton;
     39
     40////////////////////////////////////////////////////////////////////////////////
     41// VBoxFilePathSelectorWidget
    3342
    3443class VBoxFilePathSelectorWidget: public QIWithRetranslateUI<QComboBox>
     
    121130};
    122131
     132////////////////////////////////////////////////////////////////////////////////
     133// VBoxEmptyFileSelector
     134
     135class VBoxEmptyFileSelector: public QIWithRetranslateUI<QWidget>
     136{
     137    Q_OBJECT;
     138
     139public:
     140    VBoxEmptyFileSelector (QWidget *aParent = NULL);
     141
     142    void setPath (const QString& aPath);
     143    QString path() const;
     144
     145    bool isModified () const { return mIsModified; }
     146    void resetModified () { mIsModified = false; }
     147
     148    void setFileDialogTitle (const QString& aTitle);
     149    QString fileDialogTitle() const;
     150
     151    void setFileFilters (const QString& aFilters);
     152    QString fileFilters() const;
     153
     154    void setHomeDir (const QString& aDir);
     155    QString homeDir() const;
     156
     157signals:
     158    void pathChanged (QString);
     159
     160protected:
     161    void retranslateUi();
     162
     163private slots:
     164    void choose();
     165
     166private:
     167    /* Private member vars */
     168    QILabel *mLabel;
     169    QPushButton *mSelectButton;
     170    QString mFileDialogTitle;
     171    QString mFileFilters;
     172    QString mHomeDir;
     173    bool mIsModified;
     174    QString mPath;
     175};
     176
    123177#endif /* __VBoxFilePathSelectorWidget_h__ */
    124178
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette