Added missing private AddShortcut variant.
Minor style update. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8194 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
#include <MenuBar.h>
|
#include <MenuBar.h>
|
||||||
|
#include <MenuItem.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
@@ -1093,23 +1094,34 @@ void BWindow::SetPulseRate(bigtime_t rate){
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
bigtime_t BWindow::PulseRate() const{
|
bigtime_t
|
||||||
|
BWindow::PulseRate() const
|
||||||
|
{
|
||||||
return fPulseRate;
|
return fPulseRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void BWindow::AddShortcut( uint32 key, uint32 modifiers, BMessage* msg){
|
void
|
||||||
|
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMenuItem *item)
|
||||||
|
{
|
||||||
|
AddShortcut(key, modifiers, item->Message(), this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMessage *msg)
|
||||||
|
{
|
||||||
AddShortcut(key, modifiers, msg, this);
|
AddShortcut(key, modifiers, msg, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
void BWindow::AddShortcut( uint32 key, uint32 modifiers, BMessage* msg, BHandler* target){
|
void
|
||||||
|
BWindow::AddShortcut(uint32 key, uint32 modifiers, BMessage *msg, BHandler *target)
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
NOTE: I'm not sure if it is OK to use 'key'
|
NOTE: I'm not sure if it is OK to use 'key'
|
||||||
*/
|
*/
|
||||||
if ( !msg )
|
if (msg == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int64 when;
|
int64 when;
|
||||||
|
|||||||
Reference in New Issue
Block a user