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

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2008 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 LEGENDITEMDIALOG_H
0014 #define LEGENDITEMDIALOG_H
0015 
0016 #include "viewitemdialog.h"
0017 
0018 #include "kst_export.h"
0019 
0020 namespace Kst {
0021 
0022 class LegendTab;
0023 class LegendItem;
0024 class ObjectStore;
0025 
0026 class LegendItemDialog : public ViewItemDialog
0027 {
0028   Q_OBJECT
0029   public:
0030     explicit LegendItemDialog(LegendItem *item, QWidget *parent = 0);
0031     virtual ~LegendItemDialog();
0032 
0033   private Q_SLOTS:
0034     void legendChanged();
0035     void editMultiple();
0036     void editSingle();
0037     void slotApply();
0038 
0039   private:
0040     void setupLegend();
0041     void saveLegend(LegendItem *item, bool save_relations);
0042 
0043   private:
0044     LegendItem* _legendItem;
0045 
0046     LegendTab *_legendTab;
0047 
0048     ObjectStore* _store;
0049 };
0050 
0051 }
0052 
0053 #endif
0054 
0055 // vim: ts=2 sw=2 et