OpendTect-6_4  6.4
uivirtualkeyboard.h
Go to the documentation of this file.
1 #ifndef uivirtualkeyboard_h
2 #define uivirtualkeyboard_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Jaap Glas
9  Date: October 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "uimainwin.h"
17 
18 
19 class uiGraphicsViewBase;
20 class uiLineEdit;
21 class uiGraphicsItemSet;
22 
23 
26 public:
27  uiVirtualKeyboard(uiObject&,int x,int y);
29 
30  bool enterPressed() const;
31 
32  static bool isVirtualKeyboardActive();
33 
34  static const char* sKeyEnabVirtualKeyboard();
35  static bool isVirtualKeyboardEnabled();
36 
37 protected:
38 
39  void clickCB(CallBacker*);
40  void exitCB(CallBacker*);
41 
42  void updateKeyboard();
43  void updateInputObj();
44 
46  int globalx_;
47  int globaly_;
49 
52 
53  void addLed(float x,float y,const Color&);
54  void updateLeds();
56 
57  bool capslock_;
58  bool shiftlock_;
59  bool ctrllock_;
60  bool altlock_;
61  bool shift_;
62  bool ctrl_;
63  bool alt_;
64 
65  void enterCB(CallBacker*);
67 
68  void selChg(CallBacker*);
69  void restoreSelection();
72 };
73 
74 
75 #endif
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
bool shift_
Definition: uivirtualkeyboard.h:61
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uigraphicsviewbase.h:28
The base class for most UI elements.
Definition: uiobj.h:38
int globaly_
Definition: uivirtualkeyboard.h:47
bool ctrl_
Definition: uivirtualkeyboard.h:62
float keyboardscale_
Definition: uivirtualkeyboard.h:48
bool altlock_
Definition: uivirtualkeyboard.h:60
Definition: uivirtualkeyboard.h:24
bool alt_
Definition: uivirtualkeyboard.h:63
uiObject & inputobj_
Definition: uivirtualkeyboard.h:45
uiLineEdit * textline_
Definition: uivirtualkeyboard.h:51
bool ctrllock_
Definition: uivirtualkeyboard.h:59
bool enterpressed_
Definition: uivirtualkeyboard.h:66
int globalx_
Definition: uivirtualkeyboard.h:46
int selectionlength_
Definition: uivirtualkeyboard.h:71
bool capslock_
Definition: uivirtualkeyboard.h:57
Definition: uigraphicsitem.h:142
uiGraphicsItemSet * leds_
Definition: uivirtualkeyboard.h:55
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Definition: uilineedit.h:51
bool shiftlock_
Definition: uivirtualkeyboard.h:58
uiGraphicsViewBase * viewbase_
Definition: uivirtualkeyboard.h:50
int selectionstart_
Definition: uivirtualkeyboard.h:70

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019