]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Define icons for folder commands Dev_FolderFeature
authorvsv <vsv@opencascade.com>
Fri, 1 Dec 2017 12:21:24 +0000 (15:21 +0300)
committervsv <vsv@opencascade.com>
Fri, 1 Dec 2017 12:21:24 +0000 (15:21 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp
src/XGUI/XGUI_pictures.qrc
src/XGUI/pictures/create_folder.png [new file with mode: 0644]
src/XGUI/pictures/insert_folder_after.png [new file with mode: 0644]
src/XGUI/pictures/insert_folder_before.png [new file with mode: 0644]
src/XGUI/pictures/move_out_after.png [new file with mode: 0644]
src/XGUI/pictures/move_out_before.png [new file with mode: 0644]

index be9bf8c16fd0e706d3bde0c34798d0fc6a340911..4d97e46d0dd67020cd2760875188e42cbb54a1b2 100644 (file)
@@ -189,23 +189,23 @@ void XGUI_ContextMenuMgr::createActions()
 #endif
 
   // Features folders actions
-  aAction = ModuleBase_Tools::createAction(QIcon(),
+  aAction = ModuleBase_Tools::createAction(QIcon(":pictures/create_folder.png"),
                                            tr("Insert a folder before"), aDesktop);
   addAction("INSERT_FOLDER_CMD", aAction);
 
-  aAction = ModuleBase_Tools::createAction(QIcon(),
+  aAction = ModuleBase_Tools::createAction(QIcon(":pictures/insert_folder_before.png"),
                                            tr("Move into the previous folder"), aDesktop);
   addAction("ADD_TO_FOLDER_BEFORE_CMD", aAction);
 
-  aAction = ModuleBase_Tools::createAction(QIcon(),
+  aAction = ModuleBase_Tools::createAction(QIcon(":pictures/insert_folder_after.png"),
                                            tr("Move into the next folder"), aDesktop);
   addAction("ADD_TO_FOLDER_AFTER_CMD", aAction);
 
-  aAction = ModuleBase_Tools::createAction(QIcon(),
+  aAction = ModuleBase_Tools::createAction(QIcon(":pictures/move_out_before.png"),
                                            tr("Move out before the folder"), aDesktop);
   addAction("ADD_OUT_FOLDER_BEFORE_CMD", aAction);
 
-  aAction = ModuleBase_Tools::createAction(QIcon(),
+  aAction = ModuleBase_Tools::createAction(QIcon(":pictures/move_out_after.png"),
                                            tr("Move out after the folder"), aDesktop);
   addAction("ADD_OUT_FOLDER_AFTER_CMD", aAction);
 
index 35a345fe0e7530fe1d0d45e37a47a100212085a5..cc92ee6fb0955fdc58ca6f119adfa1a2e819d53d 100644 (file)
 
      <file>pictures/transparency.png</file>
      <file>pictures/features_folder.png</file>
+     <file>pictures/create_folder.png</file>
+     <file>pictures/insert_folder_after.png</file>
+     <file>pictures/insert_folder_before.png</file>
+     <file>pictures/move_out_after.png</file>
+     <file>pictures/move_out_before.png</file>
  </qresource>
  </RCC>
diff --git a/src/XGUI/pictures/create_folder.png b/src/XGUI/pictures/create_folder.png
new file mode 100644 (file)
index 0000000..371d86d
Binary files /dev/null and b/src/XGUI/pictures/create_folder.png differ
diff --git a/src/XGUI/pictures/insert_folder_after.png b/src/XGUI/pictures/insert_folder_after.png
new file mode 100644 (file)
index 0000000..f10a6c9
Binary files /dev/null and b/src/XGUI/pictures/insert_folder_after.png differ
diff --git a/src/XGUI/pictures/insert_folder_before.png b/src/XGUI/pictures/insert_folder_before.png
new file mode 100644 (file)
index 0000000..2563478
Binary files /dev/null and b/src/XGUI/pictures/insert_folder_before.png differ
diff --git a/src/XGUI/pictures/move_out_after.png b/src/XGUI/pictures/move_out_after.png
new file mode 100644 (file)
index 0000000..6adcf64
Binary files /dev/null and b/src/XGUI/pictures/move_out_after.png differ
diff --git a/src/XGUI/pictures/move_out_before.png b/src/XGUI/pictures/move_out_before.png
new file mode 100644 (file)
index 0000000..cf248a6
Binary files /dev/null and b/src/XGUI/pictures/move_out_before.png differ