File indexing completed on 2024-12-22 04:18:18

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef DATASOURCESELECTORDIALOG_H
0014 #define DATASOURCESELECTORDIALOG_H
0015 
0016 #include <QFileDialog>
0017 
0018 #include "kstwidgets_export.h"
0019 
0020 namespace Kst {
0021 
0022 class KSTWIDGETS_EXPORT DataSourceSelectorDialog : public QFileDialog {
0023   Q_OBJECT
0024   public:
0025     explicit DataSourceSelectorDialog(QString &file, QWidget *parent = 0);
0026     virtual ~DataSourceSelectorDialog();
0027 
0028     QString selectedDataSource();
0029 
0030   public Q_SLOTS:
0031     void currentChanged(const QString &current);
0032 
0033   protected:
0034     void accept();
0035 };
0036 
0037 }
0038 
0039 #endif
0040 
0041 // vim: ts=2 sw=2 et