comparison kdiff3/src/kreplacements/kreplacements.h @ 51:c59d5a3a8ff3

0.9.80
author joachim99
date Tue, 09 Dec 2003 20:29:43 +0000
parents 86d21651c8db
children 32d5cbf9db71
comparison
equal deleted inserted replaced
50:8c9752066f09 51:c59d5a3a8ff3
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18 /*************************************************************************** 18 /***************************************************************************
19 * $Log$ 19 * $Log$
20 * Revision 1.1 2003/10/06 18:48:54 joachim99 20 * Revision 1.2 2003/12/09 20:26:39 joachim99
21 * KDiff3 version 0.9.70 21 * 0.9.80
22 * 22 *
23 ***************************************************************************/ 23 ***************************************************************************/
24 24
25 #ifndef KREPLACEMENTS_H 25 #ifndef KREPLACEMENTS_H
26 #define KREPLACEMENTS_H 26 #define KREPLACEMENTS_H
176 bool event( QEvent* e ); 176 bool event( QEvent* e );
177 public: 177 public:
178 QPopupMenu* fileMenu; 178 QPopupMenu* fileMenu;
179 QPopupMenu* editMenu; 179 QPopupMenu* editMenu;
180 QPopupMenu* directoryMenu; 180 QPopupMenu* directoryMenu;
181 QPopupMenu* dirCurrentItemMenu;
182 QPopupMenu* dirCurrentSyncItemMenu;
181 QPopupMenu* movementMenu; 183 QPopupMenu* movementMenu;
182 QPopupMenu* mergeMenu; 184 QPopupMenu* mergeMenu;
183 QPopupMenu* windowsMenu; 185 QPopupMenu* windowsMenu;
184 QPopupMenu* settingsMenu; 186 QPopupMenu* settingsMenu;
185 QPopupMenu* helpMenu; 187 QPopupMenu* helpMenu;
229 }; 231 };
230 232
231 class KAction : public QAction 233 class KAction : public QAction
232 { 234 {
233 public: 235 public:
234 KAction(const QString& text, const QIconSet& icon, int accel, QWidget* parent, const char* slot, KActionCollection* actionCollection, const QString& name, bool bToggle=false, bool bMenu=true); 236 KAction(const QString& text, const QIconSet& icon, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const QString& name, bool bToggle=false, bool bMenu=true);
235 KAction(const QString& text, int accel, QWidget* parent, const char* slot, KActionCollection* actionCollection, const QString& name, bool bToggle=false, bool bMenu=true); 237 KAction(const QString& text, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const QString& name, bool bToggle=false, bool bMenu=true);
236 void setStatusText(const QString&); 238 void setStatusText(const QString&);
237 void plug(QPopupMenu*); 239 void plug(QPopupMenu*);
238 }; 240 };
239 241
240 class KToggleAction : public KAction 242 class KToggleAction : public KAction
241 { 243 {
242 public: 244 public:
243 KToggleAction(const QString& text, const QIconSet& icon, int accel, QWidget* parent, const char* slot, KActionCollection* actionCollection, const QString& name, bool bMenu=true); 245 KToggleAction(const QString& text, const QIconSet& icon, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const QString& name, bool bMenu=true);
244 KToggleAction(const QString& text, int accel, QWidget* parent, const char* slot, KActionCollection* actionCollection, const QString& name, bool bMenu=true); 246 KToggleAction(const QString& text, int accel, QObject* receiver, const char* slot, KActionCollection* actionCollection, const QString& name, bool bMenu=true);
245 KToggleAction(const QString& text, const QIconSet& icon, int accel, KActionCollection* actionCollection, const QString& name, bool bMenu=true); 247 KToggleAction(const QString& text, const QIconSet& icon, int accel, KActionCollection* actionCollection, const QString& name, bool bMenu=true);
246 void setChecked(bool); 248 void setChecked(bool);
247 bool isChecked(); 249 bool isChecked();
248 }; 250 };
249 251
330 static void init( int argc, char**argv, KAboutData* ); 332 static void init( int argc, char**argv, KAboutData* );
331 static void addCmdLineOptions( KCmdLineOptions* options ); // Add our own options. 333 static void addCmdLineOptions( KCmdLineOptions* options ); // Add our own options.
332 334
333 int count(); 335 int count();
334 QString arg(int); 336 QString arg(int);
337 KURL url(int i){ return KURL(arg(i)); }
335 void clear(); 338 void clear();
336 QString getOption(const QString&); 339 QString getOption(const QString&);
337 QCStringList getOptionList( const QString& ); 340 QCStringList getOptionList( const QString& );
338 bool isSet(const QString&); 341 bool isSet(const QString&);
339 }; 342 };
389 enum UDSEntry {}; 392 enum UDSEntry {};
390 typedef QValueList<UDSEntry> UDSEntryList; 393 typedef QValueList<UDSEntry> UDSEntryList;
391 class Job : public QObject 394 class Job : public QObject
392 { 395 {
393 public: 396 public:
397 void kill(bool){}
394 bool error() {return false;} 398 bool error() {return false;}
395 void showErrorDialog( QWidget* ) {} 399 void showErrorDialog( QWidget* ) {}
396 }; 400 };
397 class SimpleJob : public Job {}; 401 class SimpleJob : public Job {};
398 SimpleJob* mkdir( KURL ); 402 SimpleJob* mkdir( KURL );