diff options
author | Gergo Mocsi <gmocsi91@gmail.com> | 2013-07-17 15:54:13 +0200 |
---|---|---|
committer | Gergo Mocsi <gmocsi91@gmail.com> | 2013-09-02 18:16:45 +0200 |
commit | 728bc0518bd9ddd4564393b293a24e0a66a50ff5 (patch) | |
tree | bfb3e17f3673dfb6ec317559c36363ac01184432 /basctl/source/basicide/baside2.hxx | |
parent | d03f3cd4766483888c016fa9881a5383d97f1f2f (diff) |
GSOC work Window appearance fix 2 + code fixes
Added a function to select the first entry in the ListBox by default.
Selected entry can be inserted with the ENTER key.
Fixed some code in basic code generation class (SbiCodeGen).
Change-Id: Ia6eb43ee5661a0a3ae0b738b619f19972f019eac
Diffstat (limited to 'basctl/source/basicide/baside2.hxx')
-rw-r--r-- | basctl/source/basicide/baside2.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index c0d93aa2db16..51a130cdac18 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -116,9 +116,7 @@ private: GetComponentInterface(sal_Bool bCreate = true); std::vector< CodeCompleteData > aCodeCompleteCache; CodeCompleteWindow* pCodeCompleteWnd; - //CodeCompleteListBox* aListBox; OUString GetActualSubName( sal_uLong nLine ); // gets the actual subroutine name according to line number - std::vector< OUString > Split( const OUString& sStr, const sal_Unicode& aChar ); protected: virtual void Paint( const Rectangle& ); @@ -482,7 +480,6 @@ private: CodeCompleteListBox* pListBox; void InitListBox(); // initialize the ListBox - //DECL_LINK(ImplDoubleClickHdl, void*); public: CodeCompleteWindow( EditorWindow* pPar ); @@ -493,6 +490,7 @@ public: void SetTextSelection( const TextSelection& aSel ); const TextSelection& GetTextSelection() const; void ResizeListBox(); + void SelectFirstEntry(); //selects first entry in ListBox protected: virtual void KeyInput( const KeyEvent& rKeyEvt ); @@ -506,7 +504,8 @@ private: public: CodeCompleteListBox(CodeCompleteWindow* pPar); virtual ~CodeCompleteListBox(); - //DECL_LINK(ImplSelectHdl, void*); + void InsertSelectedEntry(); //insert the selected entry + DECL_LINK(ImplDoubleClickHdl, void*); virtual long PreNotify( NotifyEvent& rNEvt ); |