166 delete m_gldata; |
166 delete m_gldata; |
167 } |
167 } |
168 |
168 |
169 // ============================================================================= |
169 // ============================================================================= |
170 // |
170 // |
171 extern QMap<long, LDObjectWeakPtr> g_allObjects; |
|
172 void LDDocument::setImplicit (bool const& a) |
171 void LDDocument::setImplicit (bool const& a) |
173 { |
172 { |
174 if (m_isImplicit != a) |
173 if (m_isImplicit != a) |
175 { |
174 { |
176 m_isImplicit = a; |
175 m_isImplicit = a; |
177 print ("Setting implicity of %1 to %2\n", this, a ? "true" : "false"); |
|
178 |
176 |
179 if (a == false) |
177 if (a == false) |
180 { |
178 { |
181 g_explicitDocuments << self().toStrongRef(); |
179 g_explicitDocuments << self().toStrongRef(); |
182 print ("Opened %1", name()); |
180 print ("Opened %1", name()); |
186 if (g_win != null) |
184 if (g_win != null) |
187 g_win->R()->compiler()->compileDocument (self()); |
185 g_win->R()->compiler()->compileDocument (self()); |
188 } |
186 } |
189 else |
187 else |
190 { |
188 { |
191 print ("Removing %1 from explicit documents...\n", this); |
|
192 g_explicitDocuments.removeOne (self().toStrongRef()); |
189 g_explicitDocuments.removeOne (self().toStrongRef()); |
193 print ("Removed %1", this); |
|
194 print ("Closed %1", name()); |
190 print ("Closed %1", name()); |
195 } |
191 } |
196 |
192 |
197 if (g_win != null) |
193 if (g_win != null) |
198 g_win->updateDocumentList(); |
194 g_win->updateDocumentList(); |