File indexing completed on 2024-04-21 14:43:54

0001 /*************************************************************************************
0002  *  Copyright (C) 2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com>      *
0003  *                                                                                   *
0004  *  This program is free software; you can redistribute it and/or                    *
0005  *  modify it under the terms of the GNU General Public License                      *
0006  *  as published by the Free Software Foundation; either version 2                   *
0007  *  of the License, or (at your option) any later version.                           *
0008  *                                                                                   *
0009  *  This program is distributed in the hope that it will be useful,                  *
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                    *
0012  *  GNU General Public License for more details.                                     *
0013  *                                                                                   *
0014  *  You should have received a copy of the GNU General Public License                *
0015  *  along with this program; if not, write to the Free Software                      *
0016  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
0017  *************************************************************************************/
0018 
0019 #ifndef SPACEOPTIONS_H
0020 #define SPACEOPTIONS_H
0021 
0022 //Qt includes
0023 #include <QWidget>
0024 #include <QDockWidget>
0025 #include <QModelIndex>
0026 
0027 //local includes
0028 #include "dashboard.h"
0029 
0030 namespace Ui
0031 {
0032     class SpaceOptionsWidget;
0033 }
0034 
0035 class SpaceOptions : public QDockWidget
0036 {
0037     Q_OBJECT
0038 public:
0039     explicit SpaceOptions(QWidget *parent);
0040     ~ SpaceOptions() override;
0041 
0042 public slots:
0043     void reset();
0044     void setGridStyleIndex(int i);
0045     void setDimension(int d);
0046     void updateTicks();
0047     void updateAxes();
0048     void setGridStyle(int i);
0049 
0050 signals: //TODO better names for signals
0051     void updateGridStyle(int i);
0052     void updateGridColor(const QColor &col);
0053     void setXAxisLabel(const QString &label);
0054     void setYAxisLabel(const QString &label);
0055     void ticksShown(QFlags<Qt::Orientation> o);
0056     void axesShown(QFlags<Qt::Orientation> o);
0057 
0058     //3d
0059     void gridIsDrawn(bool);
0060     void axisIsDrawn(bool);
0061     void sceneResized(int);
0062 
0063 private:
0064     Ui::SpaceOptionsWidget *m_widget;
0065 };
0066 
0067 #endif