mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
RTAS description update to use JucePlugin_Desc macro. FileBasedDocument addition for customising save filename. TableHeaderComponent fix to avoid spurious mouse-overs.
This commit is contained in:
parent
493a78f33d
commit
fb01e6dfc2
5 changed files with 27 additions and 12 deletions
|
|
@ -559,17 +559,17 @@ void TableHeaderComponent::resized()
|
|||
|
||||
void TableHeaderComponent::mouseMove (const MouseEvent& e)
|
||||
{
|
||||
updateColumnUnderMouse (e.x, e.y);
|
||||
updateColumnUnderMouse (e);
|
||||
}
|
||||
|
||||
void TableHeaderComponent::mouseEnter (const MouseEvent& e)
|
||||
{
|
||||
updateColumnUnderMouse (e.x, e.y);
|
||||
updateColumnUnderMouse (e);
|
||||
}
|
||||
|
||||
void TableHeaderComponent::mouseExit (const MouseEvent& e)
|
||||
{
|
||||
updateColumnUnderMouse (e.x, e.y);
|
||||
setColumnUnderMouse (0);
|
||||
}
|
||||
|
||||
void TableHeaderComponent::mouseDown (const MouseEvent& e)
|
||||
|
|
@ -771,7 +771,7 @@ void TableHeaderComponent::mouseUp (const MouseEvent& e)
|
|||
|
||||
endDrag (getIndexOfColumnId (columnIdBeingDragged, true));
|
||||
|
||||
updateColumnUnderMouse (e.x, e.y);
|
||||
updateColumnUnderMouse (e);
|
||||
|
||||
if (columnIdUnderMouse != 0 && e.mouseWasClicked() && ! e.mods.isPopupMenu())
|
||||
columnClicked (columnIdUnderMouse, e.mods);
|
||||
|
|
@ -892,11 +892,8 @@ int TableHeaderComponent::getResizeDraggerAt (const int mouseX) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
void TableHeaderComponent::updateColumnUnderMouse (int x, int y)
|
||||
void TableHeaderComponent::setColumnUnderMouse (const int newCol)
|
||||
{
|
||||
const int newCol = (reallyContains (Point<int> (x, y), true) && getResizeDraggerAt (x) == 0)
|
||||
? getColumnIdAtX (x) : 0;
|
||||
|
||||
if (newCol != columnIdUnderMouse)
|
||||
{
|
||||
columnIdUnderMouse = newCol;
|
||||
|
|
@ -904,6 +901,12 @@ void TableHeaderComponent::updateColumnUnderMouse (int x, int y)
|
|||
}
|
||||
}
|
||||
|
||||
void TableHeaderComponent::updateColumnUnderMouse (const MouseEvent& e)
|
||||
{
|
||||
setColumnUnderMouse (reallyContains (e.getPosition(), true) && getResizeDraggerAt (e.x) == 0
|
||||
? getColumnIdAtX (e.x) : 0);
|
||||
}
|
||||
|
||||
static void tableHeaderMenuCallback (int result, TableHeaderComponent* tableHeader, int columnIdClicked)
|
||||
{
|
||||
if (tableHeader != nullptr && result != 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue