/***************************************************************************
                            KStdAccel.m -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_KStdAccel.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KStdAccel.h>

#include <qtobjc/QKeyEvent.h>


@implementation  KStdAccel

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


- (KShortcut*) shortcut: (int)identifier
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_shortcut( (int)identifier) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (NSString *) name: (int)identifier
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdAccel_name( (int)identifier);
	return [NSString fromQString: _qstring];
}

- (NSString *) label: (int)identifier
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdAccel_label( (int)identifier);
	return [NSString fromQString: _qstring];
}

- (NSString *) whatsThis: (int)identifier
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdAccel_whatsThis( (int)identifier);
	return [NSString fromQString: _qstring];
}

- (KShortcut*) shortcutDefault: (int)identifier
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_shortcutDefault( (int)identifier) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) shortcutDefault3: (int)identifier
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_shortcutDefault3( (int)identifier) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) shortcutDefault4: (int)identifier
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_shortcutDefault4( (int)identifier) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

//- createAccelActions: (KAccelActions*)arg1
//{
//	kde_KStdAccel_createAccelActions( (kde_KAccelActions*) [arg1 qt]);
//	return self;
//}

- (KShortcut*) open
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_open((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) openNew
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_openNew((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) close
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_close((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) save
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_save((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) print
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_print((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) quit
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_quit((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) undo
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_undo((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) redo
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_redo((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) cut
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_cut((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) copy
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_copy((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) paste
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_paste((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) selectAll
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_selectAll((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) deleteWordBack
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_deleteWordBack((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) deleteWordForward
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_deleteWordForward((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) find
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_find((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) findNext
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_findNext((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) findPrev
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_findPrev((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) replace
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_replace((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) zoomIn
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_zoomIn((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) zoomOut
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_zoomOut((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

//- (KShortcut*) insert
//{
//	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_insert((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
//}

- (KShortcut*) home
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_home((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) end
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_end((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) prior
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_prior((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) next
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_next((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) gotoLine
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_gotoLine((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) addBookmark
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_addBookmark((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) help
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_help((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) completion
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_completion((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) prevCompletion
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_prevCompletion((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) nextCompletion
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_nextCompletion((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) substringCompletion
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_substringCompletion((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) rotateUp
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_rotateUp((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) rotateDown
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_rotateDown((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) popupMenuContext
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_popupMenuContext((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) whatsThis
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_whatsThis1((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) reload
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_reload((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) up
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_up((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) back
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_back((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) forward
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_forward((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (KShortcut*) showMenubar
{
	return (KShortcut*) [QtSupport objectForQtKey: kde_KStdAccel_showMenubar((kde_KStdAccel *)[self qt]) withClass: [KShortcut class] allocatedInObjcWorld: YES];
}

- (NSString *) action: (int)identifier
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdAccel_action( (int)identifier);
	return [NSString fromQString: _qstring];
}

- (NSString *) description: (int)identifier
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KStdAccel_description( (int)identifier);
	return [NSString fromQString: _qstring];
}

- (int) key: (int)arg1
{
	return (int) kde_KStdAccel_key( (int)arg1);
}

- (int) defaultKey: (int)accel
{
	return (int) kde_KStdAccel_defaultKey( (int)accel);
}

- (BOOL) isEqual: (QKeyEvent*)pEvent keyQt: (int)keyQt
{
	return (BOOL) kde_KStdAccel_isEqual( (qt_QKeyEvent*) [pEvent qt], (int)keyQt);
}

+ (int) AccelNone
{
	return (int) KSTDACCEL_AccelNone;
}

+ (int) Open
{
	return (int) KSTDACCEL_Open;
}

+ (int) New
{
	return (int) KSTDACCEL_New;
}

+ (int) Close
{
	return (int) KSTDACCEL_Close;
}

+ (int) Save
{
	return (int) KSTDACCEL_Save;
}

+ (int) Print
{
	return (int) KSTDACCEL_Print;
}

+ (int) Quit
{
	return (int) KSTDACCEL_Quit;
}

+ (int) Undo
{
	return (int) KSTDACCEL_Undo;
}

+ (int) Redo
{
	return (int) KSTDACCEL_Redo;
}

+ (int) Cut
{
	return (int) KSTDACCEL_Cut;
}

+ (int) Copy
{
	return (int) KSTDACCEL_Copy;
}

+ (int) Paste
{
	return (int) KSTDACCEL_Paste;
}

+ (int) SelectAll
{
	return (int) KSTDACCEL_SelectAll;
}

+ (int) Deselect
{
	return (int) KSTDACCEL_Deselect;
}

+ (int) DeleteWordBack
{
	return (int) KSTDACCEL_DeleteWordBack;
}

+ (int) DeleteWordForward
{
	return (int) KSTDACCEL_DeleteWordForward;
}

+ (int) Find
{
	return (int) KSTDACCEL_Find;
}

+ (int) FindNext
{
	return (int) KSTDACCEL_FindNext;
}

+ (int) FindPrev
{
	return (int) KSTDACCEL_FindPrev;
}

+ (int) Replace
{
	return (int) KSTDACCEL_Replace;
}

+ (int) Home
{
	return (int) KSTDACCEL_Home;
}

+ (int) End
{
	return (int) KSTDACCEL_End;
}

+ (int) Prior
{
	return (int) KSTDACCEL_Prior;
}

+ (int) Next
{
	return (int) KSTDACCEL_Next;
}

+ (int) GotoLine
{
	return (int) KSTDACCEL_GotoLine;
}

+ (int) AddBookmark
{
	return (int) KSTDACCEL_AddBookmark;
}

+ (int) ZoomIn
{
	return (int) KSTDACCEL_ZoomIn;
}

+ (int) ZoomOut
{
	return (int) KSTDACCEL_ZoomOut;
}

+ (int) Up
{
	return (int) KSTDACCEL_Up;
}

+ (int) Back
{
	return (int) KSTDACCEL_Back;
}

+ (int) Forward
{
	return (int) KSTDACCEL_Forward;
}

+ (int) Reload
{
	return (int) KSTDACCEL_Reload;
}

+ (int) PopupMenuContext
{
	return (int) KSTDACCEL_PopupMenuContext;
}

+ (int) ShowMenubar
{
	return (int) KSTDACCEL_ShowMenubar;
}

+ (int) Help
{
	return (int) KSTDACCEL_Help;
}

+ (int) WhatsThis
{
	return (int) KSTDACCEL_WhatsThis;
}

+ (int) TextCompletion
{
	return (int) KSTDACCEL_TextCompletion;
}

+ (int) PrevCompletion
{
	return (int) KSTDACCEL_PrevCompletion;
}

+ (int) NextCompletion
{
	return (int) KSTDACCEL_NextCompletion;
}

+ (int) SubstringCompletion
{
	return (int) KSTDACCEL_SubstringCompletion;
}

+ (int) RotateUp
{
	return (int) KSTDACCEL_RotateUp;
}

+ (int) RotateDown
{
	return (int) KSTDACCEL_RotateDown;
}

+ (int) WhatThis
{
	return (int) KSTDACCEL_WhatThis;
}

@end
