summaryrefslogtreecommitdiff
path: root/app/bin/include/toolbar.h
blob: f62b09a3707d1dee2d6759efe31c38acfe9bb1e7 (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
/*****************************************************************//**
 * \file   toolbar.h
 * \brief  Header for toolbar functions
 *********************************************************************/

#ifndef TOOLBAR_H
#define TOOLBAR_H
 /*
  * Command groups
  */
#define BG_SELECT		(0)
#define BG_ZOOM			(1)
#define BG_UNDO			(2)
#define BG_EASE			(3)
#define BG_TRKCRT		(4)
#define BG_TRKMOD		(5)
#define BG_TRKGRP		(6)
#define BG_MISCCRT		(7)
#define BG_RULER		(8)
#define BG_LAYER		(9)
#define BG_HOTBAR		(10)
#define BG_SNAP			(11)
#define BG_TRAIN		(12)
#define BG_FILE			(13)
#define BG_CONTROL		(14)
#define BG_EXPORTIMPORT		(15)
#define BG_PRINT		(16)
// This must be the last item:
#define BG_LAST			(17)

extern void InitToolbar(void);
extern void ToolbarLayout(void* data);
extern void DoToolbar(void* unused);
extern bool ToolbarIsGroupVisible(int group);
extern wWinPix_t ToolbarGetHeight(void);
extern void ToolbarSetHeight(wWinPix_t newHeight);

extern void InitToolbar(void);
extern void ToolbarButtonBusy(wIndex_t button, wBool_t busy);
extern void ToolbarButtonEnable(wIndex_t button, wBool_t enable);
extern void ToolbarButtonEnableIfSelect(bool selected);
extern void ToolbarButtonCommandLink(wIndex_t button, int command);
extern void ToolbarUpdateButton(wIndex_t button, wIndex_t command,
    char* icon, const char* helpKey, void* context);
extern void ToolbarButtonPlayback(wIndex_t buttonInx);
extern void ToolbarLoadConfig(void);
extern void ToolbarControlAdd(wControl_p control, long options, int cmdGroup);


wIndex_t AddCommand(procCommand_t cmdProc, const char* helpKey,
    const char* nameStr, wIcon_p icon, int reqLevel, long options, long acclKey,
    wIndex_t buttInx, long stickyMask, wMenuPush_p cmdMenus[NUM_CMDMENUS],
    void* context);

void PlaybackButtonMouse(wIndex_t);
void PlaybackCommand(const char*, wIndex_t);
#endif