summaryrefslogtreecommitdiffstats
path: root/khotkeys/shared/khotkeysglobal.h
blob: 4279589365d71a8ba0abbfe26f4afc516183f94f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/****************************************************************************

 KHotKeys

 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>

 Distributed under the terms of the GNU General Public License version 2.

****************************************************************************/

#ifndef _KHOTKEYSGLOBAL_H_
#define _KHOTKEYSGLOBAL_H_

#define KHOTKEYS_VERSION "2.1"
#define KHOTKEYS_CONFIG_FILE "khotkeysrc"

//#ifndef NDEBUG
//#define KHOTKEYS_DEBUG
//#endif

#include <tqstring.h>

#include <tdelocale.h>

class TDEConfig;
class TQObject;

namespace KHotKeys
{

class Kbd;
class Windows;
class Action_data_group;

extern Kbd* keyboard_handler;
extern Windows* windows_handler;

#define KHOTKEYS_DISABLE_COPY( cls ) private: cls( const cls& ); cls& operator=( const cls& )

// CHECKME hmms :(
TDE_EXPORT bool khotkeys_active();
TDE_EXPORT void khotkeys_set_active( bool active_P );

TQString get_menu_entry_from_path( const TQString& path_P );

TDE_EXPORT void init_global_data( bool active_P, TQObject* owner_P );

const char* const MENU_EDITOR_ENTRIES_GROUP_NAME = I18N_NOOP( "Menu Editor entries" );

TDE_EXPORT bool haveArts();
TDE_EXPORT void disableArts();

//***************************************************************************
// Inline
//***************************************************************************

} // namespace KHotKeys

#endif