File indexing completed on 2024-12-22 04:17:28
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 DATASOURCECONFIGUREDIALOG_H 0014 #define DATASOURCECONFIGUREDIALOG_H 0015 0016 #include <QDialog> 0017 0018 #include "kst_export.h" 0019 0020 #include "datadialog.h" 0021 #include "datasource.h" 0022 0023 class QAbstractButton; 0024 class QDialogButtonBox; 0025 0026 namespace Kst { 0027 0028 class DataSourceConfigureDialog : public QDialog 0029 { 0030 Q_OBJECT 0031 public: 0032 friend class DialogSI; 0033 DataSourceConfigureDialog(DataDialog::EditMode mode, DataSourcePtr dataSource, QWidget *parent = 0); 0034 virtual ~DataSourceConfigureDialog(); 0035 0036 DataSourcePtr dataSource() const { return _dataSource; } 0037 0038 Q_SIGNALS: 0039 void ok(); 0040 void cancel(); 0041 0042 private Q_SLOTS: 0043 void disableReuse(); 0044 void buttonClicked(QAbstractButton *button); 0045 0046 private: 0047 DataSourcePtr _dataSource; 0048 QDialogButtonBox *_buttonBox; 0049 DataSourceConfigWidget* _configWidget; 0050 }; 0051 0052 } 0053 0054 #endif 0055 0056 // vim: ts=2 sw=2 et