00001 /*************************************************************************** 00002 ** 00003 ** This file is part of dinverdc. 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 or 3 as published by the Free 00007 ** Software Foundation and appearing in the file LICENSE.GPL included 00008 ** in the packaging of this file. 00009 ** 00010 ** This file is distributed in the hope that it will be useful, but WITHOUT 00011 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 ** more details. 00014 ** 00015 ** You should have received a copy of the GNU General Public License 00016 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 ** 00018 ** See http://www.geopsy.org for more information. 00019 ** 00020 ** Created : 2005-10-31 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef PARAMLAYERWIDGET_H 00028 #define PARAMLAYERWIDGET_H 00029 00030 #include <DinverCore.h> 00031 #include <DinverDCCore.h> 00032 #include <DinverGui.h> 00033 00034 #include "ui_ParamLayerWidget.h" 00035 00036 class ParamProfileWidget; 00037 00038 class ParamLayerWidget : public QWidget, public Ui::ParamLayerWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 ParamLayerWidget(QWidget* parent=0, Qt::WFlags fl=0); 00044 ~ParamLayerWidget(); 00045 00046 QString name(); 00047 int index() {return _index;} 00048 ParamLayer * paramLayer(ParamProfile * profile); 00049 bool tilted() const; 00050 bool isDepth() const; 00051 void setEditable(bool e); 00052 signals: 00053 void sizeChanged(); 00054 void rangeEdited(); 00055 public slots: 00056 void setProfile(ParamProfileWidget * p); 00057 void setIndex(int index); 00058 void on_shape_activated(int); 00059 void on_depthThickness_activated(int); 00060 void on_linkedTo_activated(int); 00061 bool isSelected(); 00062 void on_selected_clicked(); 00063 void on_selected_toggled(bool); 00064 void setDHLinks(QStringList & links); 00065 void setFrom(ParamLayer * p); 00066 void setLinksFrom(ParamLayer * p); 00067 void setCurrentLink(QString link); 00068 signals: 00069 void wantToBeSelected(); 00070 void updateDHLinks(); 00071 00072 protected: 00073 ParamProfileWidget * _profile; 00074 int _index; 00075 }; 00076 00077 #endif // QTBPARAMLAYERWIDGET_H