diff options
author | Tomcsik Bence <tomcsikbence@gmail.com> | 2012-03-11 21:40:02 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-03-11 21:49:13 +0100 |
commit | 0e8eb19a53338c83dab7fe19e2f23bcaecd52077 (patch) | |
tree | d316dfd8f51a5368375139fc6a478c9ea6cdb86a /basctl/source/basicide/baside2b.cxx | |
parent | f32fe9f5012e3ee184e1a1fca6814bee9105d8fb (diff) |
Object Catalog pane in Basic IDE
Object Catalog was a floating window. It has been converted to a fixed
pane on the right hand side of the editor window. While it is a
BasicDockingWindow, at the moment it is not possible to undock, move,
or resize it. Also, the Object Catalog toolbar button does not show
the visibility status of the pane, ideally it should look pressed, when
the Object Catalog pane is visible. Another missing feature is that
the Object Catalog pane cannot be switched on together with the
dialog editor.
Diffstat (limited to 'basctl/source/basicide/baside2b.cxx')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index b7e394c91cb3..67c2a75e9fda 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1658,7 +1658,8 @@ ComplexEditorWindow::ComplexEditorWindow( ModulWindow* pParent ) : aLineNumberWindow( this, pParent ), aEdtWindow( this ), aEWVScrollBar( this, WB_VSCROLL | WB_DRAG ), - bLineNumberDisplay(false) + bLineNumberDisplay(false), + bObjectCatalogDisplay(true) { aEdtWindow.SetModulWindow( pParent ); aBrkWindow.SetModulWindow( pParent ); @@ -1681,23 +1682,24 @@ void ComplexEditorWindow::Resize() long nSBWidth = aEWVScrollBar.GetSizePixel().Width(); Size aBrkSz(nBrkWidth, aSz.Height()); - aBrkWindow.SetPosSizePixel( Point( DWBORDER, DWBORDER ), aBrkSz ); Size aLnSz(aLineNumberWindow.GetWidth(), aSz.Height()); - aLineNumberWindow.SetPosSizePixel(Point(DWBORDER+aBrkSz.Width() - 1, DWBORDER), aLnSz); if(bLineNumberDisplay) { + aBrkWindow.SetPosSizePixel( Point( DWBORDER, DWBORDER ), aBrkSz ); + aLineNumberWindow.SetPosSizePixel(Point(DWBORDER + aBrkSz.Width() - 1, DWBORDER), aLnSz); Size aEWSz(aSz.Width() - nBrkWidth - aLineNumberWindow.GetWidth() - nSBWidth + 2, aSz.Height()); - aEdtWindow.SetPosSizePixel( Point( DWBORDER+aBrkSz.Width()+aLnSz.Width()-1, DWBORDER ), aEWSz ); + aEdtWindow.SetPosSizePixel( Point( DWBORDER + aBrkSz.Width() + aLnSz.Width() - 1, DWBORDER ), aEWSz ); } else { - Size aEWSz(aSz.Width() - nBrkWidth - nSBWidth + 1, aSz.Height()); + aBrkWindow.SetPosSizePixel( Point( DWBORDER, DWBORDER ), aBrkSz ); + Size aEWSz(aSz.Width() - nBrkWidth - nSBWidth + 2, aSz.Height()); aEdtWindow.SetPosSizePixel(Point(DWBORDER + aBrkSz.Width() - 1, DWBORDER), aEWSz); } - aEWVScrollBar.SetPosSizePixel( Point( aOutSz.Width()-DWBORDER-nSBWidth, DWBORDER ), Size( nSBWidth, aSz.Height() ) ); + aEWVScrollBar.SetPosSizePixel( Point( aOutSz.Width() - DWBORDER - nSBWidth, DWBORDER ), Size( nSBWidth, aSz.Height() ) ); } IMPL_LINK( ComplexEditorWindow, ScrollHdl, ScrollBar *, pCurScrollBar ) @@ -1734,15 +1736,18 @@ void ComplexEditorWindow::DataChanged(DataChangedEvent const & rDCEvt) void ComplexEditorWindow::SetLineNumberDisplay(bool b) { - if(b == bLineNumberDisplay) - return; + bLineNumberDisplay = b; + Resize(); if(b) aLineNumberWindow.Show(); else aLineNumberWindow.Hide(); +} - bLineNumberDisplay = b; +void ComplexEditorWindow::SetObjectCatalogDisplay(bool b) +{ + bObjectCatalogDisplay = b; Resize(); } |