You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.4 KiB
121 lines
2.4 KiB
// KMComposeWin header file |
|
#ifndef __KMComposeWin |
|
#define __KMComposeWin |
|
#include <iostream.h> |
|
#include <qwidget.h> |
|
#include <qlined.h> |
|
#include <qmlined.h> |
|
#include <qlabel.h> |
|
#include <qpixmap.h> |
|
#include <qlayout.h> |
|
#include <qgrpbox.h> |
|
#include <qbttngrp.h> |
|
#include <qradiobt.h> |
|
#include <qkeycode.h> |
|
#include <qaccel.h> |
|
#include <qprinter.h> |
|
#include <qregexp.h> |
|
#include <qlist.h> |
|
#include "KEdit.h" |
|
#include <ktopwidget.h> |
|
#include <kmenubar.h> |
|
#include <ktoolbar.h> |
|
#include <kapp.h> |
|
#include <kmsgbox.h> |
|
#include "ktablistbox.h" |
|
#include "mclass.h" |
|
#include <qpainter.h> |
|
#define FORWARD 0 |
|
#define REPLY 1 |
|
#define REPLYALL 2 |
|
|
|
class KMAttachmentItem // for Attachment Widget |
|
{ |
|
public: |
|
KMAttachmentItem(QString fileName =0, int index = 0); |
|
QString fileName; |
|
int index; |
|
}; |
|
|
|
class KMComposeView : public QWidget |
|
{ |
|
Q_OBJECT |
|
public: |
|
KMComposeView(QWidget *parent=0,const char *name=0,QString emailAddress=0, Message *message=0, int action =0); |
|
~KMComposeView(); |
|
KEdit *editor; |
|
private: |
|
QLineEdit *fromLEdit; |
|
QLineEdit *toLEdit; |
|
QLineEdit *subjLEdit; |
|
QLineEdit *ccLEdit; |
|
Message *currentMessage; |
|
KTabListBox *attWidget; |
|
QString SMTPServer; |
|
QString EMailAddress; |
|
QList<KMAttachmentItem> attachmentList; |
|
int indexAttachment; |
|
|
|
public slots: |
|
void sendIt(); |
|
void sendNow(); |
|
void printIt(); |
|
void find(); |
|
void attachFile(); |
|
|
|
private slots: |
|
void undoEvent(); |
|
void copyText(); |
|
void cutText(); |
|
void pasteText(); |
|
void markAll(); |
|
void toDo(); |
|
void newComposer(); |
|
void appendSignature(); |
|
void parseConfiguration(); |
|
void forwardMessage(); |
|
void replyMessage(); |
|
void replyAll(); |
|
void detachFile(int,int); |
|
void insertFile(); |
|
protected: |
|
virtual void resizeEvent(QResizeEvent *); |
|
}; |
|
|
|
class KMComposeWin : public KTopLevelWidget |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
KMComposeWin(QWidget *parent = 0, const char *name = 0, QString emailAddress=0, Message *message=0, int action = 0); |
|
private: |
|
KToolBar *toolBar; |
|
KMenuBar *menuBar; |
|
KMComposeView *composeView; |
|
void setupMenuBar(); |
|
void setupToolBar(); |
|
bool toolBarStatus, sigStatus, sendButton; |
|
QWidget *setWidget; |
|
QRadioButton *isLater; |
|
QRadioButton *manualSig; |
|
private slots: |
|
void abort(); |
|
void invokeHelp(); |
|
void about(); |
|
void toDo(); |
|
void parseConfiguration(); |
|
void doNewMailReader(); |
|
void toggleToolBar(); |
|
//void setSettings(); |
|
//void applySettings(); |
|
//void cancelSettings(); |
|
protected: |
|
virtual void closeEvent(QCloseEvent *); |
|
friend class KMComposeView; |
|
}; |
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|