author | alwin <alwin> | 2005-03-12 02:17:39 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-12 02:17:39 (UTC) |
commit | 4c3ce64f6816353f5b8bc268c126d7c53d18ce46 (patch) (unidiff) | |
tree | 1489d76901c287b527ac8fc78b5bbb1179d7110d | |
parent | c30ae1086dfe8bebe1790161ba7df6c5472ded9f (diff) | |
download | opie-4c3ce64f6816353f5b8bc268c126d7c53d18ce46.zip opie-4c3ce64f6816353f5b8bc268c126d7c53d18ce46.tar.gz opie-4c3ce64f6816353f5b8bc268c126d7c53d18ce46.tar.bz2 |
pixmaps
-rw-r--r-- | noncore/net/mail/accountitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/accountitem.cpp b/noncore/net/mail/accountitem.cpp index 4869df8..10db2c6 100644 --- a/noncore/net/mail/accountitem.cpp +++ b/noncore/net/mail/accountitem.cpp | |||
@@ -886,65 +886,65 @@ MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , QLis | |||
886 | mbox = parent; | 886 | mbox = parent; |
887 | initName(); | 887 | initName(); |
888 | } | 888 | } |
889 | 889 | ||
890 | MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, QListViewItem*after, MHviewItem*master) | 890 | MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, QListViewItem*after, MHviewItem*master) |
891 | : AccountViewItem(folderInit, parent,after ) | 891 | : AccountViewItem(folderInit, parent,after ) |
892 | { | 892 | { |
893 | folder = folderInit; | 893 | folder = folderInit; |
894 | mbox = master; | 894 | mbox = master; |
895 | initName(); | 895 | initName(); |
896 | } | 896 | } |
897 | 897 | ||
898 | void MHfolderItem::initName() | 898 | void MHfolderItem::initName() |
899 | { | 899 | { |
900 | QString bName = folder->getDisplayName(); | 900 | QString bName = folder->getDisplayName(); |
901 | if (bName.startsWith("/")&&bName.length()>1) | 901 | if (bName.startsWith("/")&&bName.length()>1) |
902 | { | 902 | { |
903 | bName.replace(0,1,""); | 903 | bName.replace(0,1,""); |
904 | } | 904 | } |
905 | int pos = bName.findRev("/"); | 905 | int pos = bName.findRev("/"); |
906 | if (pos > 0) | 906 | if (pos > 0) |
907 | { | 907 | { |
908 | bName.replace(0,pos+1,""); | 908 | bName.replace(0,pos+1,""); |
909 | } | 909 | } |
910 | if (bName.lower() == "outgoing") | 910 | if (bName.lower() == "outgoing") |
911 | { | 911 | { |
912 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); | 912 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); |
913 | } | 913 | } |
914 | else if (bName.lower() == "inbox") | 914 | else if (bName.lower() == "inbox") |
915 | { | 915 | { |
916 | setPixmap( 0, PIXMAP_INBOXFOLDER); | 916 | setPixmap( 0, PIXMAP_INBOXFOLDER); |
917 | } else if (bName.lower() == "drafts") { | 917 | } else if (bName.lower() == "drafts") { |
918 | setPixmap(0, Resource::loadPixmap("inline/edit")); | 918 | setPixmap(0, Resource::loadPixmap("edit")); |
919 | } else { | 919 | } else { |
920 | setPixmap( 0, PIXMAP_MBOXFOLDER ); | 920 | setPixmap( 0, PIXMAP_MBOXFOLDER ); |
921 | } | 921 | } |
922 | setText( 0, bName ); | 922 | setText( 0, bName ); |
923 | } | 923 | } |
924 | 924 | ||
925 | const FolderP&MHfolderItem::getFolder()const | 925 | const FolderP&MHfolderItem::getFolder()const |
926 | { | 926 | { |
927 | return folder; | 927 | return folder; |
928 | } | 928 | } |
929 | 929 | ||
930 | void MHfolderItem::refresh(QValueList<RecMailP>&target) | 930 | void MHfolderItem::refresh(QValueList<RecMailP>&target) |
931 | { | 931 | { |
932 | if (folder->may_select()) | 932 | if (folder->may_select()) |
933 | mbox->getWrapper()->listMessages( folder->getName(),target ); | 933 | mbox->getWrapper()->listMessages( folder->getName(),target ); |
934 | } | 934 | } |
935 | 935 | ||
936 | RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) | 936 | RECBODYP MHfolderItem::fetchBody(const RecMailP&aMail) |
937 | { | 937 | { |
938 | return mbox->getWrapper()->fetchBody(aMail); | 938 | return mbox->getWrapper()->fetchBody(aMail); |
939 | } | 939 | } |
940 | 940 | ||
941 | void MHfolderItem::deleteFolder() | 941 | void MHfolderItem::deleteFolder() |
942 | { | 942 | { |
943 | int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), | 943 | int yesno = QMessageBox::warning(0,QObject::tr("Delete folder",contextName), |
944 | QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), | 944 | QObject::tr("<center>Realy delete folder <br><b>%1</b><br>and all if it content?</center>",contextName).arg(folder->getDisplayName()), |
945 | QObject::tr("Yes",contextName), | 945 | QObject::tr("Yes",contextName), |
946 | QObject::tr("No",contextName),QString::null,1,1); | 946 | QObject::tr("No",contextName),QString::null,1,1); |
947 | odebug << "Auswahl: " << yesno << "" << oendl; | 947 | odebug << "Auswahl: " << yesno << "" << oendl; |
948 | if (yesno == 0) | 948 | if (yesno == 0) |
949 | { | 949 | { |
950 | if (mbox->getWrapper()->deleteMbox(folder)) | 950 | if (mbox->getWrapper()->deleteMbox(folder)) |