File indexing completed on 2024-12-22 04:17:31
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2010 C. Barth Netterfield * 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 0014 #ifndef EXPORTVECTORSDIALOG_H 0015 #define EXPORTVECTORSDIALOG_H 0016 0017 #include <QDialog> 0018 0019 #include "ui_exportvectorsdialog.h" 0020 0021 namespace Kst { 0022 0023 class ObjectStore; 0024 0025 class ExportVectorsDialog : public QDialog, Ui::ExportVectorsDialog 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 explicit ExportVectorsDialog(QWidget *parent = 0); 0031 ~ExportVectorsDialog(); 0032 0033 void show(); 0034 0035 0036 0037 private Q_SLOTS: 0038 void addButtonClicked(); 0039 void removeButtonClicked(); 0040 void addAll(); 0041 void removeAll(); 0042 void availableDoubleClicked(QListWidgetItem * item); 0043 void selectedDoubleClicked(QListWidgetItem * item); 0044 void updateButtons(); 0045 void OKClicked(); 0046 bool apply(); 0047 0048 0049 private: 0050 Ui::ExportVectorsDialog *ui; 0051 0052 void updateVectorList(); 0053 0054 ObjectStore *_store; 0055 0056 }; 0057 0058 } 0059 #endif // EXPORTVECTORSDIALOG_H