libkdepim
kincidencechooser.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KINCIDENCECHOOSER_H
00025 #define _KINCIDENCECHOOSER_H
00026
00027 #include "calendardiffalgo.h"
00028 #include "htmldiffalgodisplay.h"
00029
00030 #include <kdialogbase.h>
00031
00032 namespace KCal {
00033 class Incidence;
00034 }
00035 using namespace KCal;
00036
00037 class QButtonGroup;
00038
00042 class KDE_EXPORT KIncidenceChooser : public KDialog
00043 {
00044 Q_OBJECT
00045 public:
00046 enum mode {
00047 local, remote, newest, ask, both
00048 };
00050 KIncidenceChooser( QWidget *parent=0, char *name=0 );
00051 ~KIncidenceChooser();
00052
00053 void setIncidence( Incidence *, Incidence * );
00054 Incidence *getIncidence();
00055 static int chooseMode;
00056
00057 public slots:
00058 void useGlobalMode();
00059
00060 protected slots:
00061 void showIncidence1();
00062 void showIncidence2();
00063 void showDiff();
00064 void takeIncidence1();
00065 void takeIncidence2();
00066 void takeBoth();
00067 void setLabels();
00068 void setSyncMode();
00069 void detailsDialogClosed();
00070
00071 private:
00072 KPIM::HTMLDiffAlgoDisplay *mDisplayDiff;
00073 KPIM::CalendarDiffAlgo *diff;
00074 KDialogBase *mTbL, *mTbN;
00075 Incidence *mSelIncidence;
00076 Incidence *mInc1, *mInc2;
00077 QButtonGroup *mBg;
00078 QPushButton *mDiffBut,*mShowDetails1,*mShowDetails2;
00079 QLabel *mInc1lab, *mInc2lab,* mInc1Sumlab, *mInc2Sumlab,*mMod1lab,*mMod2lab;
00080
00081 };
00082
00083 #endif
|