* kpDocument changes # getPixmapFromFile(): return <mimeType> as ptr not ref…

Authored by Clarence Dang <dang@kde.org> on Jun 4 2004, 12:27 PM.

Description

  • kpDocument changes # getPixmapFromFile(): return <mimeType> as ptr not ref - clearer # add setURL() & isFromURL() # add constructorWidth() & constructorHeight() to assist with "reloading" an empty document # add comment warning for open() # prepare for JPEG quality() # add d-ptr for reduce compile time hack (not BC)
  • kpMainWindow
    1. permit "reloading" of an empty document (now F5 consistently returns you to a clean state which is more usable)
    2. handle cases when kolourpaint "opened" a <filedoesntexist> and so doesn't actually have a URL even though kpDocument::url() returns one (using new kpDocument::isFromURL()):
      • don't add <filedoesntexist> to recent files
      • improve reload: % recreate empty doc if doc doesn't come from URL (and URL hasn't magically appeared) % PREVENT DATA LOSS: don't reload if the doc is supposed to have a URL but it disappeared % reduce flicker by using fewer setDocument() calls
      • don't mail or set-as-wallpaper URL that doesn't exist

svn path=/trunk/kdegraphics/kolourpaint/; revision=317618

Details

Committed
Clarence Dang <dang@kde.org>Jun 4 2004, 12:27 PM
Parents
R374:a2d99bcec594: space issue fixed in kprinter some time ago; guard debug
Branches
Unknown
Tags
Unknown
Clarence Dang <dang@kde.org> committed R374:94b005fa72fb: * kpDocument changes # getPixmapFromFile(): return <mimeType> as ptr not ref… (authored by Clarence Dang <dang@kde.org>).Jun 4 2004, 12:27 PM