[haiku-commits] r38201 - haiku/trunk/src/preferences/keymap

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 17 Aug 2010 18:53:25 +0200 (CEST)

Author: zooey
Date: 2010-08-17 18:53:25 +0200 (Tue, 17 Aug 2010)
New Revision: 38201
Changeset: http://dev.haiku-os.org/changeset/38201

Modified:
   haiku/trunk/src/preferences/keymap/KeyboardLayoutView.h
Log:
* style adjustments - no functional change

Modified: haiku/trunk/src/preferences/keymap/KeyboardLayoutView.h
===================================================================
--- haiku/trunk/src/preferences/keymap/KeyboardLayoutView.h     2010-08-17 
16:47:14 UTC (rev 38200)
+++ haiku/trunk/src/preferences/keymap/KeyboardLayoutView.h     2010-08-17 
16:53:25 UTC (rev 38201)
@@ -11,113 +11,115 @@
 
 #include "KeyboardLayout.h"
 
+
 class Keymap;
 
 
 class KeyboardLayoutView : public BView {
 public:
-                                                       
KeyboardLayoutView(const char* name);
-                                                       ~KeyboardLayoutView();
+                                                               
KeyboardLayoutView(const char* name);
+                                                               
~KeyboardLayoutView();
 
-                       void                    
SetKeyboardLayout(KeyboardLayout* layout);
-                       void                    SetKeymap(Keymap* keymap);
-                       void                    SetTarget(BMessenger target);
+                       void                            
SetKeyboardLayout(KeyboardLayout* layout);
+                       void                            SetKeymap(Keymap* 
keymap);
+                       void                            SetTarget(BMessenger 
target);
 
-                       KeyboardLayout* GetKeyboardLayout() { return fLayout; }
+                       KeyboardLayout*         GetKeyboardLayout() { return 
fLayout; }
 
-                       void                    SetFont(const BFont& font);
+                       void                            SetFont(const BFont& 
font);
 
-                       void                    SetEditable(bool editable);
+                       void                            SetEditable(bool 
editable);
 
 protected:
-       virtual void                    AttachedToWindow();
-       virtual void                    FrameResized(float width, float height);
-       virtual BSize                   MinSize();
+       virtual void                            AttachedToWindow();
+       virtual void                            FrameResized(float width, float 
height);
+       virtual BSize                           MinSize();
 
-       virtual void                    KeyDown(const char* bytes, int32 
numBytes);
-       virtual void                    KeyUp(const char* bytes, int32 
numBytes);
-       virtual void                    MouseDown(BPoint point);
-       virtual void                    MouseUp(BPoint point);
-       virtual void                    MouseMoved(BPoint point, uint32 transit,
-                                                               const BMessage* 
dragMessage);
+       virtual void                            KeyDown(const char* bytes, 
int32 numBytes);
+       virtual void                            KeyUp(const char* bytes, int32 
numBytes);
+       virtual void                            MouseDown(BPoint point);
+       virtual void                            MouseUp(BPoint point);
+       virtual void                            MouseMoved(BPoint point, uint32 
transit,
+                                                                       const 
BMessage* dragMessage);
 
-       virtual void                    Draw(BRect updateRect);
-       virtual void                    MessageReceived(BMessage* message);
-       virtual void                    WindowActivated(bool active);
+       virtual void                            Draw(BRect updateRect);
+       virtual void                            MessageReceived(BMessage* 
message);
+       virtual void                            WindowActivated(bool active);
 
 private:
-       enum key_kind {
-               kNormalKey,
-               kSpecialKey,
-               kSymbolKey,
-               kIndicator
-       };
+                       enum key_kind {
+                               kNormalKey,
+                               kSpecialKey,
+                               kSymbolKey,
+                               kIndicator
+                       };
 
-                       void                    _InitOffscreen();
-                       void                    _LayoutKeyboard();
-                       void                    _DrawKeyButton(BView* view, 
BRect& rect,
-                                                               BRect 
updateRect, rgb_color base,
-                                                               rgb_color 
background, bool pressed);
-                       void                    _DrawKey(BView* view, BRect 
updateRect,
-                                                               const Key* key, 
BRect frame, bool pressed);
-                       void                    _DrawIndicator(BView* view, 
BRect updateRect,
-                                                               const 
Indicator* indicator, BRect rect,
-                                                               bool lit);
-                       const char*             _SpecialKeyLabel(const key_map& 
map, uint32 code,
-                                                               bool 
abbreviated = false);
-                       const char*             _SpecialMappedKeySymbol(const 
char* bytes,
-                                                               size_t 
numBytes);
-                       const char*             _SpecialMappedKeyLabel(const 
char* bytes,
-                                                               size_t 
numBytes, bool abbreviated = false);
-                       bool                    _FunctionKeyLabel(uint32 code, 
char* text,
-                                                               size_t 
textSize);
-                       void                    
_GetAbbreviatedKeyLabelIfNeeded(BView* view,
-                                                               BRect rect, 
const Key* key, char* text,
-                                                               size_t 
textSize);
-                       void                    _GetKeyLabel(const Key* key, 
char* text,
-                                                               size_t 
textSize, key_kind& keyKind);
-                       bool                    _IsKeyPressed(uint32 code);
-                       bool                    _KeyState(uint32 code) const;
-                       void                    _SetKeyState(uint32 code, bool 
pressed);
-                       Key*                    _KeyForCode(uint32 code);
-                       void                    _InvalidateKey(uint32 code);
-                       void                    _InvalidateKey(const Key* key);
-                       bool                    _HandleDeadKey(uint32 key, 
int32 modifiers);
-                       void                    _KeyChanged(const BMessage* 
message);
-                       Key*                    _KeyAt(BPoint point);
-                       BRect                   _FrameFor(BRect keyFrame);
-                       BRect                   _FrameFor(const Key* key);
-                       void                    _SetFontSize(BView* view, 
key_kind keyKind);
-                       void                    _EvaluateDropTarget(BPoint 
point);
-                       void                    _SendFakeKeyDown(const Key* 
key);
+                       void                            _InitOffscreen();
+                       void                            _LayoutKeyboard();
+                       void                            _DrawKeyButton(BView* 
view, BRect& rect,
+                                                                       BRect 
updateRect, rgb_color base,
+                                                                       
rgb_color background, bool pressed);
+                       void                            _DrawKey(BView* view, 
BRect updateRect,
+                                                                       const 
Key* key, BRect frame, bool pressed);
+                       void                            _DrawIndicator(BView* 
view, BRect updateRect,
+                                                                       const 
Indicator* indicator, BRect rect,
+                                                                       bool 
lit);
+                       const char*                     _SpecialKeyLabel(const 
key_map& map,
+                                                                       uint32 
code, bool abbreviated = false);
+                       const char*                     
_SpecialMappedKeySymbol(const char* bytes,
+                                                                       size_t 
numBytes);
+                       const char*                     
_SpecialMappedKeyLabel(const char* bytes,
+                                                                       size_t 
numBytes, bool abbreviated = false);
+                       bool                            
_FunctionKeyLabel(uint32 code, char* text,
+                                                                       size_t 
textSize);
+                       void                            
_GetAbbreviatedKeyLabelIfNeeded(BView* view,
+                                                                       BRect 
rect, const Key* key, char* text,
+                                                                       size_t 
textSize);
+                       void                            _GetKeyLabel(const Key* 
key, char* text,
+                                                                       size_t 
textSize, key_kind& keyKind);
+                       bool                            _IsKeyPressed(uint32 
code);
+                       bool                            _KeyState(uint32 code) 
const;
+                       void                            _SetKeyState(uint32 
code, bool pressed);
+                       Key*                            _KeyForCode(uint32 
code);
+                       void                            _InvalidateKey(uint32 
code);
+                       void                            _InvalidateKey(const 
Key* key);
+                       bool                            _HandleDeadKey(uint32 
key, int32 modifiers);
+                       void                            _KeyChanged(const 
BMessage* message);
+                       Key*                            _KeyAt(BPoint point);
+                       BRect                           _FrameFor(BRect 
keyFrame);
+                       BRect                           _FrameFor(const Key* 
key);
+                       void                            _SetFontSize(BView* 
view, key_kind keyKind);
+                       void                            
_EvaluateDropTarget(BPoint point);
+                       void                            _SendFakeKeyDown(const 
Key* key);
 
-                       BBitmap*                fOffscreenBitmap;
-                       BView*                  fOffscreenView;
+                       BBitmap*                        fOffscreenBitmap;
+                       BView*                          fOffscreenView;
 
-                       KeyboardLayout* fLayout;
-                       Keymap*                 fKeymap;
-                       BMessenger              fTarget;
-                       bool                    fEditable;
+                       KeyboardLayout*         fLayout;
+                       Keymap*                         fKeymap;
+                       BMessenger                      fTarget;
+                       bool                            fEditable;
 
-                       uint8                   fKeyState[16];
-                       int32                   fModifiers;
-                       int32                   fDeadKey;
-                       int32                   fButtons;
+                       uint8                           fKeyState[16];
+                       int32                           fModifiers;
+                       int32                           fDeadKey;
+                       int32                           fButtons;
 
-                       BPoint                  fClickPoint;
-                       Key*                    fDragKey;
-                       int32                   fDragModifiers;
-                       Key*                    fDropTarget;
-                       BPoint                  fDropPoint;
+                       BPoint                          fClickPoint;
+                       Key*                            fDragKey;
+                       int32                           fDragModifiers;
+                       Key*                            fDropTarget;
+                       BPoint                          fDropPoint;
 
-                       BSize                   fOldSize;
-                       BFont                   fFont;
-                       BFont                   fSpecialFont;
-                       float                   fBaseFontHeight;
-                       float                   fBaseFontSize;
-                       BPoint                  fOffset;
-                       float                   fFactor;
-                       float                   fGap;
+                       BSize                           fOldSize;
+                       BFont                           fFont;
+                       BFont                           fSpecialFont;
+                       float                           fBaseFontHeight;
+                       float                           fBaseFontSize;
+                       BPoint                          fOffset;
+                       float                           fFactor;
+                       float                           fGap;
 };
 
+
 #endif // KEYBOARD_LAYOUT_VIEW_H


Other related posts:

  • » [haiku-commits] r38201 - haiku/trunk/src/preferences/keymap - zooey