File indexing completed on 2024-06-02 04:35:01
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 EDITMULTIPLEWIDGET_H 0014 #define EDITMULTIPLEWIDGET_H 0015 0016 #include <QWidget> 0017 #include "ui_editmultiplewidget.h" 0018 0019 #include "kst_export.h" 0020 0021 namespace Kst { 0022 0023 class EditMultipleWidget : public QWidget, public Ui::EditMultipleWidget { 0024 Q_OBJECT 0025 public: 0026 explicit EditMultipleWidget(QWidget *parent = 0); 0027 virtual ~EditMultipleWidget(); 0028 0029 // void addObjects(QStringList &objects); 0030 void clearObjects(); 0031 void addObject(QString name, QString descriptionTip); 0032 QStringList selectedObjects() const; 0033 void selectObjects(const QStringList &objects); 0034 void setHeader(const QString &header); 0035 0036 Q_SIGNALS: 0037 void itemDoubleClicked(); 0038 0039 private Q_SLOTS: 0040 void selectAllObjects(); 0041 void applyFilter(const QString &filter); 0042 }; 0043 0044 } 0045 0046 #endif 0047 0048 // vim: ts=2 sw=2 et