Squeak Class Documentation category index | class index  
 
MouseMenuController
  category: Kernel-ST80 Remnants
  superclass: Controller
  subclasses: StandardSystemController BitEditor ScrollController FormEditor

I am a Controller that modifies the scheduling of user activities so that the three mouse buttons can be used to make selections or display menus. The menu items are unary messages to the value of sending my instance the message menuMessageReceiver.

instance methods
  control defaults
  controlActivity
isControlActive

  initialize-release
  release
reset

  menu messages
  blueButtonActivity
performMenuMessage:
redButtonActivity
yellowButtonActivity

  menu setup
  redButtonMenu:redButtonMessages:

  pluggable menus
  getPluggableYellowButtonMenu:
pluggableYellowButtonActivity:
shiftedTextPaneMenuRequest
shiftedYellowButtonActivity
unshiftedYellowButtonActivity

class methods
  no messages
 

instance methods
  control defaults top  
 

controlActivity

Refer to the comment in Controller|controlActivity.


 

isControlActive

In contrast to class Controller, only blue button but not yellow button
events will end the receiver's control loop.


  initialize-release top  
 

release

Breaks the cycle between the receiver and its view. It is usually not
necessary to send release provided the receiver's view has been properly
released independently.


 

reset

Eliminate references to all mouse button menus.


  menu messages top  
 

blueButtonActivity

This normally opens the window menu. It is a no-op here
as only the StandardSystemController deals with that kind
of menus.


 

performMenuMessage:

Perform a menu command by sending self the message aSelector.
Default does nothing special.


 

redButtonActivity

Determine which item in the red button pop-up menu is selected. If one
is selected, then send the corresponding message to the object designated
as the menu message receiver.


 

yellowButtonActivity

This normally opens a popup menu. Determine the selected
item and, if one is selected, then send the corresponding message
to either the model or the receiver.


  menu setup top  
 

redButtonMenu:redButtonMessages:

Initialize the pop-up menu that should appear when the user presses the
red mouse button to be aSystemMenu. The corresponding messages that
should be sent are listed in the array, anArray.


  pluggable menus top  
 

getPluggableYellowButtonMenu:


 

pluggableYellowButtonActivity:

Invoke the model's popup menu.


 

shiftedTextPaneMenuRequest

The user chose the more... branch from the text-pane menu.


 

shiftedYellowButtonActivity

Invoke the model's special popup menu.


 

unshiftedYellowButtonActivity

Invoke the model's normal popup menu.


class methods
  no messages top