src/gldraw.cpp

changeset 274
d232fe4d88a6
parent 271
d5ec224c1879
child 276
a21e49914264
equal deleted inserted replaced
273:0a9141118630 274:d232fe4d88a6
1187 setBackground (); 1187 setBackground ();
1188 update (); 1188 update ();
1189 } 1189 }
1190 1190
1191 // ============================================================================= 1191 // =============================================================================
1192 void GLRenderer::callback_setEditMode () { 1192 READ_ACCESSOR (EditMode, GLRenderer::editMode) {
1193 return m_editMode;
1194 }
1195
1196 SET_ACCESSOR (EditMode, GLRenderer::setEditMode) {
1197 m_editMode = val;
1198
1193 switch (editMode ()) { 1199 switch (editMode ()) {
1194 case Select: 1200 case Select:
1195 unsetCursor (); 1201 unsetCursor ();
1196 setContextMenuPolicy (Qt::DefaultContextMenu); 1202 setContextMenuPolicy (Qt::DefaultContextMenu);
1197 break; 1203 break;
1266 break; 1272 break;
1267 } 1273 }
1268 } 1274 }
1269 1275
1270 if (obj) { 1276 if (obj) {
1271 file ()->history ().open (); 1277 file ()->openHistory ();
1272 file ()->addObject (obj); 1278 file ()->addObject (obj);
1273 compileObject (obj); 1279 compileObject (obj);
1274 g_win->fullRefresh (); 1280 g_win->fullRefresh ();
1275 file ()->history ().close (); 1281 file ()->closeHistory ();
1276 } 1282 }
1277 1283
1278 m_drawedVerts.clear (); 1284 m_drawedVerts.clear ();
1279 m_rectdraw = false; 1285 m_rectdraw = false;
1280 } 1286 }

mercurial