Thu, 13 Jun 2013 03:05:54 +0300
Renamed Set Contents into Edit LDraw Code; made the add object dialog's comment line box wider
changelog.txt | file | annotate | diff | comparison | revisions | |
src/addObjectDialog.cpp | file | annotate | diff | comparison | revisions | |
src/gui_editactions.cpp | file | annotate | diff | comparison | revisions |
--- a/changelog.txt Thu Jun 13 03:01:09 2013 +0300 +++ b/changelog.txt Thu Jun 13 03:05:54 2013 +0300 @@ -14,5 +14,7 @@ button from the LDraw path config dialog, it's no longer needed. - Fixed: Coordinates weren't drawn properly on a bright background (was always drawn in bright colors..). - Fixed: Recent files should behave coherently now. +- Renamed "Set Contents" into "Edit LDraw Code", should be clearer +- The dialog box for setting a comment's text is now a lot wider - Calculated coordinates are now rounded down (to prevent stuff like Z:160.000001) - New part dialog: changed "Name:" to "Title", widened a tad. \ No newline at end of file
--- a/src/addObjectDialog.cpp Thu Jun 13 03:01:09 2013 +0300 +++ b/src/addObjectDialog.cpp Thu Jun 13 03:05:54 2013 +0300 @@ -59,6 +59,8 @@ le_comment = new QLineEdit; if (obj) le_comment->setText (static_cast<LDComment*> (obj)->text); + + le_comment->setMinimumWidth (384); break; case LDObject::Line:
--- a/src/gui_editactions.cpp Thu Jun 13 03:01:09 2013 +0300 +++ b/src/gui_editactions.cpp Thu Jun 13 03:05:54 2013 +0300 @@ -39,7 +39,7 @@ // ============================================================================= // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ============================================================================= -static bool copyToClipboard () { +static void copyToClipboard () { vector<LDObject*> objs = g_win->sel (); // Clear the clipboard first. @@ -48,8 +48,6 @@ // Now, copy the contents into the clipboard. for (LDObject* obj : objs) g_Clipboard << obj->raw (); - - return true; } // ============================================================================= @@ -216,7 +214,7 @@ // ============================================================================= // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ============================================================================= -MAKE_ACTION (setContents, "Set Contents", "set-contents", "Set the raw code of this object.", KEY (F9)) { +MAKE_ACTION (setContents, "Edit LDraw Code", "set-contents", "Edit the LDraw code of this object.", KEY (F9)) { if (g_win->sel ().size() != 1) return; @@ -234,7 +232,7 @@ oldobj->replace (obj); - // Rebuild stuff after this + // Refresh g_win->R ()->compileObject (obj); g_win->refresh (); }