CtrlCore: Cocoa: ignoreclick

git-svn-id: svn://ultimatepp.org/upp/trunk@12193 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-26 14:45:33 +00:00
parent b962ef83c2
commit 2225dcd14a
2 changed files with 20 additions and 5 deletions

View file

@ -60,6 +60,10 @@ bool Ctrl::ReleaseWndCapture()
struct MMImp {
static bool MouseEvent(CocoView *view, NSEvent *e, int event, double zd = 0)
{
if((event & Ctrl::ACTION) == Ctrl::UP && Ctrl::ignoreclick) {
Ctrl::EndIgnore();
return false;
}
NSPoint np = [view convertPoint:[e locationInWindow] fromView:nil];
Rect r = view->ctrl->GetRect();
Upp::Point p(np.x, r.GetHeight() - np.y);
@ -71,6 +75,13 @@ struct MMImp {
static bool MouseDownEvent(CocoView *view, NSEvent *e, int button)
{
if(Ctrl::ignoremouseup) {
Ctrl::KillRepeat();
Ctrl::ignoreclick = false;
Ctrl::ignoremouseup = false;
}
if(Ctrl::ignoreclick)
return false;
static int clicktime = msecs() - 100000;
bool b;
if(msecs(clicktime) < GUI_DblClickTime()) {

View file

@ -2,28 +2,25 @@ sooner:
- default GUI font
- minimize, maximaze
- Sort fonts
- not all additional cursors are correct
- fix package organiser link options (joining link options missing space)
- progress for assist opens too much, probably problem with delay?
- ignoreclick
later:
- apple debugger
- progress for assist opens too much, probably problem with delay?
- package organizer initial size too small
- void WakeUpGuiThread(void)
- fullscreen mode issues
- CommonFontInfo GetFontInfoSys(Font font) metrics
- GetGlyphInfoSys metrics
- EndSession ?
- ignoreclick
- event flags
- CachedSetColorKeepAlpha optimize out
- use NSView:needsToDrawRect: for IsPaintingOp
- set application icons
- fix resizing arrows
- multimonitor support
@ -36,8 +33,15 @@ void SystemDraw::DrawArcOp(const Rect& rc, Point start, Point end, int width, Co
- keynames apple style
- Mac menu
- Clipboard types
- Drag&Drop
- System colors
- Chameleon
done:
- Sort fonts
- numpad Enter does not do K_ENTER
- Synthetise fonts
- RenderCharacterSys