Commit graph

838 commits

Author SHA1 Message Date
ysj1173886760
8f36696f0f GRAPHICS: MACGUI: clean code for code analyse 2021-06-03 13:19:10 +02:00
ysj1173886760
f89977b4a2 GRAPHICS: MACGUI: fix and add the basic text operations in mactextwindow which is used in WAGE 2021-06-03 13:19:10 +02:00
ysj1173886760
924b7e1e08 GRAPHICS: MACGUI: fix incorrect offset calculating when drawing selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
ecac522c7f GRAPHICS: MACGUI: make mactext can scrollable now 2021-06-03 13:19:10 +02:00
ysj1173886760
eda07a54be GRAPHICS: MACGUI: modify the behaviour when we inserting character when we have selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
f320de75ff GRAPHICS: MACGUI: implement delete to mactext by using existing functions 2021-06-03 13:19:10 +02:00
ysj1173886760
1b92db9f80 GRAPHICS: MACGUI: fix incorrect selection drawing when mactext is not active 2021-06-03 13:19:10 +02:00
ysj1173886760
f0763f44cc GRAPHICS: MACGUI: fix the cursor position when using paste in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
4d4ad3c310 GRAPHICS: MACGUI: bring copy, paste, cut to mactext. currently, we are using copy with formatting 2021-06-03 13:19:10 +02:00
ysj1173886760
73b10b3e5e GRAPHICS: MACGUI: clean the surface when we are drawing selection in mactext 2021-06-03 13:19:10 +02:00
ysj1173886760
bd6887a6ea GRAPHICS: MACGUI: implement deleteSelection by using deletePreviousChar 2021-06-03 13:19:10 +02:00
ysj1173886760
cfac0f0513 GRAPHICS: MACGUI: add offset to drawSelection 2021-06-03 13:19:10 +02:00
ysj1173886760
b11dfdfeaa GRAPHICS: MACGUI: change the behavior of cursor and selectedText, currently, we won't draw the cursor when we have selectedText 2021-06-03 13:19:10 +02:00
ysj1173886760
0176107051 GRAPHICS: MACGUI: add a check when we disabling the hoveredWidget 2021-06-03 13:19:10 +02:00
ysj1173886760
c84f16ca22 GRAPHICS: MACGUI: fix the coordinate calculating, bring the mactext selection work again 2021-06-03 13:19:10 +02:00
Eugene Sandulenko
f1f031449b
GRAPHICS: MACGUI: Expose another way of setting MacWindow borders 2021-05-26 12:00:28 +02:00
ysj1173886760
60d9b79c0f GRAPHICS: MACGUI: add intersection check with macmenu and macwindow 2021-05-21 10:51:07 +02:00
ysj1173886760
1b211371cf GRAPHICS: MACGUI: fix the offset in macmenu 2021-05-21 10:51:07 +02:00
ysj1173886760
68099e5ebe GRAPHICS: MACGUI: fix the wm was not correctly reflushed when changing the menu items 2021-05-21 10:51:07 +02:00
Eugene Sandulenko
1e85ecf048
GRAPHICS: MACGUI: Draw plain rectangle menu in Win95 mode 2021-05-14 18:49:03 +02:00
Eugene Sandulenko
f6c7f99b3d
GRAPHICS: MACGUI: Simplified background restoration code in MacMenu 2021-05-14 18:49:02 +02:00
Eugene Sandulenko
463031f88a
GRAPHICS: MACGUI: Do not refresh full screen when cursor is away from menu 2021-05-14 18:49:02 +02:00
Eugene Sandulenko
dc94b96a95
GRAPHICS: MACGUI: Fixed other cases of off-screen rendering 2021-05-10 14:08:30 +02:00
Eugene Sandulenko
6d82d40db6
GRAPHICS: MACGUI: Fix out-of-screen rendering when submenus are wider than screen 2021-05-10 13:58:26 +02:00
D G Turner
a51f5e9c1a GRAPHICS: Fix GCC Compiler Warnings 2021-05-05 11:36:04 +01:00
Eugene Sandulenko
6e17562492
GUI: MACGUI: Make MacTextWindow working with plain fonts 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
5e6e9bf74b
GRAPHICS: MACGUI: Expose MacWindowManager palette 2021-05-02 01:03:01 +02:00
SupSuper
41798fca5d GRAPHICS: MACGUI: FreeType required for Win95 fonts
Fixes compilation on platforms without FreeType
2021-05-01 07:44:05 +01:00
Eugene Sandulenko
738db125e3
GRAPHICS: MACGUI: Make MacText work with plain text 2021-05-01 01:49:48 +02:00
Eugene Sandulenko
7d4f064a2a
GRAPHICS: MACGUI: Streamlined MacText initialization 2021-05-01 01:49:48 +02:00
Eugene Sandulenko
c60009da68
GRAPHICS: MACGUI: Initialized class variables 2021-05-01 01:49:48 +02:00
Eugene Sandulenko
d98473ba47
GRAPHICS: MACGUI: Use Win95 fonts for Win95 MacMenu 2021-05-01 01:49:47 +02:00
Eugene Sandulenko
cc0cdbbd22
GRAPHICS: MACGUI: Plug memory leak 2021-05-01 01:49:46 +02:00
Eugene Sandulenko
81252598e6
GRAPHICS: MACGUI: Optimize MacMenu rendering 2021-05-01 01:49:37 +02:00
ysj1173886760
9c9b553d7a GRAPHICS: MACGUI: fix the logic when calc the coordinate of scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
fb7ed6f845 GRAPHICS: MACGUI: add textRGB for mactextwindow to suit new logic of mactext when drawing the text with color. add window feature DynamicScrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
549511c4b5 GRAPHICS: MACGUI: add rgb parameter for appendText, which makes mactext draws text with color, fix the logic when appending text 2021-04-25 02:24:15 +02:00
ysj1173886760
98cb026f70 GRAPHICS: MACGUI: fix the behaviour when we enable win95 mode when drawing scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
c317ca1900 GRAPHICS: MACGUI: load win95scrollbar border as default when enable win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
fc702ea9fe GRAPHICS: MACGUI: re-organize the code for drawing scrollbar for macwindow 2021-04-25 02:24:15 +02:00
ysj1173886760
82a55fd8d8 GRAPHICS: MACGUI: add getTextMaxWidth for mactext 2021-04-25 02:24:15 +02:00
ysj1173886760
27986beebc GRAPHICS: MACGUI: add comment for enableScrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
d437b22b6b GRAPHICS: MACGUI: fix the behaviour of scrollbar of win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
15d46a55f8 GRAPHICS: MACGUI: add the feature that you can close the window when using the menu 2021-04-25 02:24:15 +02:00
ysj1173886760
b993ab021d GRAPHICS: MACGUI: fix the algorithm when we calc the coordinate of scrollbar, modify the offsets 2021-04-25 02:24:15 +02:00
ysj1173886760
90b2c02f27 GRAPHICS: MACGUI: init the scrollSize and scrollPos at constructor 2021-04-25 02:24:15 +02:00
ysj1173886760
fa4aaa7608 GRAPHICS: MACGUI: modify the offset when drawing the mactext to suit for pink 2021-04-25 02:24:15 +02:00
ysj1173886760
855583e2e4 GRAPHICS: MACGUI: add win95 mode for scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760
f81ea96421 GRAPHICS: MACGUI: clean the code, modify the behaviour of win95 menu 2021-04-25 02:24:15 +02:00
ysj1173886760
ba4513c10b GRAPHICS: MACGUI: organize the code 2021-04-25 02:24:15 +02:00