kshowmailview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kshowmailview.h  -  description
00003                              -------------------
00004     begin                : Sat May  6 12:13:57 MEST 2000
00005     copyright            : (C) 2000-2001 by Eggert Ehmke
00006     email                : eggert.ehmke@berlin.de
00007 
00008     26 Sep 2002 - Allow for columns to be hidden. Allistar Melville
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef KSHOWMAILVIEW_H
00021 #define KSHOWMAILVIEW_H
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include <config.h>
00025 #endif
00026 
00027 //TQt headers
00028 #include <ntqwidget.h>
00029 #include <ntqsplitter.h>
00030 #include <ntqcursor.h>
00031 #include <ntqpopupmenu.h>
00032 
00033 //KDE headers
00034 #include <tdelistview.h>
00035 #include <tdeconfig.h>
00036 #include <tdeapplication.h>
00037 
00038 //KShowmail headers
00039 #include "configlist.h"
00040 #include "showlistviewitem.h"
00041 
00042 
00043 
00044 class ConfigList;
00045 class KshowmailDoc;
00046 
00057 class KshowmailView : public TQSplitter
00058 {
00059   Q_OBJECT
00060   public:
00062     KshowmailView(TQWidget *parent = 0, const char *name=0);
00064     ~KshowmailView();
00065                 void saveOptions (TDEConfig* config);
00066 
00067                 TDEListView* m_pListAccounts;
00068                 TDEListView* m_pListMessages;
00069 
00073     void clearMailListView();
00074 
00090     ShowListViewItem* insertMail( TQString& number, TQString& account, TQString& from, TQString& to, TQString& subject, TQString& date, TQString& size, TQString& content, TQString& state, TQString& time );
00091 
00098     void refreshSetup();
00099 
00100   private:
00101 
00102     TQPixmap* m_pixOk;
00103 
00107     TDEConfig* config;
00108 
00112     void readOptions();
00113 
00114 private slots:
00115 
00122   void slotMessageContext( TQListViewItem*, const TQPoint&, int );
00123 
00124         void slotMessageDoubleClicked (TQListViewItem*);
00125         void slotMessageClicked (TQListViewItem*);
00126 
00133   void slotAccountContext( TQListViewItem*, const TQPoint &, int );
00134 
00139   void slotAccountClicked( TQListViewItem*, const TQPoint& point, int col );
00140 
00141 signals:
00142         void signalActiveChanged ();
00143 };
00144 
00145 #endif // KSHOWMAILVIEW_H

Generated on Tue Apr 1 21:59:49 2008 for kshowmail.tdevelop by  doxygen 1.5.0