gui.cpp

changeset 24
d2d4d0154338
parent 23
69a91c1ff583
child 25
c74bb88f537d
equal deleted inserted replaced
23:69a91c1ff583 24:d2d4d0154338
63 MAKE_ACTION (copy, "Copy", "copy", "Copy the current selection to clipboard.") 63 MAKE_ACTION (copy, "Copy", "copy", "Copy the current selection to clipboard.")
64 MAKE_ACTION (paste, "Paste", "paste", "Paste clipboard contents.") 64 MAKE_ACTION (paste, "Paste", "paste", "Paste clipboard contents.")
65 MAKE_ACTION (about, sAboutText, "about", "Shows information about " APPNAME_DISPLAY ".") 65 MAKE_ACTION (about, sAboutText, "about", "Shows information about " APPNAME_DISPLAY ".")
66 MAKE_ACTION (aboutQt, "About Qt", "aboutQt", "Shows information about Qt.") 66 MAKE_ACTION (aboutQt, "About Qt", "aboutQt", "Shows information about Qt.")
67 67
68 MAKE_ACTION (inline, "Inline", "inline", "Inline selected subfiles.")
68 MAKE_ACTION (splitQuads, "Split Quads", "quad-split", "Split quads into triangles.") 69 MAKE_ACTION (splitQuads, "Split Quads", "quad-split", "Split quads into triangles.")
69 MAKE_ACTION (setContents, "Set Contents", "set-contents", "Set the raw code of this object.") 70 MAKE_ACTION (setContents, "Set Contents", "set-contents", "Set the raw code of this object.")
70 71
71 MAKE_ACTION (newSubfile, "New Subfile", "add-subfile", "Creates a new subfile reference.") 72 MAKE_ACTION (newSubfile, "New Subfile", "add-subfile", "Creates a new subfile reference.")
72 MAKE_ACTION (newLine, "New Line", "add-line", "Creates a new line.") 73 MAKE_ACTION (newLine, "New Line", "add-line", "Creates a new line.")
98 qAct_newVector, 99 qAct_newVector,
99 qAct_newVertex, 100 qAct_newVertex,
100 qAct_cut, 101 qAct_cut,
101 qAct_copy, 102 qAct_copy,
102 qAct_paste, 103 qAct_paste,
103 qAct_about 104 qAct_about,
105 qAct_inline,
104 }; 106 };
105 107
106 for (ushort i = 0; i < sizeof qaDisabledActions / sizeof *qaDisabledActions; ++i) 108 for (ushort i = 0; i < sizeof qaDisabledActions / sizeof *qaDisabledActions; ++i)
107 qaDisabledActions[i]->setEnabled (false); 109 qaDisabledActions[i]->setEnabled (false);
108 } 110 }
131 qEditMenu = menuBar ()->addMenu (tr ("&Edit")); 133 qEditMenu = menuBar ()->addMenu (tr ("&Edit"));
132 qEditMenu->addAction (qAct_cut); // Cut 134 qEditMenu->addAction (qAct_cut); // Cut
133 qEditMenu->addAction (qAct_copy); // Copy 135 qEditMenu->addAction (qAct_copy); // Copy
134 qEditMenu->addAction (qAct_paste); // Paste 136 qEditMenu->addAction (qAct_paste); // Paste
135 qEditMenu->addSeparator (); // ----- 137 qEditMenu->addSeparator (); // -----
138 qEditMenu->addAction (qAct_inline); // Inline
136 qEditMenu->addAction (qAct_splitQuads); // Split Quads 139 qEditMenu->addAction (qAct_splitQuads); // Split Quads
137 qEditMenu->addAction (qAct_setContents); // Set Contents 140 qEditMenu->addAction (qAct_setContents); // Set Contents
138 141
139 // Help menu 142 // Help menu
140 qHelpMenu = menuBar ()->addMenu (tr ("&Help")); 143 qHelpMenu = menuBar ()->addMenu (tr ("&Help"));
163 166
164 qEditToolBar = new QToolBar ("Edit"); 167 qEditToolBar = new QToolBar ("Edit");
165 qEditToolBar->addAction (qAct_cut); 168 qEditToolBar->addAction (qAct_cut);
166 qEditToolBar->addAction (qAct_copy); 169 qEditToolBar->addAction (qAct_copy);
167 qEditToolBar->addAction (qAct_paste); 170 qEditToolBar->addAction (qAct_paste);
171 qEditToolBar->addAction (qAct_inline);
168 qEditToolBar->addAction (qAct_splitQuads); 172 qEditToolBar->addAction (qAct_splitQuads);
169 qEditToolBar->addAction (qAct_setContents); 173 qEditToolBar->addAction (qAct_setContents);
170 addToolBar (qEditToolBar); 174 addToolBar (qEditToolBar);
171 } 175 }
172 176
273 277
274 } 278 }
275 279
276 void LDForgeWindow::slot_newVertex () { 280 void LDForgeWindow::slot_newVertex () {
277 281
282 }
283
284 void LDForgeWindow::slot_inline () {
285
278 } 286 }
279 287
280 void LDForgeWindow::slot_splitQuads () { 288 void LDForgeWindow::slot_splitQuads () {
281 if (qObjList->selectedItems().size() == 0) 289 if (qObjList->selectedItems().size() == 0)
282 return; 290 return;

mercurial