From 50ac7c48d4509cd74d3f8e91dbd6d4941f5d8695 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 29 May 2014 00:13:32 +0000 Subject: [PATCH] Added add keys button to toolbar. --- leocad.qrc | 1 + qt/lc_qmainwindow.cpp | 4 +++- resources/time_add_keys.png | Bin 0 -> 191 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 resources/time_add_keys.png diff --git a/leocad.qrc b/leocad.qrc index 7047dd07..d1d01cae 100644 --- a/leocad.qrc +++ b/leocad.qrc @@ -65,5 +65,6 @@ resources/edit_transform_relative_translation.png resources/piece_show_earlier.png resources/piece_show_later.png + resources/time_add_keys.png diff --git a/qt/lc_qmainwindow.cpp b/qt/lc_qmainwindow.cpp index a4977653..11738aca 100644 --- a/qt/lc_qmainwindow.cpp +++ b/qt/lc_qmainwindow.cpp @@ -143,6 +143,7 @@ void lcQMainWindow::createActions() actions[LC_VIEW_TIME_PREVIOUS]->setIcon(QIcon(":/resources/time_previous.png")); actions[LC_VIEW_TIME_NEXT]->setIcon(QIcon(":/resources/time_next.png")); actions[LC_VIEW_TIME_LAST]->setIcon(QIcon(":/resources/time_last.png")); + actions[LC_VIEW_TIME_ADD_KEYS]->setIcon(QIcon(":/resources/time_add_keys.png")); actions[LC_HELP_HOMEPAGE]->setIcon(QIcon(":/resources/help_homepage.png")); actions[LC_HELP_EMAIL]->setIcon(QIcon(":/resources/help_email.png")); @@ -153,6 +154,7 @@ void lcQMainWindow::createActions() actions[LC_EDIT_SNAP_Y]->setCheckable(true); actions[LC_EDIT_SNAP_Z]->setCheckable(true); actions[LC_VIEW_CAMERA_NONE]->setCheckable(true); + actions[LC_VIEW_TIME_ADD_KEYS]->setCheckable(true); QActionGroup *actionSnapXYGroup = new QActionGroup(this); for (int actionIdx = LC_EDIT_SNAP_MOVE_XY0; actionIdx <= LC_EDIT_SNAP_MOVE_XY9; actionIdx++) @@ -440,7 +442,7 @@ void lcQMainWindow::createToolBars() timeToolBar->addAction(actions[LC_VIEW_TIME_LAST]); timeToolBar->addAction(actions[LC_PIECE_SHOW_EARLIER]); timeToolBar->addAction(actions[LC_PIECE_SHOW_LATER]); - //LC_VIEW_TIME_ADD_KEYS + timeToolBar->addAction(actions[LC_VIEW_TIME_ADD_KEYS]); // TODO: add missing menu items partsToolBar = new QDockWidget(tr("Parts"), this); diff --git a/resources/time_add_keys.png b/resources/time_add_keys.png new file mode 100644 index 0000000000000000000000000000000000000000..9a07dfee331a93d3b99f7c9a21b9d77873832ab0 GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~q!3HGX7W?Z1Db50q$YKTtz9S&aI8~cZ8Yo!k z>EaloasFzMr_ccfj>j);dgtF4EPqjZ?wg9bCn*9G mZmm7Ge%61{hwon1NwD*WytyhT?^gu0oWax8&t;ucLK6U4DMO?H literal 0 HcmV?d00001