diff options
author | John Ankarström <john@ankarstrom.se> | 2022-09-03 01:15:01 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-09-03 01:15:01 +0200 |
commit | 2cd22c671c67deaf2c1fcb659e3262bf57552557 (patch) | |
tree | 825342c317a39022cd60d0aad6569e5f8ef11c0d /c/res.h | |
parent | d02e63924c92a6f0f2f88881a75680cb9a538962 (diff) | |
download | EpisodeBrowser-2cd22c671c67deaf2c1fcb659e3262bf57552557.tar.gz |
Add Preferences dialog (WIP).
Diffstat (limited to 'c/res.h')
-rw-r--r-- | c/res.h | 66 |
1 files changed, 66 insertions, 0 deletions
@@ -0,0 +1,66 @@ +#ifndef RES_H +#define RES_H + +/* Resource groups. */ +#define ID_GROUP(i) ((i) & 0x0f00) +#define IDG_RES 0x0100 +#define IDG_CTL 0x0200 +#define IDG_MENU 0x0300 +#define IDG_CTX 0x0400 + +/* Subgroups. */ +#define ID_SUBGROUP(i) ((i) & 0xf000) +#define IDG_CTX_RATE 0x1000 + +/* Index within resource group. */ +#define ID_INDEX(i) ((i) & 0x00ff) + +/* Resources, timers, menus. */ +#define IDR_STATUS 0x0100 +#define IDR_MENU 0x0101 +#define IDR_POPUPMENU 0x0102 + +/* Dialogs, controls, child windows. */ +#define IDD_ABOUT 0x0200 +#define IDC_ABOUTTEXT 0x0201 +#define IDC_EPISODELISTVIEW 0x0202 +#define IDC_DATALISTVIEW 0x0203 +#define IDD_PREFERENCES 0x0204 +#define IDC_STATIC 0x0205 +#define IDC_BROWSE 0x0206 +#define IDC_EDIT_ROOT 0x0207 +#define IDC_EDIT_URL 0x0208 +#define IDC_EDIT_PREFIX 0x0209 + +/* Main menu items. */ +#define IDM_FILE_EXIT 0x0300 +#define IDM_FILE_REFRESH 0x0301 +#define IDM_FILE_PREFERENCES 0x0302 +#define IDM_FILE_FETCH_DATA 0x0303 +#define IDM_FILE_FETCH_SCREENWRITERS 0x0304 +#define IDM_FILE_FETCH_CANCEL 0x0305 +#define IDM_FILE_ABOUT 0x0306 +#define IDM_VIEW_WATCHED 0x0307 +#define IDM_VIEW_TV_ORIGINAL 0x0308 +#define IDM_VIEW_OTHERS 0x0309 + +/* Context menu items. */ +#define IDM_WATCH_LOCALLY 0x0400 +#define IDM_WATCH_ONLINE 0x0401 +#define IDM_TOGGLE 0x0402 +#define IDM_WIKI 0x0403 +#define IDM_RATE0 0x1404 +#define IDM_RATE1 0x1405 +#define IDM_RATE2 0x1406 +#define IDM_RATE3 0x1407 +#define IDM_RATE4 0x1408 +#define IDM_RATE5 0x1409 +#define IDM_RATE6 0x140a +#define IDM_RATE7 0x140b +#define IDM_RATE8 0x140c +#define IDM_RATE9 0x140d +#define IDM_RATE10 0x140e + +#define ID_RATING(i) ((i) - IDM_RATE0) + +#endif |