File indexing completed on 2024-12-22 04:17:50
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 VIEWVECTORDIALOG_H 0014 #define VIEWVECTORDIALOG_H 0015 0016 #include <QDialog> 0017 0018 #include "ui_viewvectordialog.h" 0019 0020 #include "kst_export.h" 0021 0022 namespace Kst { 0023 0024 class Document; 0025 class VectorModel; 0026 class EditMultipleWidget; 0027 0028 class ViewVectorDialog : public QDialog, Ui::ViewVectorDialog 0029 { 0030 Q_OBJECT 0031 public: 0032 ViewVectorDialog(QWidget *parent, Document *doc); 0033 virtual ~ViewVectorDialog(); 0034 0035 virtual void show(); 0036 0037 public Q_SLOTS: 0038 void contextMenu(const QPoint& position); 0039 void update(); 0040 0041 private Q_SLOTS: 0042 void addSelected(); 0043 void removeSelected(); 0044 void reset(); 0045 void showVectorList(); 0046 void hideVectorList(); 0047 0048 private: 0049 QList<int> selectedColumns(); 0050 Document *_doc; 0051 VectorModel *_model; 0052 EditMultipleWidget *_showMultipleWidget; 0053 QPushButton *_addButton; 0054 QPushButton *_removeButton; 0055 QList<int> _splitterSizes; 0056 }; 0057 0058 } 0059 #endif 0060 0061 // vim: ts=2 sw=2 et