1 /* |
1 /* |
2 * LDForge: LDraw parts authoring CAD |
2 * LDForge: LDraw parts authoring CAD |
3 * Copyright (C) 2013 Santeri `arezey` Piippo |
3 * Copyright (C) 2013 Santeri Piippo |
4 * |
4 * |
5 * This program is free software: you can redistribute it and/or modify |
5 * This program is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation, either version 3 of the License, or |
7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. |
8 * (at your option) any later version. |
148 // ============================================================================= |
148 // ============================================================================= |
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
150 // ============================================================================= |
150 // ============================================================================= |
151 void AddObjectDialog::staticDialog (const LDObjectType_e type, ForgeWindow* window) { |
151 void AddObjectDialog::staticDialog (const LDObjectType_e type, ForgeWindow* window) { |
152 AddObjectDialog dlg (type, window); |
152 AddObjectDialog dlg (type, window); |
153 LDObject* obj = nullptr; |
153 LDObject* obj = null; |
154 |
154 |
155 if (dlg.exec ()) { |
155 if (dlg.exec ()) { |
156 switch (type) { |
156 switch (type) { |
157 case OBJ_Comment: |
157 case OBJ_Comment: |
158 obj = new LDComment (dlg.qCommentLine->text ()); |
158 obj = new LDComment (dlg.qCommentLine->text ()); |