File indexing completed on 2024-12-22 04:18:19

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 LABELBUILDER_H
0014 #define LABELBUILDER_H
0015 
0016 #include <QWidget>
0017 #include "ui_labelbuilder.h"
0018 
0019 #include <string_kst.h>
0020 
0021 #include "kstwidgets_export.h"
0022 #include "modelessinfobox.h"
0023 
0024 namespace Kst {
0025 
0026 class ObjectStore;
0027 
0028 class KSTWIDGETS_EXPORT LabelBuilder : public QWidget, public Ui::LabelBuilder {
0029   Q_OBJECT
0030   public:
0031     explicit LabelBuilder(QWidget *parent = 0, ObjectStore *store = 0);
0032     virtual ~LabelBuilder();
0033 
0034     void setObjectStore(ObjectStore *store);
0035 
0036     QString labelText() const;
0037     void setLabelText(const QString &label);
0038 
0039   Q_SIGNALS:
0040     void labelChanged();
0041 
0042   public Q_SLOTS:
0043     void showHelp();
0044 
0045   private:
0046     ObjectStore *_store;
0047     ModelessInfoBox *_helpBox;
0048 };
0049 
0050 }
0051 
0052 #endif
0053 
0054 // vim: ts=2 sw=2 et