comparison widgets/ItemLayerList.cpp @ 57:4f3e6a09239a

(none)
author benoitrigolleau
date Wed, 23 May 2007 15:11:52 +0000
parents 81921835ddf1
children b3c3a5fa185f
comparison
equal deleted inserted replaced
56:81921835ddf1 57:4f3e6a09239a
91 checkBox2->setChecked(state); 91 checkBox2->setChecked(state);
92 } 92 }
93 93
94 void ItemLayerList::setPropertyBox(PropertyBox *box){ 94 void ItemLayerList::setPropertyBox(PropertyBox *box){
95 m_propertyBox = box; 95 m_propertyBox = box;
96 if(m_propertyBox!=0){
97 connect(checkBox1,SIGNAL(stateChanged(int)),m_propertyBox,SLOT(layerVisibilityChanged(int)));
98 connect(m_propertyBox, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool)));
99 if(m_propertyBox->showButton() == 0){
100 checkBox1->setEnabled(false);
101 }
102 if(m_propertyBox->playButton() ==0 ){
103 checkBox2->setEnabled(false);
104 }
105 }
106
107 //connect();
96 } 108 }
97 109
98 void ItemLayerList::configAction(){ 110 void ItemLayerList::configAction(){
99 if(m_propertyBox!=0){ 111 if(m_propertyBox!=0){
100 m_propertyBox->close(); 112 m_propertyBox->close();
106 /*********SLOTS ************/ 118 /*********SLOTS ************/
107 void ItemLayerList::openPropertyBox(){ 119 void ItemLayerList::openPropertyBox(){
108 ItemLayerList::configAction(); 120 ItemLayerList::configAction();
109 } 121 }
110 122
123 void ItemLayerList::showLayer(bool value){
124 changeCheckBox1State(value);
125
126 }
111 127
112 128
113 129
114 130
115 131
116 132
133