haiku/headers/os/interface
Ryan Leavengood 91f0846f8a Add a default right click context menu to BTextView.
This fixes #7022 and is mostly based on the patch attached to that ticket, with
these changes:
- The patch was adding this to the private _TextInput_ class, not BTextView.
- The patch had a Clear menu item too. I removed that due to the different
semantics between Clear in a BTextView and in a TextInput. The former just
clears the selection where the latter clears the whole view.

We could later add a virtual callback for adding menu items to this context
menu which could be used to add Clear with the two semantics in each class
(this is mainly needed for the enabling logic...each class could handle a clear
message in its own way.) This callback could also obviously be used for other
things, like a spell-check menu or whatever an application would want to add.
Since BTextView has 10 free virtual slots it seems reasonable to add.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-28 05:09:52 +00:00
..
AbstractLayout.h Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. 2010-08-17 18:43:41 +00:00
AbstractLayoutItem.h Patch by Alex Wilson: 2010-07-16 17:23:15 +00:00
AffineTransform.h * Allow to set the scale (versus multiplication with a scale). 2010-04-21 16:46:32 +00:00
Alert.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Alignment.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Bitmap.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Box.h
Button.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
CardLayout.h Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. 2010-08-17 18:43:41 +00:00
ChannelControl.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ChannelSlider.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
CheckBox.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ColorControl.h Fixed for 80 char limit. 2009-08-26 10:32:41 +00:00
Control.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ControlLook.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
Deskbar.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Dragger.h Moved the static stuff into a singleton. 2009-11-30 14:43:35 +00:00
Font.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Gradient.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientConic.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientDiamond.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientLinear.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientRadial.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GradientRadialFocus.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
GraphicsDefs.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
GridLayout.h * Added ItemAt() method that accepts column and row. 2011-01-08 16:14:13 +00:00
GridLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GridView.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GroupLayout.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GroupLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
GroupView.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
Input.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
InterfaceDefs.h Introduce a new flag for drawing BBitmaps, B_WAIT_FOR_RETRACE 2010-10-23 22:22:45 +00:00
Layout.h Also made LayoutContext() const. 2010-11-19 21:53:25 +00:00
LayoutBuilder.h Added a layout builder for menus. 2010-11-19 14:29:37 +00:00
LayoutContext.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
LayoutItem.h Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. 2010-08-17 18:43:41 +00:00
LayoutUtils.h Aligned the second MoveIntoFrame() parameter name with the implementation. 2010-11-19 17:49:09 +00:00
ListItem.h * Added BListItem::SetOutlineLevel() method. 2010-05-07 11:24:25 +00:00
ListView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Menu.h _AddDynamicItems didn't pass the keyDown parameter to _OkToProceed (noticed 2010-06-30 14:49:42 +00:00
MenuBar.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
MenuField.h Updated BMenuField and its custom BLayoutItems for layout-safe archiving. Added an _InitMenu(const BMessage*) method that inits the menu during unarchival. 2010-07-27 20:59:47 +00:00
MenuItem.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
MultiChannelControl.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
OptionControl.h Added layout friendly constructor for BOptionControl 2009-10-25 10:45:42 +00:00
OptionPopUp.h Also add layout-friendly constructor for BOptionPopUp (not yet tested) 2009-10-25 10:49:28 +00:00
OutlineListView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Picture.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
PictureButton.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Point.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Polygon.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
PopUpMenu.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
PrintJob.h Rewrote PrintJob.h 2009-08-26 18:56:44 +00:00
RadioButton.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Rect.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Region.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
Screen.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
ScrollBar.h Optimized includes. For example, BeBuild.h is almost always already included 2009-08-27 12:36:35 +00:00
ScrollView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
SeparatorItem.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
SeparatorView.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Shape.h Added BShape::CurrentPoint(), returning the current end point of the path. 2010-03-19 00:28:38 +00:00
Shelf.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Size.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
Slider.h * Reuse the check for changed location which decides whether 2010-11-06 12:43:24 +00:00
SpaceLayoutItem.h Patch by Alex Wilson: 2010-07-17 01:05:28 +00:00
SplitLayoutBuilder.h Add default spacing for Layouts (#5614) 2010-09-02 22:58:24 +00:00
SplitView.h Forward important properties and setters of the private BSplitLayout 2011-01-01 12:08:49 +00:00
StatusBar.h * Make a BStatusBar comfortable to use without any text labels. 2010-02-06 09:48:37 +00:00
StringItem.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
StringView.h Ooops, fix the binary compatibility I introduced. 2010-09-09 16:33:56 +00:00
TabView.h Update BTabView for layout-friendly archiving. Added _InitContainerView() method that is called from _InitObject() but also called on its own during unarchival. Implemented BTabView::AllUnarchived() and implemented a case for this in BTabView::Perform(). 2010-07-28 20:03:41 +00:00
TextControl.h Updated BTextControl and its custom BLayoutItems. Also a bit of style cleanup. Broke up BTextControl::_InitData() method into _InitData() and _InitText() and moved initialization of the BTextView there. 2010-07-27 22:16:46 +00:00
TextView.h Add a default right click context menu to BTextView. 2011-01-28 05:09:52 +00:00
TwoDimensionalLayout.h Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. 2010-08-17 18:43:41 +00:00
UnicodeBlockObjects.h Finished unifying the Interface Kit headers: 2009-08-27 11:12:41 +00:00
View.h Big change deriving BLayout from BLayoutItem, and allowing viewless BLayouts. 2010-08-17 18:43:41 +00:00
Window.h Renamed _CheckSizeLimits() to UpdateSizeLimits() and made it public. 2010-11-19 11:38:45 +00:00