mirror of
https://github.com/leozide/leocad
synced 2025-01-26 19:58:08 +01:00
Added different icons for each transform mode.
This commit is contained in:
parent
3450d40fb6
commit
0ae4a1a7e4
7 changed files with 14 additions and 2 deletions
|
@ -41,7 +41,6 @@
|
|||
<file>resources/edit_redo.png</file>
|
||||
<file>resources/edit_snap_angle.png</file>
|
||||
<file>resources/edit_snap_move.png</file>
|
||||
<file>resources/edit_transform.png</file>
|
||||
<file>resources/edit_undo.png</file>
|
||||
<file>resources/file_new.png</file>
|
||||
<file>resources/file_open.png</file>
|
||||
|
@ -62,5 +61,9 @@
|
|||
<file>resources/view_split_horizontal.png</file>
|
||||
<file>resources/view_split_vertical.png</file>
|
||||
<file>resources/file_picture.png</file>
|
||||
<file>resources/edit_transform_absolute_rotation.png</file>
|
||||
<file>resources/edit_transform_absolute_translation.png</file>
|
||||
<file>resources/edit_transform_relative_rotation.png</file>
|
||||
<file>resources/edit_transform_relative_translation.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -117,7 +117,6 @@ void lcQMainWindow::createActions()
|
|||
actions[LC_EDIT_LOCK_TOGGLE]->setIcon(QIcon(":/resources/edit_lock.png"));
|
||||
actions[LC_EDIT_SNAP_TOGGLE]->setIcon(QIcon(":/resources/edit_snap_move.png"));
|
||||
actions[LC_EDIT_SNAP_ANGLE]->setIcon(QIcon(":/resources/edit_snap_angle.png"));
|
||||
actions[LC_EDIT_TRANSFORM]->setIcon(QIcon(":/resources/edit_transform.png"));
|
||||
actions[LC_EDIT_ACTION_INSERT]->setIcon(QIcon(":/resources/action_insert.png"));
|
||||
actions[LC_EDIT_ACTION_LIGHT]->setIcon(QIcon(":/resources/action_light.png"));
|
||||
actions[LC_EDIT_ACTION_SPOTLIGHT]->setIcon(QIcon(":/resources/action_spotlight.png"));
|
||||
|
@ -1191,7 +1190,17 @@ void lcQMainWindow::updateUndoRedo(const char* undoText, const char* redoText)
|
|||
|
||||
void lcQMainWindow::updateTransformType(int newType)
|
||||
{
|
||||
const char* iconNames[] =
|
||||
{
|
||||
":/resources/edit_transform_absolute_translation.png",
|
||||
":/resources/edit_transform_relative_translation.png",
|
||||
":/resources/edit_transform_absolute_rotation.png",
|
||||
":/resources/edit_transform_relative_rotation.png"
|
||||
};
|
||||
|
||||
LC_ASSERT(newType >= 0 && newType <= 3);
|
||||
actions[LC_EDIT_TRANSFORM_ABSOLUTE_TRANSLATION + newType]->setChecked(true);
|
||||
actions[LC_EDIT_TRANSFORM]->setIcon(QIcon(iconNames[newType]));
|
||||
}
|
||||
|
||||
void lcQMainWindow::updateCameraMenu(const PtrArray<Camera>& cameras, Camera* currentCamera)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 267 B |
BIN
resources/edit_transform_absolute_rotation.png
Normal file
BIN
resources/edit_transform_absolute_rotation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 B |
BIN
resources/edit_transform_absolute_translation.png
Normal file
BIN
resources/edit_transform_absolute_translation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 173 B |
BIN
resources/edit_transform_relative_rotation.png
Normal file
BIN
resources/edit_transform_relative_rotation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 154 B |
BIN
resources/edit_transform_relative_translation.png
Normal file
BIN
resources/edit_transform_relative_translation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 B |
Loading…
Add table
Reference in a new issue