src/gui.cpp

changeset 356
08398f57aba3
parent 355
c2db4aa66b5d
child 357
9c954c222996
equal deleted inserted replaced
355:c2db4aa66b5d 356:08398f57aba3
243 addMenuAction ("modeSelect"); 243 addMenuAction ("modeSelect");
244 addMenuAction ("modeDraw"); 244 addMenuAction ("modeDraw");
245 menu->addSeparator (); 245 menu->addSeparator ();
246 addMenuAction ("setDrawDepth"); 246 addMenuAction ("setDrawDepth");
247 247
248 // Move menu
249 initMenu ("&Move");
250 addMenuAction ("moveUp");
251 addMenuAction ("moveDown");
252 menu->addSeparator ();
253 addMenuAction ("gridCoarse");
254 addMenuAction ("gridMedium");
255 addMenuAction ("gridFine");
256 menu->addSeparator ();
257 addMenuAction ("moveXPos");
258 addMenuAction ("moveXNeg");
259 addMenuAction ("moveYPos");
260 addMenuAction ("moveYNeg");
261 addMenuAction ("moveZPos");
262 addMenuAction ("moveZNeg");
263 menu->addSeparator ();
264 addMenuAction ("rotateXPos");
265 addMenuAction ("rotateXNeg");
266 addMenuAction ("rotateYPos");
267 addMenuAction ("rotateYNeg");
268 addMenuAction ("rotateZPos");
269 addMenuAction ("rotateZNeg");
270 addMenuAction ("rotpoint");
271
248 initMenu ("&Tools"); 272 initMenu ("&Tools");
249 addMenuAction ("setColor"); 273 addMenuAction ("setColor");
250 addMenuAction ("autoColor"); 274 addMenuAction ("autoColor");
251 addMenuAction ("uncolorize"); 275 addMenuAction ("uncolorize");
252 menu->addSeparator (); 276 menu->addSeparator ();
262 addMenuAction ("roundCoords"); 286 addMenuAction ("roundCoords");
263 addMenuAction ("visibility"); 287 addMenuAction ("visibility");
264 addMenuAction ("replaceCoords"); 288 addMenuAction ("replaceCoords");
265 addMenuAction ("flip"); 289 addMenuAction ("flip");
266 addMenuAction ("demote"); 290 addMenuAction ("demote");
267
268 // Move menu
269 initMenu ("&Move");
270 addMenuAction ("moveUp");
271 addMenuAction ("moveDown");
272 menu->addSeparator ();
273 addMenuAction ("gridCoarse");
274 addMenuAction ("gridMedium");
275 addMenuAction ("gridFine");
276 menu->addSeparator ();
277 addMenuAction ("moveXPos");
278 addMenuAction ("moveXNeg");
279 addMenuAction ("moveYPos");
280 addMenuAction ("moveYNeg");
281 addMenuAction ("moveZPos");
282 addMenuAction ("moveZNeg");
283 menu->addSeparator ();
284 addMenuAction ("rotateXPos");
285 addMenuAction ("rotateXNeg");
286 addMenuAction ("rotateYPos");
287 addMenuAction ("rotateYNeg");
288 addMenuAction ("rotateZPos");
289 addMenuAction ("rotateZNeg");
290 addMenuAction ("rotpoint");
291 291
292 initMenu ("E&xternal Programs"); 292 initMenu ("E&xternal Programs");
293 addMenuAction ("ytruder"); 293 addMenuAction ("ytruder");
294 addMenuAction ("rectifier"); 294 addMenuAction ("rectifier");
295 addMenuAction ("intersector"); 295 addMenuAction ("intersector");
368 addToolBarAction ("redo"); 368 addToolBarAction ("redo");
369 addToolBarAction ("cut"); 369 addToolBarAction ("cut");
370 addToolBarAction ("copy"); 370 addToolBarAction ("copy");
371 addToolBarAction ("paste"); 371 addToolBarAction ("paste");
372 addToolBarAction ("del"); 372 addToolBarAction ("del");
373 addToolBarBreak (Qt::TopToolBarArea);
373 374
374 // ========================================== 375 // ==========================================
375 initSingleToolBar ("Select"); 376 initSingleToolBar ("Select");
376 addToolBarAction ("selectAll"); 377 addToolBarAction ("selectAll");
377 addToolBarAction ("selectByColor"); 378 addToolBarAction ("selectByColor");
378 addToolBarAction ("selectByType"); 379 addToolBarAction ("selectByType");
379 380
380 addToolBarBreak (Qt::TopToolBarArea);
381
382 // ==========================================
383 initSingleToolBar ("Move");
384 addToolBarAction ("moveUp");
385 addToolBarAction ("moveDown");
386 addToolBarAction ("moveXPos");
387 addToolBarAction ("moveXNeg");
388 addToolBarAction ("moveYPos");
389 addToolBarAction ("moveYNeg");
390 addToolBarAction ("moveZPos");
391 addToolBarAction ("moveZNeg");
392
393 // ==========================================
394 initSingleToolBar ("Rotate");
395 addToolBarAction ("rotateXPos");
396 addToolBarAction ("rotateXNeg");
397 addToolBarAction ("rotateYPos");
398 addToolBarAction ("rotateYNeg");
399 addToolBarAction ("rotateZPos");
400 addToolBarAction ("rotateZNeg");
401
402 // ========================================== 381 // ==========================================
403 initSingleToolBar ("Grids"); 382 initSingleToolBar ("Grids");
404 addToolBarAction ("gridCoarse"); 383 addToolBarAction ("gridCoarse");
405 addToolBarAction ("gridMedium"); 384 addToolBarAction ("gridMedium");
406 addToolBarAction ("gridFine"); 385 addToolBarAction ("gridFine");
407 addToolBarBreak (Qt::TopToolBarArea);
408 386
409 // ========================================== 387 // ==========================================
410 initSingleToolBar ("View"); 388 initSingleToolBar ("View");
411 addToolBarAction ("axes"); 389 addToolBarAction ("axes");
412 addToolBarAction ("wireframe"); 390 addToolBarAction ("wireframe");
419 397
420 // ========================================== 398 // ==========================================
421 initSingleToolBar ("Tools"); 399 initSingleToolBar ("Tools");
422 addToolBarAction ("setColor"); 400 addToolBarAction ("setColor");
423 addToolBarAction ("autoColor"); 401 addToolBarAction ("autoColor");
424 addToolBarAction ("uncolorize");
425 addToolBarAction ("invert");
426 addToolBarAction ("inlineContents");
427 addToolBarAction ("deepInline");
428 addToolBarAction ("makePrimitive");
429 addToolBarAction ("splitQuads"); 402 addToolBarAction ("splitQuads");
430 addToolBarAction ("setContents"); 403 addToolBarAction ("setContents");
431 addToolBarAction ("makeBorders"); 404 addToolBarAction ("makeBorders");
432 addToolBarAction ("makeCornerVerts"); 405 addToolBarAction ("replaceCoords");
433 addToolBarAction ("roundCoords"); 406 addToolBarAction ("roundCoords");
434 addToolBarAction ("screencap");
435 addToolBarAction ("visibility"); 407 addToolBarAction ("visibility");
436 addToolBarAction ("replaceCoords");
437 addToolBarAction ("flip");
438
439 initSingleToolBar ("External Programs");
440 addToolBarAction ("ytruder");
441 addToolBarAction ("rectifier");
442 addToolBarAction ("intersector");
443 addToolBarAction ("isecalc");
444 addToolBarAction ("coverer");
445 408
446 // ========================================== 409 // ==========================================
447 g_ToolBarArea = Qt::LeftToolBarArea; 410 g_ToolBarArea = Qt::LeftToolBarArea;
448 initSingleToolBar ("Modes"); 411 initSingleToolBar ("Modes");
449 addToolBarAction ("modeSelect"); 412 addToolBarAction ("modeSelect");

mercurial