~neon/kolourpaint/master

  • Committer: Clarence Dang
  • Date: 2005-02-02 11:06:42 UTC
  • Revision ID: git-v1:56f541734abf70dc3505663c20dccce8ca8b77f9
Add View / Zoomed Thumbnail Mode, View / Enable Thumbnail Rectangle; Refactor and document kpView

Backend:
* kpthumbnail.cpp
  - setView() now accepts null param (setWidget() doesn't support this -
    had to manually use boxLayout())
  - note TODO
* kpview.cpp
  - new header guard style
  - store all vars in d-ptr struct and remove #include's; hides impl, speeds compile
  - document API
  - split lazy kpMainWindow ptr
  - support buddyView() & buddyViewScrollView() mainly for thumbnail
  - add public origin()/setOrigin()
  - add showBuddyViewScrollViewRectangle() and friends (mainly for thumbnail
    rectangle feature)
  - rename kpView::zoom(ViewToDoc|DocToView) to
    kpView::transform(ViewToDoc|DocToView) so that name includes origin
    translation (not just zooming)
  - add zoomedDoc(Width|Height)()
  - refactor kpView:
    - add pure virtual adjustToEnvironment() impl for new view classes
    - kpView now becomes a wonderfully clean base
    - factor out "autoVariableZoom" into kpzoomedthumbnail.cpp; no more
      confusion about which class (kpView, kpViewManager, kpThumbnail) has
      what responsibility, reduce chance of stale state if changing
      e.g. autoVariableZoom
    - since kpView now abstract, ordinary zoomed main view moves to
      kpZoomedView
    - add abstract kpThumbnailView base derived from kpView (adds
      setMaskToCoverDocument() for changing origin, calls
      adjustToEnvironment() on resize, adds pure virtual caption()
      for kpThumbnail window)
      - add kpUnzoomedThumbnailView for new Unzoomed Thumbnail Mode
      - add kpZoomedThumbnailView that contains all the "autoVariableZoom"
        logic that was all over the place
  - add originChanged() signal
  - move in kpMainWindow::drawTransparentBackground() to reduce
    coincidental coupling and make it static
  - remove m_needBorder (not needed thanks to origin() and rounding down
    behaviour of zoomedDoc(Width|Height)())
  - remove unused m_docToViewMatrix
  - kpView::showGrid() checks canShowGrid()
  - update style
  - in event handlers, check for tool() before deref (just in case)
  - actually blink text cursor if thumbnail window has focus
    (needs BACKPORT)
* kpviewmanager.cpp
  - add activeView()
  - add updateViewRectangleEdges()
  - remove resizeViews() which incorrectly had business logic of view type;
    add adjustViewsToEnvironment() which calls logic in pure virtual
    kpView::adjustToEnvironment()
* kpviewscrollablecontainer.cpp
  - add contents[XY]Soon(), signal contentsMovingSoon() to work around
    braindead QScrollView::contentsMoving(int,int) signal (when this
    QScrollView signal is fired, contents[XY]() still report old values
    because QScrollView hasn't scrolled yet; there should be a
    QScrollView::contentsMoved(int,int) IMO; no, we can't just use a
    single shot timer - can take forever to fire as seen from drag scrolling)
  - add resized() signal
* add kpToolControllerIface that gives currently selected tool
  - kpToolToolBar implements
  - used by kpView's kpMainWindow ptr splitting
* kpmainwindow_view.cpp
  - add note about setUpdatesEnabled(), debug

svn path=/trunk/kdegraphics/kolourpaint/; revision=385271
Filename Latest Rev Last Changed Committer Comment Size
..
kpcolorsimilaritycube.cpp 644 19 years ago Clarence Dang CVS_SILENT -comment svn path=/trunk/kdegraphics/k 10.2 KB Diff Download File
kpcolorsimilaritycube.h 472 19 years ago Clarence Dang - add Colour Box's Colour Similarity Cube's WhatsT 2.4 KB Diff Download File
kpcolorsimilaritydialog.cpp 617 19 years ago Clarence Dang -double margin svn path=/trunk/kdegraphics/kolour 4.2 KB Diff Download File
kpcolorsimilaritydialog.h 472 19 years ago Clarence Dang - add Colour Box's Colour Similarity Cube's WhatsT 2.1 KB Diff Download File
kpcolortoolbar.cpp 710 19 years ago Clarence Dang Add View / Zoomed Thumbnail Mode, View / Enable Th 28.1 KB Diff Download File
kpcolortoolbar.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 8.1 KB Diff Download File
kpresizesignallinglabel.cpp 646 19 years ago Clarence Dang CVS_SILENT -debug svn path=/trunk/kdegraphics/kol 2.2 KB Diff Download File
kpresizesignallinglabel.h 559 19 years ago Clarence Dang factor out kpResizeSignallingLabel svn path=/trun 1.7 KB Diff Download File
kpsqueezedtextlabel.cpp 430 20 years ago Clarence Dang catch nonstandalone headers svn path=/trunk/kdegr 6.3 KB Diff Download File
kpsqueezedtextlabel.h 311 20 years ago Clarence Dang Add possiblity to not show ellipsis i.e. just trun 2.1 KB Diff Download File
kptooltoolbar.cpp 710 19 years ago Clarence Dang Add View / Zoomed Thumbnail Mode, View / Enable Th 15.1 KB Diff Download File
kptooltoolbar.h 710 19 years ago Clarence Dang Add View / Zoomed Thumbnail Mode, View / Enable Th 4.7 KB Diff Download File
kptoolwidgetbase.cpp 597 19 years ago Clarence Dang CVS_SILENT -debug svn path=/trunk/kdegraphics/kol 15.8 KB Diff Download File
kptoolwidgetbase.h 480 19 years ago Clarence Dang Associate actions with all tools and tool options. 3.5 KB Diff Download File
kptoolwidgetbrush.cpp 692 19 years ago Dirk Mueller fix compile (gcc 4.0) svn path=/trunk/kdegraphics 5.1 KB Diff Download File
kptoolwidgetbrush.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 1.9 KB Diff Download File
kptoolwidgeterasersize.cpp 692 19 years ago Dirk Mueller fix compile (gcc 4.0) svn path=/trunk/kdegraphics 4.5 KB Diff Download File
kptoolwidgeterasersize.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 1.9 KB Diff Download File
kptoolwidgetfillstyle.cpp 692 19 years ago Dirk Mueller fix compile (gcc 4.0) svn path=/trunk/kdegraphics 6.2 KB Diff Download File
kptoolwidgetfillstyle.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 2.7 KB Diff Download File
kptoolwidgetlinewidth.cpp 692 19 years ago Dirk Mueller fix compile (gcc 4.0) svn path=/trunk/kdegraphics 3.2 KB Diff Download File
kptoolwidgetlinewidth.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 1.7 KB Diff Download File
kptoolwidgetopaqueortransparent.cpp 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 3.1 KB Diff Download File
kptoolwidgetopaqueortransparent.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 1.9 KB Diff Download File
kptoolwidgetspraycansize.cpp 692 19 years ago Dirk Mueller fix compile (gcc 4.0) svn path=/trunk/kdegraphics 3.5 KB Diff Download File
kptoolwidgetspraycansize.h 432 20 years ago Clarence Dang On KolourPaint startup, set the tool options to th 1.8 KB Diff Download File
Makefile.am 710 19 years ago Clarence Dang Add View / Zoomed Thumbnail Mode, View / Enable Th 697 bytes Diff Download File