SVN commit 729781 by dang: more sugar M +2 -1 TODO A bugs (directory) A bugs/doc-grip-resize.txt A bugs/undo-menu-crash.txt A bugs/unsafe-kmainwindow-memberlist-loop.txt M +7 -5 devel-doc/code-walk-thru/document/document.txt M +15 -0 devel-doc/testing/testing.txt --- branches/kolourpaint/control/TODO #729780:729781 @@ -33,7 +33,8 @@ you'll have to check "sync" too :( 4. See http://bugs.kde.org/. -5. See below: +5. Look in bugs/. +6. See below: 4.1. Docs --- branches/kolourpaint/control/devel-doc/code-walk-thru/document/document.txt #729780:729781 @@ -40,7 +40,10 @@ also specific text cursor parameters (such as the position within the text lines). +There is special handling for "kolourpaint doesnotexist.png" opening a +new document called "doesnotexist.png". + [>>>] kpDocumentSaveOptions Options for saving the kpDocument, stored in kpDocument and @@ -66,8 +69,7 @@ Now, let us suppose that instead of drawing a new document, the user opens an 8-bit document. This is converted to a kpImage, which is 24-bit, -without -any pixel colors being changed (you actually lose the 8-bit palette +without any pixel colors being changed (you actually lose the 8-bit palette though). So that if the user were to press "Save", the document will be saved as an 8-bit image, the "Color Depth" field of kpDocumentSaveOptionsWidget is set by kpDocument to 8-bit. Since the image @@ -76,9 +78,9 @@ more than 256 colors i.e. opening an 8-bit image and saving it straight back should not change the appearance of the image. This is why kpDocument will set the "Dither" boolean to false. The reason -If kpDocument had set -"Dither" to true, this would not have been lossless and repeatedly -opening and resaving the same document would make it progressively blurier. +If kpDocument had set "Dither" to true, this would not have been lossless and +repeatedly opening and resaving the same document would make it progressively +blurier. It cannot set the compression quality as Qt does not offer this information -- this is why, after opening a JPEG in KolourPaint, clicking "Save" brings --- branches/kolourpaint/control/devel-doc/testing/testing.txt #729780:729781 @@ -95,3 +95,18 @@ Steps: 1. Open a file whose format is supported for reading but not writing. 2. CTRL+S should bring up a file dialog. + + +Test 4 +------ + +Session restore with: +1. An new, untitled document. +2. Closed document (CTRL+W). +3. A normally opened document. + + +Test 5 +------ + +Hidden configuration options like "Open Images in the Same Window".