author | groucho <groucho> | 2003-04-11 14:48:19 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-04-11 14:48:19 (UTC) |
commit | d37f3eac6b876285eb7a03ab01194ea261458ea5 (patch) (unidiff) | |
tree | 47420d872c6d298db7e26715c80cf3aebb055033 /noncore/unsupported/mailit/addatt.h | |
parent | ebf5bb083d47179918d47f083a3cc98a5ed5d2e0 (diff) | |
download | opie-d37f3eac6b876285eb7a03ab01194ea261458ea5.zip opie-d37f3eac6b876285eb7a03ab01194ea261458ea5.tar.gz opie-d37f3eac6b876285eb7a03ab01194ea261458ea5.tar.bz2 |
Lots of improvements regarding usability and stability:
- Now uses ofileselector for sending attachments (reading follows, does not crash any more)
- Uses DocLnks for attachments (when composing a message)
- Beautified the attachments dialog with doc icons
- removed a crash when sending attachments and no account was set
- smaller fixes
ToDo:
- Attachment viewer should use doclnk too
- get rid of teh save button in ofileselector
- fix the bug with GMX mail provider sending mail (user encoding wrong)
- replace the Attach and Remove buttons with a nice toolbar
- Maybe integrate attview into the mail sending window on demand
- get rid of crashes
Diffstat (limited to 'noncore/unsupported/mailit/addatt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/addatt.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/noncore/unsupported/mailit/addatt.h b/noncore/unsupported/mailit/addatt.h index 867c905..73062e2 100644 --- a/noncore/unsupported/mailit/addatt.h +++ b/noncore/unsupported/mailit/addatt.h | |||
@@ -27,17 +27,20 @@ | |||
27 | #include <qstring.h> | 27 | #include <qstring.h> |
28 | #include <qfileinfo.h> | 28 | #include <qfileinfo.h> |
29 | #include <qstringlist.h> | 29 | #include <qstringlist.h> |
30 | #include <opie/ofileselector.h> | ||
31 | #include <qpe/applnk.h> | ||
30 | 32 | ||
31 | class FileItem : public QListViewItem | 33 | class FileItem : public QListViewItem |
32 | { | 34 | { |
33 | public: | 35 | public: |
34 | FileItem(QListView *parent, QFileInfo fileInfo, QString fileType); | 36 | //FileItem(QListView *parent, QFileInfo fileInfo, QString fileType); |
35 | QFileInfo getFileInfo(); | 37 | FileItem(QListView*, DocLnk*); |
36 | QString getFileType(); | 38 | ~FileItem(); |
37 | 39 | DocLnk* getDocLnk() {return doclnk;} | |
40 | |||
41 | |||
38 | private: | 42 | private: |
39 | QFileInfo file; | 43 | DocLnk* doclnk; |
40 | QString type; | ||
41 | }; | 44 | }; |
42 | 45 | ||
43 | class AddAtt : public QDialog | 46 | class AddAtt : public QDialog |
@@ -51,20 +54,23 @@ public: | |||
51 | void getFiles(); | 54 | void getFiles(); |
52 | void clear(); | 55 | void clear(); |
53 | 56 | ||
57 | |||
54 | public slots: | 58 | public slots: |
55 | void fileCategorySelected(int); | 59 | //void fileCategorySelected(int); |
56 | void addAttatchment(); | 60 | void addAttatchment(); |
57 | void removeAttatchment(); | 61 | void removeAttatchment(); |
58 | void reject(); | 62 | void reject(); |
59 | void accept(); | 63 | void accept(); |
60 | 64 | ||
61 | private: | 65 | private: |
62 | FileItem *item; | 66 | FileItem* item; |
63 | QListView *listView, *attView; | 67 | QListView *attView; |
64 | QPushButton *fileCategoryButton, *attatchButton, *removeButton; | 68 | QPushButton *fileCategoryButton, *attatchButton, *removeButton; |
65 | QPopupMenu *fileCategories; | 69 | QPopupMenu *fileCategories; |
66 | bool modified; | 70 | bool modified; |
67 | QFileInfo *fi; | 71 | QFileInfo *fi; |
72 | |||
73 | OFileSelector* ofs; | ||
68 | }; | 74 | }; |
69 | 75 | ||
70 | #endif | 76 | #endif |