File: TODO

package info (click to toggle)
libkf5sane 20.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,596 kB
  • sloc: cpp: 9,261; sh: 11; makefile: 4
file content (49 lines) | stat: -rw-r--r-- 2,000 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
TODO list of new features:

* Cleanup the code for closing the device
* Progressive final scan: scan can provide huge image especially in 16 bits color depth.
Send image data to host application by block, not the whole image at once.



# KSaneCore (most signals/slots from KSaneWidget)
QList<KSaneOption*> options() const                                // handles to sane options
KSaneBasicOptions* createBasicOptions(QWidget *parent=0) const     // A widget with current "basic options"
KSaneSpecialOptions* createSpecialOptions(QWidget *parent=0) const // A widget with the rest of the options
void signalPreviewUpdated(QImage *img);

KSaneCore never displays popups and always emits userMessage like signals for user information


# KSaneOption
virtual QWidget* createWidget(QWidget* parent=0) const; // Create a KSaneOptionWidget and connect it to the option
QString saneName() const;                               // Technical name of the sane option
QString title() const;                                  // Translated option title
QString description() const;                            // Translated option description

Cleanup public API

# KSaneOptionWidget
Remove label and custom label size code

# KSaneBasicOptions(QWidget *parent=0)    // Use private header for basic/Special selection
bool loadOptions(const QList<KSaneOption*> &options)

# KSaneSpecialOptions(QWidget *parent=0)  // Use private header for basic/Special selection
bool loadOptions(const QList<KSaneOption*> &options)

# KSanePreview
Figure out how to minimize copying the image data to all possible preview widgets
void "connectToCore"(KSaneCore*)                        // connect to previewUpdated(..), scanProgress(), ...

# KSaneWidget
Use KSaneCore + KSaneBasicOptions + KSaneSpecialOptions + KSanePreview to create a GUI like the current
Forward userMessage signals if connected or popup a dialog


#General cleanup:
-> enum xxx { }; for easier signal/slot handling
float -> qreal

# Pure Qt library option?