src/gui_actions.cpp

changeset 344
55fcf67230fd
parent 335
30c11cff511d
child 353
07b3753baedc
equal deleted inserted replaced
343:75487752f3e6 344:55fcf67230fd
458 458
459 if (ok) 459 if (ok)
460 g_win->R ()->setDepthValue (depth); 460 g_win->R ()->setDepthValue (depth);
461 } 461 }
462 462
463 #ifndef RELEASE
464 // This is a test to draw a dummy axle. Meant to be used as a primitive gallery,
465 // but I can't figure how to generate these pictures properly. Multi-threading
466 // these is an immense pain.
463 MAKE_ACTION (testpic, "Test picture", "", "", (0)) { 467 MAKE_ACTION (testpic, "Test picture", "", "", (0)) {
464 LDOpenFile* file = getFile ("axle.dat"); 468 LDOpenFile* file = getFile ("axle.dat");
465 setlocale (LC_ALL, "C"); 469 setlocale (LC_ALL, "C");
466 470
467 if (!file) { 471 if (!file) {
496 } 500 }
497 501
498 delete[] imgdata; 502 delete[] imgdata;
499 rend->deleteLater (); 503 rend->deleteLater ();
500 } 504 }
505 #endif
501 506
502 MAKE_ACTION (reloadPrimitives, "Scan Primitives", "", "", (0)) { 507 MAKE_ACTION (reloadPrimitives, "Scan Primitives", "", "", (0)) {
503 PrimitiveLister::start (); 508 PrimitiveLister::start ();
504 } 509 }

mercurial