User: vg Date: 05/03/10 08:44:57 Modified: /dba/dbaccess/source/ui/app/ AppDetailView.hxx
Log: INTEGRATION: CWS dba24 (1.6.4); FILE MERGED 2005/02/11 12:32:21 oj 1.6.4.2: #i42473# clear description as ell when changing to another categorie 2005/02/01 15:48:52 fs 1.6.4.1: #i41822# some more appealing layout for the task pane File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppDetailView.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailView.hxx?r1=1.6&r2=1.7 Delta lines: +26 -1 -------------------- --- AppDetailView.hxx 21 Jan 2005 17:07:10 -0000 1.6 +++ AppDetailView.hxx 10 Mar 2005 16:44:54 -0000 1.7 @@ -109,12 +109,37 @@ class OCreationList : public SvTreeListBox { OTasksWindow* m_pTaskWindow; + + // members related to drawing the currently hovered/selected entry + SvLBoxEntry* m_pMouseDownEntry; + SvLBoxEntry* m_pLastActiveEntry; + Color m_aOriginalBackgroundColor; + Font m_aOriginalFont; + public: OCreationList(OTasksWindow* _pParent); // window overloads virtual void MouseMove( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt ); + virtual void MouseButtonUp( const MouseEvent& rMEvt ); virtual void KeyInput( const KeyEvent& rKEvt ); + virtual void Paint( const Rectangle& rRect ); + virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel ); + virtual void GetFocus(); + virtual void LoseFocus(); + + void updateHelpText(); + + protected: + virtual void PreparePaint( SvLBoxEntry* _pEntry ); + virtual Rectangle GetFocusRect( SvLBoxEntry* _pEntry, long _nLine ); + + private: + void onSelected( SvLBoxEntry* _pEntry ) const; + /** sets a new current entry, and invalidates the old and the new one, if necessary + @return <TRUE/> if and only if the "current entry" changed + */ + bool setCurrentEntryInvalidate( SvLBoxEntry* _pEntry ); }; typedef ::std::pair< ::rtl::OUString,USHORT> TResourcePair; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
