New icons.
@@ -1 +1 @@
|
||||
#include "common/lc_global.h"
|
||||
#include "lc_global.h"
|
||||
|
||||
@@ -115,28 +115,107 @@ void lcMainWindow::CreateActions()
|
||||
mActions[LC_FILE_OPEN]->setToolTip(tr("Open Project"));
|
||||
mActions[LC_FILE_SAVE]->setToolTip(tr("Save Project"));
|
||||
|
||||
mActions[LC_FILE_NEW]->setIcon(QIcon(":/resources/file_new.png"));
|
||||
mActions[LC_FILE_OPEN]->setIcon(QIcon(":/resources/file_open.png"));
|
||||
mActions[LC_FILE_SAVE]->setIcon(QIcon(":/resources/file_save.png"));
|
||||
mActions[LC_FILE_SAVE_IMAGE]->setIcon(QIcon(":/resources/file_picture.png"));
|
||||
mActions[LC_FILE_PRINT]->setIcon(QIcon(":/resources/file_print.png"));
|
||||
mActions[LC_FILE_PRINT_PREVIEW]->setIcon(QIcon(":/resources/file_print_preview.png"));
|
||||
mActions[LC_EDIT_UNDO]->setIcon(QIcon(":/resources/edit_undo.png"));
|
||||
mActions[LC_EDIT_REDO]->setIcon(QIcon(":/resources/edit_redo.png"));
|
||||
mActions[LC_EDIT_CUT]->setIcon(QIcon(":/resources/edit_cut.png"));
|
||||
mActions[LC_EDIT_COPY]->setIcon(QIcon(":/resources/edit_copy.png"));
|
||||
mActions[LC_EDIT_PASTE]->setIcon(QIcon(":/resources/edit_paste.png"));
|
||||
mActions[LC_EDIT_ACTION_INSERT]->setIcon(QIcon(":/resources/action_insert.png"));
|
||||
mActions[LC_EDIT_ACTION_LIGHT]->setIcon(QIcon(":/resources/action_light.png"));
|
||||
mActions[LC_EDIT_ACTION_SPOTLIGHT]->setIcon(QIcon(":/resources/action_spotlight.png"));
|
||||
QIcon FileNewIcon;
|
||||
FileNewIcon.addFile(":/resources/file_new.png");
|
||||
FileNewIcon.addFile(":/resources/file_new_16.png");
|
||||
mActions[LC_FILE_NEW]->setIcon(FileNewIcon);
|
||||
|
||||
QIcon FileSaveIcon;
|
||||
FileSaveIcon.addFile(":/resources/file_save.png");
|
||||
FileSaveIcon.addFile(":/resources/file_save_16.png");
|
||||
mActions[LC_FILE_SAVE]->setIcon(FileSaveIcon);
|
||||
|
||||
QIcon FileOpenIcon;
|
||||
FileOpenIcon.addFile(":/resources/file_open.png");
|
||||
FileOpenIcon.addFile(":/resources/file_open_16.png");
|
||||
mActions[LC_FILE_OPEN]->setIcon(FileOpenIcon);
|
||||
|
||||
QIcon FilePrintIcon;
|
||||
FilePrintIcon.addFile(":/resources/file_print.png");
|
||||
FilePrintIcon.addFile(":/resources/file_print_16.png");
|
||||
mActions[LC_FILE_PRINT]->setIcon(FilePrintIcon);
|
||||
|
||||
QIcon FilePrintPreviewIcon;
|
||||
FilePrintPreviewIcon.addFile(":/resources/file_print_preview.png");
|
||||
FilePrintPreviewIcon.addFile(":/resources/file_print_preview_16.png");
|
||||
mActions[LC_FILE_PRINT_PREVIEW]->setIcon(FilePrintPreviewIcon);
|
||||
|
||||
QIcon EditUndoIcon;
|
||||
EditUndoIcon.addFile(":/resources/edit_undo.png");
|
||||
EditUndoIcon.addFile(":/resources/edit_undo_16.png");
|
||||
mActions[LC_EDIT_UNDO]->setIcon(EditUndoIcon);
|
||||
|
||||
QIcon EditRedoIcon;
|
||||
EditRedoIcon.addFile(":/resources/edit_redo.png");
|
||||
EditRedoIcon.addFile(":/resources/edit_redo_16.png");
|
||||
mActions[LC_EDIT_REDO]->setIcon(EditRedoIcon);
|
||||
|
||||
QIcon EditCutIcon;
|
||||
EditCutIcon.addFile(":/resources/edit_cut.png");
|
||||
EditCutIcon.addFile(":/resources/edit_cut_16.png");
|
||||
mActions[LC_EDIT_CUT]->setIcon(EditCutIcon);
|
||||
|
||||
QIcon EditCopyIcon;
|
||||
EditCopyIcon.addFile(":/resources/edit_copy.png");
|
||||
EditCopyIcon.addFile(":/resources/edit_copy_16.png");
|
||||
mActions[LC_EDIT_COPY]->setIcon(EditCopyIcon);
|
||||
|
||||
QIcon EditPasteIcon;
|
||||
EditPasteIcon.addFile(":/resources/edit_paste.png");
|
||||
EditPasteIcon.addFile(":/resources/edit_paste_16.png");
|
||||
mActions[LC_EDIT_PASTE]->setIcon(EditPasteIcon);
|
||||
|
||||
QIcon EditActionInsertIcon;
|
||||
EditActionInsertIcon.addFile(":/resources/action_insert.png");
|
||||
EditActionInsertIcon.addFile(":/resources/action_insert_16.png");
|
||||
mActions[LC_EDIT_ACTION_INSERT]->setIcon(EditActionInsertIcon);
|
||||
|
||||
QIcon EditActionLightIcon;
|
||||
EditActionLightIcon.addFile(":/resources/action_light.png");
|
||||
EditActionLightIcon.addFile(":/resources/action_light_16.png");
|
||||
mActions[LC_EDIT_ACTION_LIGHT]->setIcon(EditActionLightIcon);
|
||||
|
||||
QIcon EditActionSpotLightIcon;
|
||||
EditActionSpotLightIcon.addFile(":/resources/action_spotlight.png");
|
||||
EditActionSpotLightIcon.addFile(":/resources/action_spotlight_16.png");
|
||||
mActions[LC_EDIT_ACTION_SPOTLIGHT]->setIcon(EditActionSpotLightIcon);
|
||||
|
||||
QIcon EditActionSelectIcon;
|
||||
EditActionSelectIcon.addFile(":/resources/action_select.png");
|
||||
EditActionSelectIcon.addFile(":/resources/action_select_16.png");
|
||||
mActions[LC_EDIT_ACTION_SELECT]->setIcon(EditActionSelectIcon);
|
||||
|
||||
QIcon EditActionMoveIcon;
|
||||
EditActionMoveIcon.addFile(":/resources/action_move.png");
|
||||
EditActionMoveIcon.addFile(":/resources/action_move_16.png");
|
||||
mActions[LC_EDIT_ACTION_MOVE]->setIcon(EditActionMoveIcon);
|
||||
|
||||
QIcon EditActionRotateIcon;
|
||||
EditActionRotateIcon.addFile(":/resources/action_rotate.png");
|
||||
EditActionRotateIcon.addFile(":/resources/action_rotate_16.png");
|
||||
mActions[LC_EDIT_ACTION_ROTATE]->setIcon(EditActionRotateIcon);
|
||||
|
||||
QIcon EditActionDeleteIcon;
|
||||
EditActionDeleteIcon.addFile(":/resources/action_delete.png");
|
||||
EditActionDeleteIcon.addFile(":/resources/action_delete_16.png");
|
||||
mActions[LC_EDIT_ACTION_DELETE]->setIcon(EditActionDeleteIcon);
|
||||
|
||||
QIcon EditActionPaintIcon;
|
||||
EditActionPaintIcon.addFile(":/resources/action_paint.png");
|
||||
EditActionPaintIcon.addFile(":/resources/action_paint_16.png");
|
||||
mActions[LC_EDIT_ACTION_PAINT]->setIcon(EditActionPaintIcon);
|
||||
|
||||
QIcon EditActionZoomIcon;
|
||||
EditActionZoomIcon.addFile(":/resources/action_zoom.png");
|
||||
EditActionZoomIcon.addFile(":/resources/action_zoom_16.png");
|
||||
mActions[LC_EDIT_ACTION_ZOOM]->setIcon(EditActionZoomIcon);
|
||||
|
||||
QIcon EditActionPanIcon;
|
||||
EditActionPanIcon.addFile(":/resources/action_pan.png");
|
||||
EditActionPanIcon.addFile(":/resources/action_pan_16.png");
|
||||
mActions[LC_EDIT_ACTION_PAN]->setIcon(EditActionPanIcon);
|
||||
|
||||
mActions[LC_EDIT_ACTION_CAMERA]->setIcon(QIcon(":/resources/action_camera.png"));
|
||||
mActions[LC_EDIT_ACTION_SELECT]->setIcon(QIcon(":/resources/action_select.png"));
|
||||
mActions[LC_EDIT_ACTION_MOVE]->setIcon(QIcon(":/resources/action_move.png"));
|
||||
mActions[LC_EDIT_ACTION_ROTATE]->setIcon(QIcon(":/resources/action_rotate.png"));
|
||||
mActions[LC_EDIT_ACTION_DELETE]->setIcon(QIcon(":/resources/action_delete.png"));
|
||||
mActions[LC_EDIT_ACTION_PAINT]->setIcon(QIcon(":/resources/action_paint.png"));
|
||||
mActions[LC_EDIT_ACTION_ZOOM]->setIcon(QIcon(":/resources/action_zoom.png"));
|
||||
mActions[LC_EDIT_ACTION_PAN]->setIcon(QIcon(":/resources/action_pan.png"));
|
||||
mActions[LC_EDIT_ACTION_ROTATE_VIEW]->setIcon(QIcon(":/resources/action_rotate_view.png"));
|
||||
mActions[LC_EDIT_ACTION_ROLL]->setIcon(QIcon(":/resources/action_roll.png"));
|
||||
mActions[LC_EDIT_ACTION_ZOOM_REGION]->setIcon(QIcon(":/resources/action_zoom_region.png"));
|
||||
@@ -279,6 +358,8 @@ void lcMainWindow::CreateMenus()
|
||||
EditMenu->addAction(mActions[LC_EDIT_PASTE]);
|
||||
EditMenu->addSeparator();
|
||||
EditMenu->addAction(mActions[LC_EDIT_FIND]);
|
||||
|
||||
mActions[LC_EDIT_FIND]->setIcon(QIcon(":/resources/edit_find.png"));
|
||||
EditMenu->addAction(mActions[LC_EDIT_FIND_NEXT]);
|
||||
EditMenu->addAction(mActions[LC_EDIT_FIND_PREVIOUS]);
|
||||
EditMenu->addSeparator();
|
||||
@@ -435,6 +516,8 @@ void lcMainWindow::CreateToolBars()
|
||||
QHBoxLayout* TransformLayout = new QHBoxLayout;
|
||||
QWidget* TransformWidget = new QWidget();
|
||||
TransformWidget->setLayout(TransformLayout);
|
||||
|
||||
TransformLayout->setContentsMargins(5, 0, 5, 0);
|
||||
mTransformXEdit = new QLineEdit();
|
||||
mTransformXEdit->setMaximumWidth(75);
|
||||
TransformLayout->addWidget(mTransformXEdit);
|
||||
|
||||
@@ -8,7 +8,7 @@ greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
|
||||
INCLUDEPATH += qt common
|
||||
CONFIG += precompile_header incremental c++11
|
||||
PRECOMPILED_HEADER = common/lc_global.h
|
||||
PRECOMPILED_HEADER = lc_global.h
|
||||
win32 {
|
||||
QMAKE_CXXFLAGS_WARN_ON += -wd4100
|
||||
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE=1 _CRT_NONSTDC_NO_WARNINGS=1
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>resources/action_delete_16.png</file>
|
||||
<file>resources/action_insert_16.png</file>
|
||||
<file>resources/action_light_16.png</file>
|
||||
<file>resources/action_move_16.png</file>
|
||||
<file>resources/action_paint_16.png</file>
|
||||
<file>resources/action_pan_16.png</file>
|
||||
<file>resources/action_rotate_16.png</file>
|
||||
<file>resources/action_select_16.png</file>
|
||||
<file>resources/action_spotlight_16.png</file>
|
||||
<file>resources/action_zoom_16.png</file>
|
||||
<file>resources/edit_copy_16.png</file>
|
||||
<file>resources/edit_cut_16.png</file>
|
||||
<file>resources/edit_paste_16.png</file>
|
||||
<file>resources/edit_redo_16.png</file>
|
||||
<file>resources/edit_undo_16.png</file>
|
||||
<file>resources/file_new_16.png</file>
|
||||
<file>resources/file_open_16.png</file>
|
||||
<file>resources/file_print_16.png</file>
|
||||
<file>resources/file_print_preview_16.png</file>
|
||||
<file>resources/file_save_16.png</file>
|
||||
<file>resources/action_camera.png</file>
|
||||
<file>resources/action_delete.png</file>
|
||||
<file>resources/action_insert.png</file>
|
||||
@@ -36,6 +56,7 @@
|
||||
<file>resources/cursor_zoom_region.png</file>
|
||||
<file>resources/edit_copy.png</file>
|
||||
<file>resources/edit_cut.png</file>
|
||||
<file>resources/edit_find.png</file>
|
||||
<file>resources/edit_lock.png</file>
|
||||
<file>resources/edit_paste.png</file>
|
||||
<file>resources/edit_redo.png</file>
|
||||
|
||||
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 718 B |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 695 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 735 B |
|
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 628 B |
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 940 B |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 654 B |
|
After Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 285 B |
|
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 797 B |
|
After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 920 B |
|
After Width: | Height: | Size: 755 B |
|
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 683 B |
|
Before Width: | Height: | Size: 1019 B After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 825 B |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 743 B |
|
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 741 B |
|
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 823 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 671 B |
|
After Width: | Height: | Size: 435 B |
|
Before Width: | Height: | Size: 854 B After Width: | Height: | Size: 762 B |
|
After Width: | Height: | Size: 509 B |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 705 B |
|
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 722 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 952 B |
|
After Width: | Height: | Size: 664 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 565 B |
|
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 610 B |
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 871 B |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 952 B |
|
Before Width: | Height: | Size: 668 B After Width: | Height: | Size: 941 B |
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 841 B |