Skip to content

Commit

Permalink
Image Editor: rotate and flip image (#385)
Browse files Browse the repository at this point in the history
* Image Editor: rotate image

* Image Editor: add rotate button with submenu

* Image Editor: flip image

Image Editor: fixed bug in Toolbar::AutoSize()
  • Loading branch information
zenden2k authored Nov 15, 2024
1 parent 1bb759f commit 2ab24d5
Show file tree
Hide file tree
Showing 30 changed files with 516 additions and 235 deletions.
132 changes: 76 additions & 56 deletions Lang/imageuploader.pot

Large diffs are not rendered by default.

132 changes: 76 additions & 56 deletions Lang/locale/ru/LC_MESSAGES/imageuploader.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Source/Gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ if (IU_ENABLE_MEDIAINFO)
endif()

source_group(TREE "${CMAKE_SOURCE_DIR}" PREFIX "Sources" FILES ${SRC_LIST} ${HEADER_LIST})
source_group("Resource Files" FILES ${RESOURCE_LIST})
#source_group("Resource Files" FILES ${RESOURCE_LIST})

add_executable(GUI WIN32
${SRC_LIST} ${HEADER_LIST} ${RESOURCE_LIST}
Expand Down
8 changes: 4 additions & 4 deletions Source/Gui/GuiTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ bool InsertMenu(HMENU hMenu, int pos, UINT id, LPCTSTR szTitle, HBITMAP bm){
if(szTitle)
MenuItem.fType = MFT_STRING;
else MenuItem.fType = MFT_SEPARATOR;
MenuItem.fMask = MIIM_TYPE | MIIM_ID | MIIM_DATA;
MenuItem.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STRING;
if(bm)
MenuItem.fMask |= MIIM_CHECKMARKS;
MenuItem.fMask |= MIIM_BITMAP;
MenuItem.wID = id;
MenuItem.hbmpChecked = bm;
MenuItem.hbmpUnchecked = bm;
MenuItem.hbmpItem = bm;
MenuItem.dwTypeData = const_cast<LPWSTR>(szTitle);
MenuItem.cch = lstrlen(szTitle);

return InsertMenuItem(hMenu, pos, TRUE, &MenuItem)!=0;
}

Expand Down
26 changes: 26 additions & 0 deletions Source/Image Uploader.rc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Neutral (Default) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD)
LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT
#pragma code_page(1251)

/////////////////////////////////////////////////////////////////////////////
//
// PNG
//

IDB_ICONROTATECW PNG "res\\ImageEditor\\icon_rotate_cw.png"

IDB_ICONROTATE PNG "res\\ImageEditor\\icon_rotate.png"

IDB_ICONROTATEFLIP PNG "res\\ImageEditor\\icon_rotate_flip.png"

IDB_ICONFLIPHORIZONTAL PNG "res\\ImageEditor\\icon_flip_horizontal.png"

#endif // Neutral (Default) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Russian (Russia) resources

Expand Down Expand Up @@ -1656,6 +1680,8 @@ IDB_ICONSEARCH PNG "res\\ImageEditor\\icon_search.p

IDB_ICONPRINT PNG "res\\ImageEditor\\icon_print.png"

IDB_ICONFLIPVERTICAL PNG "res\\ImageEditor\\icon_flip_vertical.png"


/////////////////////////////////////////////////////////////////////////////
//
Expand Down
Loading

0 comments on commit 2ab24d5

Please sign in to comment.