diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
| commit | b45d74b60dfb7e23911df6b0523890e42f711267 (patch) | |
| tree | 42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/bin/include/toolbar.h | |
| parent | 6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff) | |
| parent | 63ec5715054be18ac4db5675e067b41c955d03b9 (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/bin/include/toolbar.h')
| -rw-r--r-- | app/bin/include/toolbar.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app/bin/include/toolbar.h b/app/bin/include/toolbar.h new file mode 100644 index 0000000..f62b09a --- /dev/null +++ b/app/bin/include/toolbar.h @@ -0,0 +1,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 |
