Version: 9.16.0
FormComponent Class Reference

#include <FormComponent.hxx>

Inheritance diagram for FormComponent:
Collaboration diagram for FormComponent:

Public Slots

void on_tb_component_toggled (bool checked)
 

Public Member Functions

 FormComponent (QWidget *parent=0)
 
virtual ~FormComponent ()
 

Static Public Attributes

static bool _checked = false
 

Detailed Description

Definition at line 44 of file FormComponent.hxx.

Constructor & Destructor Documentation

◆ FormComponent()

FormComponent::FormComponent ( QWidget parent = 0)

Definition at line 47 of file FormComponent.cxx.

48{
49 setupUi(this);
50
51 le_name->setReadOnly(true);
52
53 gridLayout3->removeWidget(cb_instance);
54 delete cb_instance;
55 cb_instance = new ComboBox(fr_component);
56 gridLayout3->addWidget(cb_instance, 1, 1, 1, 1);
57
58 gridLayout3->removeWidget(cb_container);
59 delete cb_container;
60 cb_container = new ComboBox(fr_component);
61 gridLayout3->addWidget(cb_container, 2, 1, 1, 1);
62
63 QIcon icon;
64 icon.addFile("icons:icon_down.png");
65 icon.addFile("icons:icon_up.png",
66 QSize(), QIcon::Normal, QIcon::On);
67 tb_component->setIcon(icon);
69}
void on_tb_component_toggled(bool checked)
static bool _checked

References _checked, and on_tb_component_toggled().

◆ ~FormComponent()

FormComponent::~FormComponent ( )
virtual

Definition at line 71 of file FormComponent.cxx.

72{
73}

Member Function Documentation

◆ on_tb_component_toggled

void FormComponent::on_tb_component_toggled ( bool  checked)
slot

Definition at line 75 of file FormComponent.cxx.

76{
77 DEBTRACE("FormComponent::on_tb_component_toggled " << checked);
78 _checked = checked;
79 if (_checked) fr_component->show();
80 else fr_component->hide();
81}
#define DEBTRACE(msg)
Definition: YacsTrace.hxx:31

References _checked, and DEBTRACE.

Referenced by FormComponent().

Member Data Documentation

◆ _checked

bool FormComponent::_checked = false
static

The documentation for this class was generated from the following files: