annotate kdiff3/src/kdiff3_part.h @ 57:023fbd76c1e3

Translating some strings to french
author friseb123
date Sat, 31 Jan 2004 14:25:47 +0000
parents 86d21651c8db
children 8febbfb1148c
rev   line source
joachim99@8 1 /*
joachim99@8 2 * Copyright (C) 2003 Joachim Eibl <joachim.eibl@gmx.de>
joachim99@8 3 */
joachim99@8 4
joachim99@8 5 #ifndef _KDIFF3PART_H_
joachim99@8 6 #define _KDIFF3PART_H_
joachim99@8 7
joachim99@8 8 #include <kparts/part.h>
joachim99@8 9 #include <kparts/factory.h>
joachim99@8 10
joachim99@8 11 class QWidget;
joachim99@8 12 class QPainter;
joachim99@8 13 class KURL;
joachim99@8 14 class KDiff3App;
joachim99@8 15
joachim99@8 16 /**
joachim99@8 17 * This is a "Part". It that does all the real work in a KPart
joachim99@8 18 * application.
joachim99@8 19 *
joachim99@8 20 * @short Main Part
joachim99@8 21 * @author Joachim Eibl <joachim.eibl@gmx.de>
joachim99@8 22 */
joachim99@8 23 class KDiff3Part : public KParts::ReadOnlyPart
joachim99@8 24 {
joachim99@8 25 Q_OBJECT
joachim99@8 26 public:
joachim99@8 27 /**
joachim99@8 28 * Default constructor
joachim99@8 29 */
joachim99@8 30 KDiff3Part(QWidget *parentWidget, const char *widgetName,
joachim99@8 31 QObject *parent, const char *name);
joachim99@8 32
joachim99@8 33 /**
joachim99@8 34 * Destructor
joachim99@8 35 */
joachim99@8 36 virtual ~KDiff3Part();
joachim99@8 37
joachim99@8 38 /**
joachim99@8 39 * This is a virtual function inherited from KParts::ReadWritePart.
joachim99@8 40 * A shell will use this to inform this Part if it should act
joachim99@8 41 * read-only
joachim99@8 42 */
joachim99@8 43 virtual void setReadWrite(bool rw);
joachim99@8 44
joachim99@8 45 /**
joachim99@8 46 * Reimplemented to disable and enable Save action
joachim99@8 47 */
joachim99@8 48 virtual void setModified(bool modified);
joachim99@8 49
joachim99@8 50 protected:
joachim99@8 51 /**
joachim99@8 52 * This must be implemented by each part
joachim99@8 53 */
joachim99@8 54 virtual bool openFile();
joachim99@8 55
joachim99@8 56 /**
joachim99@8 57 * This must be implemented by each read-write part
joachim99@8 58 */
joachim99@8 59 virtual bool saveFile();
joachim99@8 60
joachim99@8 61 private:
joachim99@8 62 KDiff3App* m_widget;
joachim99@8 63 bool m_bIsShell;
joachim99@8 64 };
joachim99@8 65
joachim99@8 66 class KInstance;
joachim99@8 67 class KAboutData;
joachim99@8 68
joachim99@8 69 class KDiff3PartFactory : public KParts::Factory
joachim99@8 70 {
joachim99@8 71 Q_OBJECT
joachim99@8 72 public:
joachim99@8 73 KDiff3PartFactory();
joachim99@8 74 virtual ~KDiff3PartFactory();
joachim99@8 75 virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,
joachim99@8 76 QObject *parent, const char *name,
joachim99@8 77 const char *classname, const QStringList &args );
joachim99@8 78 static KInstance* instance();
joachim99@8 79
joachim99@8 80 private:
joachim99@8 81 static KInstance* s_instance;
joachim99@8 82 static KAboutData* s_about;
joachim99@8 83 };
joachim99@8 84
joachim99@8 85 #endif // _KDIFF3PART_H_