annotate kdiff3/src/kreplacements/kreplacements.h @ 70:5bbfe4784324

KDiff3 0.9.89 for Qt4
author joachim99
date Tue, 18 Apr 2006 20:19:57 +0000
parents 8febbfb1148c
children f7dad0aa6146
rev   line source
joachim99@8 1 /***************************************************************************
joachim99@8 2 kreplacements.h - description
joachim99@8 3 -------------------
joachim99@8 4 begin : Sat Aug 3 2002
joachim99@69 5 copyright : (C) 2002-2006 by Joachim Eibl
joachim99@69 6 email : joachim.eibl at gmx.de
joachim99@8 7 ***************************************************************************/
joachim99@8 8
joachim99@8 9 /***************************************************************************
joachim99@8 10 * *
joachim99@8 11 * This program is free software; you can redistribute it and/or modify *
joachim99@8 12 * it under the terms of the GNU General Public License as published by *
joachim99@8 13 * the Free Software Foundation; either version 2 of the License, or *
joachim99@8 14 * (at your option) any later version. *
joachim99@8 15 * *
joachim99@8 16 ***************************************************************************/
joachim99@8 17
joachim99@8 18 #ifndef KREPLACEMENTS_H
joachim99@8 19 #define KREPLACEMENTS_H
joachim99@8 20
joachim99@69 21 #include "common.h"
joachim99@69 22
joachim99@8 23 #include <qobject.h>
joachim99@70 24 #include <q3tabdialog.h>
joachim99@70 25 #include <q3mainwindow.h>
joachim99@8 26 #include <qaction.h>
joachim99@70 27 #include <q3filedialog.h>
joachim99@8 28 #include <qapplication.h>
joachim99@70 29 #include <q3vbox.h>
joachim99@8 30 #include <qpushbutton.h>
joachim99@8 31 #include <qstatusbar.h>
joachim99@70 32 #include <q3toolbar.h>
joachim99@70 33 #include <q3progressbar.h>
joachim99@70 34 #include <q3popupmenu.h>
joachim99@8 35 #include <qstringlist.h>
joachim99@69 36 #include <qprinter.h>
joachim99@70 37 //Added by qt3to4:
joachim99@70 38 #include <Q3CString>
joachim99@70 39 #include <QPixmap>
joachim99@70 40 #include <QPaintEvent>
joachim99@70 41 #include <Q3Frame>
joachim99@70 42 #include <QLabel>
joachim99@70 43 #include <Q3ValueList>
joachim99@8 44
joachim99@8 45 #include <map>
joachim99@66 46 #include <list>
joachim99@8 47
joachim99@53 48 QString getTranslationDir();
joachim99@53 49
joachim99@8 50 class KMainWindow;
joachim99@8 51
joachim99@8 52 class KURL
joachim99@8 53 {
joachim99@8 54 public:
joachim99@8 55 KURL(){}
joachim99@8 56 KURL(const QString& s){ m_s = s; }
joachim99@8 57 static KURL fromPathOrURL( const QString& s ){ return KURL(s); }
joachim99@8 58 QString url() const { return m_s; }
joachim99@8 59 bool isEmpty() const { return m_s.isEmpty(); }
joachim99@8 60 QString prettyURL() const { return m_s; }
joachim99@8 61 bool isLocalFile() const { return true; }
joachim99@8 62 bool isValid() const { return true; }
joachim99@8 63 QString path() const { return m_s; }
joachim99@8 64 void setPath( const QString& s ){ m_s=s; }
joachim99@8 65 QString fileName() const { return m_s; } // not really needed
joachim99@8 66 void addPath( const QString& s ){ m_s += "/" + s; }
joachim99@8 67 private:
joachim99@8 68 QString m_s;
joachim99@8 69 };
joachim99@8 70
joachim99@8 71 class KMessageBox
joachim99@8 72 {
joachim99@8 73 public:
joachim99@8 74 static void error( QWidget* parent, const QString& text, const QString& caption=QString() );
joachim99@8 75 static int warningContinueCancel( QWidget* parent, const QString& text, const QString& caption=QString(),
joachim99@8 76 const QString& button1=QString("Continue") );
joachim99@8 77 static void sorry( QWidget* parent, const QString& text, const QString& caption=QString() );
joachim99@8 78 static void information( QWidget* parent, const QString& text, const QString& caption=QString() );
joachim99@8 79 static int warningYesNo( QWidget* parent, const QString& text, const QString& caption,
joachim99@8 80 const QString& button1, const QString& button2 );
joachim99@8 81 static int warningYesNoCancel(
joachim99@8 82 QWidget* parent, const QString& text, const QString& caption,
joachim99@8 83 const QString& button1, const QString& button2 );
joachim99@8 84
joachim99@8 85 enum {Cancel=-1, No=0, Yes=1, Continue=1};
joachim99@8 86 };
joachim99@8 87
joachim99@8 88 #define i18n(x) QObject::tr(x)
joachim99@8 89 #define I18N_NOOP(x) x
joachim99@8 90 #define RESTORE(x)
joachim99@8 91 #define _UNLOAD(x)
joachim99@8 92
joachim99@70 93 typedef Q3PopupMenu KPopupMenu;
joachim99@8 94
joachim99@70 95 class KDialogBase : public Q3TabDialog
joachim99@8 96 {
joachim99@8 97 Q_OBJECT
joachim99@8 98 public:
joachim99@68 99 KDialogBase( int, const QString& caption, int, int, QWidget* parent, const char* name,
joachim99@8 100 bool /*modal*/, bool );
joachim99@8 101 ~KDialogBase();
joachim99@8 102
joachim99@8 103 void incInitialSize ( const QSize& );
joachim99@8 104 void setHelp(const QString& helpfilename, const QString& );
joachim99@8 105 enum {IconList, Help, Default, Apply, Ok, Cancel };
joachim99@8 106
joachim99@8 107 int BarIcon(const QString& iconName, int );
joachim99@8 108
joachim99@70 109 Q3VBox* addVBoxPage( const QString& name, const QString& info, int );
joachim99@70 110 Q3Frame* addPage( const QString& name, const QString& info, int );
joachim99@8 111 int spacingHint();
joachim99@8 112
joachim99@8 113 virtual void accept();
joachim99@8 114 signals:
joachim99@8 115 void applyClicked();
joachim99@8 116
joachim99@8 117 protected slots:
joachim99@8 118 virtual void slotOk( void );
joachim99@8 119 virtual void slotApply( void );
joachim99@8 120 virtual void slotHelp( void );
joachim99@8 121 virtual void slotCancel( void );
joachim99@8 122 virtual void slotDefault( void );
joachim99@8 123 };
joachim99@8 124
joachim99@70 125 class KFileDialog : public Q3FileDialog
joachim99@8 126 {
joachim99@8 127 public:
joachim99@8 128 static KURL getSaveURL( const QString &startDir=QString::null,
joachim99@8 129 const QString &filter=QString::null,
joachim99@8 130 QWidget *parent=0, const QString &caption=QString::null);
joachim99@8 131 static KURL getOpenURL( const QString & startDir = QString::null,
joachim99@8 132 const QString & filter = QString::null,
joachim99@8 133 QWidget * parent = 0,
joachim99@8 134 const QString & caption = QString::null );
joachim99@8 135 static KURL getExistingURL( const QString & startDir = QString::null,
joachim99@8 136 QWidget * parent = 0,
joachim99@8 137 const QString & caption = QString::null );
joachim99@69 138 static QString getSaveFileName (const QString &startDir=QString::null,
joachim99@69 139 const QString &filter=QString::null,
joachim99@69 140 QWidget *parent=0,
joachim99@69 141 const QString &caption=QString::null);
joachim99@8 142 };
joachim99@8 143
joachim99@8 144 typedef QStatusBar KStatusBar;
joachim99@8 145
joachim99@70 146 class KToolBar : public Q3ToolBar
joachim99@8 147 {
joachim99@8 148 public:
joachim99@70 149 KToolBar(Q3MainWindow* parent);
joachim99@8 150
joachim99@66 151 enum BarPosition {Top, Bottom, Left, Right};
joachim99@8 152 BarPosition barPos();
joachim99@8 153 void setBarPos(BarPosition);
joachim99@66 154 private:
joachim99@70 155 Q3MainWindow* m_pMainWindow;
joachim99@8 156 };
joachim99@8 157
joachim99@8 158 class KActionCollection
joachim99@8 159 {
joachim99@8 160 public:
joachim99@8 161 KMainWindow* m_pMainWindow;
joachim99@8 162 KActionCollection( KMainWindow* p){ m_pMainWindow=p; }
joachim99@8 163 };
joachim99@8 164
joachim99@8 165 class KKeyDialog
joachim99@8 166 {
joachim99@8 167 public:
joachim99@8 168 static void configure(void*, QWidget*){}
joachim99@8 169 static void configureKeys(KActionCollection*, const QString&){}
joachim99@8 170 static void configure(KActionCollection*, const QString&){}
joachim99@8 171 };
joachim99@8 172
joachim99@8 173 namespace KParts
joachim99@8 174 {
joachim99@8 175 class ReadWritePart;
joachim99@8 176 }
joachim99@8 177
joachim99@70 178 class KMainWindow : public Q3MainWindow
joachim99@8 179 {
joachim99@8 180 Q_OBJECT
joachim99@8 181 private:
joachim99@8 182 KStatusBar m_statusBar;
joachim99@8 183 KActionCollection m_actionCollection;
joachim99@8 184 protected:
joachim99@8 185 virtual bool queryClose() = 0;
joachim99@8 186 virtual bool queryExit() = 0;
joachim99@8 187 public:
joachim99@70 188 Q3PopupMenu* fileMenu;
joachim99@70 189 Q3PopupMenu* editMenu;
joachim99@70 190 Q3PopupMenu* directoryMenu;
joachim99@70 191 Q3PopupMenu* dirCurrentItemMenu;
joachim99@70 192 Q3PopupMenu* dirCurrentSyncItemMenu;
joachim99@70 193 Q3PopupMenu* movementMenu;
joachim99@70 194 Q3PopupMenu* mergeMenu;
joachim99@70 195 Q3PopupMenu* diffMenu;
joachim99@70 196 Q3PopupMenu* windowsMenu;
joachim99@70 197 Q3PopupMenu* settingsMenu;
joachim99@70 198 Q3PopupMenu* helpMenu;
joachim99@8 199
joachim99@8 200 KToolBar* m_pToolBar;
joachim99@8 201
joachim99@68 202 KMainWindow( QWidget* parent, const char* name );
joachim99@8 203 KToolBar* toolBar(const QString& s = QString::null);
joachim99@8 204 KActionCollection* actionCollection();
joachim99@8 205 void createGUI();
joachim99@8 206 void createGUI(KParts::ReadWritePart*){createGUI();}
joachim99@8 207
joachim99@70 208 QList<KMainWindow*>* memberList;
joachim99@8 209 public slots:
joachim99@8 210 void slotHelp();
joachim99@8 211 void slotAbout();
joachim99@8 212 };
joachim99@8 213
joachim99@69 214 class KConfig : public ValueMap
joachim99@8 215 {
joachim99@8 216 QString m_fileName;
joachim99@8 217 public:
joachim99@8 218 KConfig();
joachim99@8 219 ~KConfig();
joachim99@69 220 void readConfigFile(const QString& configFileName);
joachim99@8 221
joachim99@8 222 void setGroup(const QString&);
joachim99@8 223 };
joachim99@8 224
joachim99@8 225 class KAction : public QAction
joachim99@8 226 {
joachim99@53 227 Q_OBJECT
joachim99@8 228 public:
joachim99@70 229 KAction(const QString& text, const QIcon& icon, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
joachim99@68 230 KAction(const QString& text, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bToggle=false, bool bMenu=true);
joachim99@68 231 void init(QObject* receiver, const char* slot, KActionCollection* actionCollection,
joachim99@68 232 const char* name, bool bToggle, bool bMenu);
joachim99@8 233 void setStatusText(const QString&);
joachim99@70 234 void plug(Q3PopupMenu*);
joachim99@8 235 };
joachim99@8 236
joachim99@8 237 class KToggleAction : public KAction
joachim99@8 238 {
joachim99@8 239 public:
joachim99@70 240 KToggleAction(const QString& text, const QIcon& icon, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu=true);
joachim99@68 241 KToggleAction(const QString& text, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const char* name, bool bMenu=true);
joachim99@70 242 KToggleAction(const QString& text, const QIcon& icon, int accel, KActionCollection* actionCollection, const char* name, bool bMenu=true);
joachim99@8 243 void setChecked(bool);
joachim99@8 244 bool isChecked();
joachim99@8 245 };
joachim99@8 246
joachim99@8 247
joachim99@8 248 class KStdAction
joachim99@8 249 {
joachim99@8 250 public:
joachim99@8 251 static KAction* open( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 252 static KAction* save( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 253 static KAction* saveAs( QWidget* parent, const char* slot, KActionCollection* );
joachim99@69 254 static KAction* print( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 255 static KAction* quit( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 256 static KAction* cut( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 257 static KAction* copy( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 258 static KAction* paste( QWidget* parent, const char* slot, KActionCollection* );
joachim99@69 259 static KAction* selectAll( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 260 static KToggleAction* showToolbar( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 261 static KToggleAction* showStatusbar( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 262 static KAction* preferences( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 263 static KAction* about( QWidget* parent, const char* slot, KActionCollection* );
joachim99@69 264 static KAction* aboutQt( KActionCollection* );
joachim99@8 265 static KAction* help( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 266 static KAction* find( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 267 static KAction* findNext( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 268 static KAction* keyBindings( QWidget* parent, const char* slot, KActionCollection* );
joachim99@8 269 };
joachim99@8 270
joachim99@8 271 class KIcon
joachim99@8 272 {
joachim99@8 273 public:
joachim99@8 274 enum {SizeMedium,Small};
joachim99@8 275 };
joachim99@8 276
joachim99@8 277 class KFontChooser : public QWidget
joachim99@8 278 {
joachim99@8 279 Q_OBJECT
joachim99@8 280 QFont m_font;
joachim99@8 281 QPushButton* m_pSelectFont;
joachim99@8 282 QLabel* m_pLabel;
joachim99@8 283 QWidget* m_pParent;
joachim99@8 284 public:
joachim99@8 285 KFontChooser( QWidget* pParent, const QString& name, bool, const QStringList&, bool, int );
joachim99@8 286 QFont font();
joachim99@8 287 void setFont( const QFont&, bool );
joachim99@8 288 private slots:
joachim99@8 289 void slotSelectFont();
joachim99@8 290 };
joachim99@8 291
joachim99@8 292 class KColorButton : public QPushButton
joachim99@8 293 {
joachim99@8 294 Q_OBJECT
joachim99@8 295 QColor m_color;
joachim99@8 296 public:
joachim99@8 297 KColorButton(QWidget* parent);
joachim99@8 298 QColor color();
joachim99@8 299 void setColor(const QColor&);
joachim99@8 300 virtual void paintEvent(QPaintEvent* e);
joachim99@8 301 public slots:
joachim99@8 302 void slotClicked();
joachim99@8 303 };
joachim99@8 304
joachim99@69 305 class KPrinter : public QPrinter
joachim99@69 306 {
joachim99@69 307 public:
joachim99@69 308 KPrinter();
joachim99@69 309 enum e_PageSelection {ApplicationSide};
joachim99@70 310 Q3ValueList<int> pageList();
joachim99@69 311 void setCurrentPage(int);
joachim99@69 312 void setPageSelection(e_PageSelection);
joachim99@69 313 };
joachim99@69 314
joachim99@69 315 class KStandardDirs
joachim99@69 316 {
joachim99@69 317 public:
joachim99@69 318 QString findResource(const QString& resource, const QString& appName);
joachim99@69 319 };
joachim99@69 320
joachim99@8 321 struct KCmdLineOptions
joachim99@8 322 {
joachim99@69 323 const char* name;
joachim99@69 324 const char* description;
joachim99@69 325 int def;
joachim99@8 326 };
joachim99@8 327
joachim99@69 328 #define KCmdLineLastOption {0,0,0}
joachim99@8 329
joachim99@8 330 class KAboutData
joachim99@8 331 {
joachim99@8 332 public:
joachim99@8 333 KAboutData( const QString& name, const QString& appName, const QString& version,
joachim99@8 334 const QString& description, int licence,
joachim99@8 335 const QString& copyright, int w, const QString& homepage, const QString& email);
joachim99@8 336 KAboutData( const QString& name, const QString& appName, const QString& version );
joachim99@66 337 void addAuthor(const char* name=0, const char* task=0, const char* email=0, const char* weblink=0);
joachim99@66 338 void addCredit(const char* name=0, const char* task=0, const char* email=0, const char* weblink=0);
joachim99@8 339 enum { License_GPL };
joachim99@66 340
joachim99@66 341 struct AboutDataEntry
joachim99@66 342 {
joachim99@66 343 AboutDataEntry(const QString& name, const QString& task, const QString& email, const QString& weblink)
joachim99@66 344 : m_name(name), m_task(task), m_email(email), m_weblink(weblink)
joachim99@66 345 {}
joachim99@66 346 QString m_name;
joachim99@66 347 QString m_task;
joachim99@66 348 QString m_email;
joachim99@66 349 QString m_weblink;
joachim99@66 350 };
joachim99@66 351
joachim99@66 352 std::list<AboutDataEntry> m_authorList;
joachim99@66 353 std::list<AboutDataEntry> m_creditList;
joachim99@8 354 };
joachim99@8 355
joachim99@70 356 typedef Q3ValueList<Q3CString> QCStringList;
joachim99@8 357
joachim99@8 358 class KCmdLineArgs
joachim99@8 359 {
joachim99@8 360 public:
joachim99@8 361 static KCmdLineArgs* parsedArgs();
joachim99@8 362 static void init( int argc, char**argv, KAboutData* );
joachim99@8 363 static void addCmdLineOptions( KCmdLineOptions* options ); // Add our own options.
joachim99@8 364
joachim99@8 365 int count();
joachim99@8 366 QString arg(int);
joachim99@51 367 KURL url(int i){ return KURL(arg(i)); }
joachim99@8 368 void clear();
joachim99@8 369 QString getOption(const QString&);
joachim99@8 370 QCStringList getOptionList( const QString& );
joachim99@8 371 bool isSet(const QString&);
joachim99@8 372 };
joachim99@8 373
joachim99@8 374 class KIconLoader
joachim99@8 375 {
joachim99@8 376 public:
joachim99@8 377 QPixmap loadIcon(const QString& name, int);
joachim99@8 378 };
joachim99@8 379
joachim99@8 380 class KApplication : public QApplication
joachim99@8 381 {
joachim99@8 382 KConfig m_config;
joachim99@8 383 KIconLoader m_iconLoader;
joachim99@8 384 public:
joachim99@8 385 KApplication();
joachim99@8 386 static KApplication* kApplication();
joachim99@8 387 KIconLoader* iconLoader();
joachim99@8 388 KConfig* config();
joachim99@8 389 bool isRestored();
joachim99@8 390 };
joachim99@8 391
joachim99@8 392 extern KApplication* kapp;
joachim99@8 393
joachim99@8 394 class KLibFactory : public QObject
joachim99@8 395 {
joachim99@8 396 Q_OBJECT
joachim99@8 397 public:
joachim99@8 398 QObject* create(QObject*,const QString&,const QString&);
joachim99@8 399 };
joachim99@8 400
joachim99@8 401 class KLibLoader
joachim99@8 402 {
joachim99@8 403 public:
joachim99@8 404 static KLibLoader* self();
joachim99@8 405 KLibFactory* factory(const QString&);
joachim99@8 406 };
joachim99@8 407
joachim99@8 408 class KEditToolbar : public QDialog
joachim99@8 409 {
joachim99@8 410 public:
joachim99@8 411 KEditToolbar( int ){}
joachim99@8 412 };
joachim99@8 413
joachim99@8 414 class KGlobal
joachim99@8 415 {
joachim99@8 416 public:
joachim99@8 417 static KConfig* config() { return 0; }
joachim99@8 418 };
joachim99@8 419
joachim99@8 420 namespace KIO
joachim99@8 421 {
joachim99@8 422 enum UDSEntry {};
joachim99@70 423 typedef Q3ValueList<UDSEntry> UDSEntryList;
joachim99@8 424 class Job : public QObject
joachim99@8 425 {
joachim99@8 426 public:
joachim99@51 427 void kill(bool){}
joachim99@8 428 bool error() {return false;}
joachim99@8 429 void showErrorDialog( QWidget* ) {}
joachim99@8 430 };
joachim99@8 431 class SimpleJob : public Job {};
joachim99@8 432 SimpleJob* mkdir( KURL );
joachim99@8 433 SimpleJob* rmdir( KURL );
joachim99@8 434 SimpleJob* file_delete( KURL, bool );
joachim99@8 435 class FileCopyJob : public Job {};
joachim99@8 436 FileCopyJob* file_move( KURL, KURL, int, bool, bool, bool );
joachim99@8 437 FileCopyJob* file_copy( KURL, KURL, int, bool, bool, bool );
joachim99@8 438 class CopyJob : public Job {};
joachim99@8 439 CopyJob* link( KURL, KURL, bool );
joachim99@8 440 class ListJob : public Job {};
joachim99@8 441 ListJob* listRecursive( KURL, bool, bool );
joachim99@8 442 ListJob* listDir( KURL, bool, bool );
joachim99@8 443 class StatJob : public Job {
joachim99@8 444 public: UDSEntry statResult(){ return (UDSEntry)0; }
joachim99@8 445 };
joachim99@8 446 StatJob* stat( KURL, bool, int, bool );
joachim99@8 447 class TransferJob : public Job {};
joachim99@8 448 TransferJob* get( KURL, bool, bool );
joachim99@8 449 TransferJob* put( KURL, int, bool, bool, bool );
joachim99@8 450 };
joachim99@8 451
joachim99@70 452 typedef Q3ProgressBar KProgress;
joachim99@8 453
joachim99@8 454 class KInstance : public QObject
joachim99@8 455 {
joachim99@8 456 public:
joachim99@8 457 KInstance(KAboutData*){}
joachim99@8 458 };
joachim99@8 459
joachim99@8 460 namespace KParts
joachim99@8 461 {
joachim99@8 462 class MainWindow : public KMainWindow
joachim99@8 463 {
joachim99@8 464 public:
joachim99@68 465 MainWindow( QWidget* parent, const char* name ) : KMainWindow(parent,name) {}
joachim99@8 466 void setXMLFile(const QString&){}
joachim99@8 467 void setAutoSaveSettings(){}
joachim99@8 468 void saveMainWindowSettings(KConfig*){}
joachim99@8 469 void applyMainWindowSettings(KConfig*){}
joachim99@8 470 int factory(){return 0;}
joachim99@8 471 };
joachim99@8 472
joachim99@8 473 class Part : public QObject
joachim99@8 474 {
joachim99@8 475 public:
joachim99@8 476 KActionCollection* actionCollection();
joachim99@8 477 KApplication* instance();
joachim99@8 478 void setWidget( QWidget* w ){ m_pWidget=w; }
joachim99@8 479 QWidget* widget(){return m_pWidget;}
joachim99@8 480 void setXMLFile(const QString&){}
joachim99@8 481 private:
joachim99@8 482 QWidget* m_pWidget;
joachim99@8 483 };
joachim99@8 484
joachim99@8 485 class ReadOnlyPart : public Part
joachim99@8 486 {
joachim99@8 487 public:
joachim99@8 488 ReadOnlyPart(){}
joachim99@70 489 ReadOnlyPart(QObject*,const Q3CString&){}
joachim99@8 490 void setInstance( KInstance* ){}
joachim99@8 491 QString m_file;
joachim99@8 492 };
joachim99@8 493
joachim99@8 494 class ReadWritePart : public ReadOnlyPart
joachim99@8 495 {
joachim99@8 496 public:
joachim99@70 497 ReadWritePart(QObject*,const Q3CString&){}
joachim99@8 498 void setReadWrite(bool){}
joachim99@8 499 };
joachim99@8 500
joachim99@8 501 class Factory : public KLibFactory
joachim99@8 502 {
joachim99@8 503 Q_OBJECT
joachim99@8 504 public:
joachim99@8 505 virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,
joachim99@8 506 QObject *parent, const char *name,
joachim99@8 507 const char *classname, const QStringList &args )=0;
joachim99@8 508 };
joachim99@8 509 };
joachim99@8 510 #endif
joachim99@8 511
joachim99@8 512