Skip to content
Snippets Groups Projects
Commit bf3353c2 authored by Julien Malik's avatar Julien Malik
Browse files

ADD: first specific QWidget

parent 3b0c8637
Branches
Tags
No related merge requests found
FILE(GLOB srcs "*.cxx")
SET( WrappersQtWidget_MOC_HDR otbWrapperQtWidgetEmptyParameter.h )
QT4_WRAP_CPP(WrappersQtWidget_MOC_SRC ${WrappersQtWidget_MOC_HDR})
ADD_LIBRARY(OTBWrapperQtWidget ${srcs})
ADD_LIBRARY(OTBWrapperQtWidget ${srcs} ${WrappersQtWidget_MOC_SRC})
TARGET_LINK_LIBRARIES(OTBWrapperQtWidget OTBCommon OTBIO OTBWrapperCore ${QT_LIBRARIES})
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "otbWrapperQtWidgetEmptyParameter.h"
namespace otb
{
namespace Wrapper
{
QtWidgetEmptyParameter::QtWidgetEmptyParameter(EmptyParameter* emptyParam)
{
// Set up input text edit
QHBoxLayout *hLayout = new QHBoxLayout;
hLayout->setSpacing(0);
hLayout->setContentsMargins(0,0,0,0);
QCheckBox* checkbox = new QCheckBox;
checkbox->setToolTip(emptyParam->GetDescription());
QString optionID(emptyParam->GetName());
hLayout->addWidget(checkbox);
hLayout->addStretch();
QGroupBox *paramHGroup = new QGroupBox;
paramHGroup->setLayout(hLayout);
}
QtWidgetEmptyParameter::~QtWidgetEmptyParameter()
{
}
}
}
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbWrapperQtEmptyWidgetFactory_h
#define __otbWrapperQtEmptyWidgetFactory_h
#include <QtGui>
#include "otbWrapperParameter.h"
#include "otbWrapperEmptyParameter.h"
namespace otb
{
namespace Wrapper
{
/** \class
* \brief
*/
class QtWidgetEmptyParameter : public QWidget
{
Q_OBJECT
public:
/** Standard class typedefs. */
typedef QtWidgetEmptyParameter Self;
typedef itk::Object Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
public:
QtWidgetEmptyParameter(EmptyParameter*);
virtual ~QtWidgetEmptyParameter();
private:
QtWidgetEmptyParameter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
};
}
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment