* kpDocument changes

Description

  • kpDocument changes
    1. getPixmapFromFile(): return <mimeType> as ptr not ref - clearer
    2. add setURL() & isFromURL()
    3. add constructorWidth() & constructorHeight() to assist with "reloading" an empty document
    4. add comment warning for open()
    5. prepare for JPEG quality()
    6. 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

Details

Committed
dangJun 4 2004, 12:27 PM
Parents
R883:317617: translated by zha team
Branches
Unknown
Tags
Unknown