File indexing completed on 2024-12-22 04:17:27

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 CONTENTTAB_H
0014 #define CONTENTTAB_H
0015 
0016 #include "dialogtab.h"
0017 #include "ui_contenttab.h"
0018 
0019 #include "kst_export.h"
0020 
0021 namespace Kst {
0022 
0023 class ObjectStore;
0024 
0025 class ContentTab : public DialogTab, Ui::ContentTab {
0026   Q_OBJECT
0027   public:
0028     ContentTab(QWidget *parent, ObjectStore* store);
0029     virtual ~ContentTab();
0030 
0031     void setDisplayedRelations(QStringList displayedRelations, QStringList displayedRelationTips);
0032     void setAvailableRelations(QStringList availableRelations, QStringList availableRelationTips);
0033 
0034     QStringList displayedRelations();
0035 
0036   private:
0037     ObjectStore* _store;
0038 
0039   private Q_SLOTS:
0040     void updateButtons();
0041     void addButtonClicked();
0042     void removeButtonClicked();
0043     void upButtonClicked();
0044     void downButtonClicked();
0045     void availableDoubleClicked(QListWidgetItem * item);
0046     void displayedDoubleClicked(QListWidgetItem * item);
0047     void editSelectedAvailable();
0048     void editSelectedDisplayed();
0049     void addObject(QString);
0050     void removeObject(QString);
0051     void filterCurves(const QString&);
0052     void searchCurves();
0053 
0054 };
0055 
0056 }
0057 
0058 #endif
0059 
0060 // vim: ts=2 sw=2 et