libtdepim

kincidencechooser.h
1 /*
2  This file is part of libtdepim.
3 
4  Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of TQt, and distribute the resulting executable,
22  without including the source code for TQt in the source distribution.
23 */
24 #ifndef _KINCIDENCECHOOSER_H
25 #define _KINCIDENCECHOOSER_H
26 
27 #include "calendardiffalgo.h"
28 #include "htmldiffalgodisplay.h"
29 
30 #include <kdialogbase.h>
31 
32 namespace KCal {
33  class Incidence;
34 }
35 using namespace KCal;
36 
37 class TQButtonGroup;
38 
42 class TDE_EXPORT KIncidenceChooser : public KDialog
43 {
44  TQ_OBJECT
45 
46  public:
47  enum mode {
48  local, remote, newest, ask, both
49  };
51  KIncidenceChooser( TQWidget *parent=0, char *name=0 );
53  //void setChooseText( TQString );
54  void setIncidence( KCal::Incidence *, KCal::Incidence * );
55  KCal::Incidence *getIncidence();
56  static int chooseMode;
57 
58  public slots:
59  void useGlobalMode();
60 
61  protected slots:
62  void showIncidence1();
63  void showIncidence2();
64  void showDiff();
65  void takeIncidence1();
66  void takeIncidence2();
67  void takeBoth();
68  void setLabels();
69  void setSyncMode();
70  void detailsDialogClosed();
71 
72  private:
73  KPIM::HTMLDiffAlgoDisplay *mDisplayDiff;
74  KPIM::CalendarDiffAlgo *diff;
75  KDialogBase *mTbL, *mTbN;
76  KCal::Incidence *mSelIncidence;
77  KCal::Incidence *mInc1, *mInc2;
78  TQButtonGroup *mBg;
79  TQPushButton *mDiffBut,*mShowDetails1,*mShowDetails2;
80  TQLabel *mInc1lab, *mInc2lab,* mInc1Sumlab, *mInc2Sumlab,*mMod1lab,*mMod2lab;
81 
82 };
83 
84 #endif
Dialog to change the korganizer configuration.