1 //******************************************************************************
2 //  Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 //  See the included file COPYING.TXT for details about the copyright.
5 //
6 //  This program is distributed in the hope that it will be useful,
7 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10 
11 
12 #ifndef QSHORTCUT_C_H
13 #define QSHORTCUT_C_H
14 
15 #include <QtWidgets>
16 #include "pascalbind.h"
17 
18 C_EXPORT QShortcutH QShortcut_Create(QWidgetH parent);
19 C_EXPORT void QShortcut_Destroy(QShortcutH handle);
20 C_EXPORT QShortcutH QShortcut_Create2(const QKeySequenceH key, QWidgetH parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext context);
21 C_EXPORT void QShortcut_setKey(QShortcutH handle, const QKeySequenceH key);
22 C_EXPORT void QShortcut_key(QShortcutH handle, QKeySequenceH retval);
23 C_EXPORT void QShortcut_setEnabled(QShortcutH handle, bool enable);
24 C_EXPORT bool QShortcut_isEnabled(QShortcutH handle);
25 C_EXPORT void QShortcut_setContext(QShortcutH handle, Qt::ShortcutContext context);
26 C_EXPORT Qt::ShortcutContext QShortcut_context(QShortcutH handle);
27 C_EXPORT void QShortcut_setWhatsThis(QShortcutH handle, PWideString text);
28 C_EXPORT void QShortcut_whatsThis(QShortcutH handle, PWideString retval);
29 C_EXPORT void QShortcut_setAutoRepeat(QShortcutH handle, bool on);
30 C_EXPORT bool QShortcut_autoRepeat(QShortcutH handle);
31 C_EXPORT int QShortcut_id(QShortcutH handle);
32 C_EXPORT QWidgetH QShortcut_parentWidget(QShortcutH handle);
33 
34 #endif
35