57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
/**
|
|
* @author Edouard DUPIN
|
|
*
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
*
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
|
|
#ifndef __EWOL_WIDGET_PARAMETER_H__
|
|
#define __EWOL_WIDGET_PARAMETER_H__
|
|
|
|
#include <etk/types.h>
|
|
#include <etk/types.h>
|
|
#include <ewol/debug.h>
|
|
#include <ewol/widget/PopUp.h>
|
|
#include <ewol/widget/Button.h>
|
|
#include <ewol/widget/Entry.h>
|
|
#include <ewol/widget/Label.h>
|
|
#include <ewol/widget/CheckBox.h>
|
|
#include <ewol/widget/WSlider.h>
|
|
#include <ewol/widget/meta/ParameterList.h>
|
|
|
|
|
|
namespace ewol {
|
|
namespace widget {
|
|
/**
|
|
* @ingroup ewolWidgetGroup
|
|
*/
|
|
class Parameter : public ewol::widget::PopUp {
|
|
public:
|
|
// Event list of properties
|
|
static const char * const eventClose;
|
|
protected:
|
|
Parameter();
|
|
void init();
|
|
public:
|
|
DECLARE_WIDGET_FACTORY(Parameter, "Parameter");
|
|
virtual ~Parameter();
|
|
public: // Derived function
|
|
virtual void onReceiveMessage(const ewol::object::Message& _msg);
|
|
public:
|
|
void setTitle(std::string _label);
|
|
void menuAdd(std::string _label, std::string _image, std::shared_ptr<ewol::Widget> _associateWidget);
|
|
void menuAddGroup(std::string _label);
|
|
void menuClear();
|
|
void menuSeparator();
|
|
private:
|
|
int32_t m_currentIdList;
|
|
std::shared_ptr<ewol::widget::Label> m_widgetTitle;
|
|
std::shared_ptr<ewol::widget::ParameterList> m_paramList;
|
|
std::shared_ptr<ewol::widget::WSlider> m_wSlider;
|
|
};
|
|
};
|
|
};
|
|
|
|
#endif
|