mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
Added 'new folder' button to save dialogs. Fixes for mouse position/popup menus, ComponentDragger, ComboBox.
This commit is contained in:
parent
709f573997
commit
76b128d90e
26 changed files with 488 additions and 470 deletions
|
|
@ -31,6 +31,7 @@ BEGIN_JUCE_NAMESPACE
|
|||
#include "juce_MouseEvent.h"
|
||||
#include "../juce_Component.h"
|
||||
#include "../../../events/juce_AsyncUpdater.h"
|
||||
#include "../../../events/juce_MessageManager.h"
|
||||
#include "../lookandfeel/juce_LookAndFeel.h"
|
||||
#include "../windows/juce_ComponentPeer.h"
|
||||
|
||||
|
|
@ -47,10 +48,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~MouseInputSourceInternal()
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
bool isDragging() const throw()
|
||||
{
|
||||
|
|
@ -92,8 +89,12 @@ public:
|
|||
return 0;
|
||||
}
|
||||
|
||||
const Point<int> getScreenPosition() const throw()
|
||||
const Point<int> getScreenPosition()
|
||||
{
|
||||
// This must only be called with the message manager locked!
|
||||
jassert (MessageManager::getInstance()->currentThreadHasLockedMessageManager());
|
||||
|
||||
setScreenPos (MouseInputSource::getCurrentMousePosition(), Time::currentTimeMillis(), false);
|
||||
return lastScreenPos + unboundedMouseOffset;
|
||||
}
|
||||
|
||||
|
|
@ -430,8 +431,8 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
int index;
|
||||
bool isMouseDevice;
|
||||
const int index;
|
||||
const bool isMouseDevice;
|
||||
Point<int> lastScreenPos;
|
||||
ModifierKeys buttonState;
|
||||
|
||||
|
|
@ -457,7 +458,7 @@ private:
|
|||
Component* component;
|
||||
ModifierKeys buttons;
|
||||
|
||||
bool canBePartOfMultipleClickWith (const RecentMouseDown& other, int maxTimeBetween) const
|
||||
bool canBePartOfMultipleClickWith (const RecentMouseDown& other, const int maxTimeBetween) const
|
||||
{
|
||||
return time - other.time < maxTimeBetween
|
||||
&& abs (position.getX() - other.position.getX()) < 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue