forked from vitrine/wmaker
Factor notification macros and appearance enum out of WindowMaker.h.
Create //wmaker:notifications and //wmaker:appearance_settings.
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
cc_library(
|
||||
name = "appearance_settings",
|
||||
hdrs = ["appearance_settings.h"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "gnustep_compat",
|
||||
hdrs = ["GNUstep.h"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "notifications",
|
||||
hdrs = ["notifications.h"]
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "globals",
|
||||
hdrs = ["globals.h"],
|
||||
|
||||
@@ -240,48 +240,6 @@ typedef enum {
|
||||
#define WFLAGS_CRASHED (1<<0)
|
||||
|
||||
|
||||
/* notifications */
|
||||
|
||||
#ifdef MAINFILE
|
||||
#define NOTIFICATION(n) const char WN##n [] = #n
|
||||
#else
|
||||
#define NOTIFICATION(n) extern const char WN##n []
|
||||
#endif
|
||||
|
||||
NOTIFICATION(WindowAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(IconAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(IconTileSettingsChanged);
|
||||
|
||||
NOTIFICATION(MenuAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(MenuTitleAppearanceSettingsChanged);
|
||||
|
||||
|
||||
/* appearance settings clientdata flags */
|
||||
enum {
|
||||
WFontSettings = 1 << 0,
|
||||
WTextureSettings = 1 << 1,
|
||||
WColorSettings = 1 << 2
|
||||
};
|
||||
|
||||
/****** Global Variables ******/
|
||||
|
||||
/****** Notifications ******/
|
||||
extern const char WMNManaged[];
|
||||
extern const char WMNUnmanaged[];
|
||||
extern const char WMNChangedWorkspace[];
|
||||
extern const char WMNChangedState[];
|
||||
extern const char WMNChangedFocus[];
|
||||
extern const char WMNChangedStacking[];
|
||||
extern const char WMNChangedName[];
|
||||
|
||||
extern const char WMNWorkspaceCreated[];
|
||||
extern const char WMNWorkspaceDestroyed[];
|
||||
extern const char WMNWorkspaceChanged[];
|
||||
extern const char WMNWorkspaceNameChanged[];
|
||||
|
||||
extern const char WMNResetStacking[];
|
||||
|
||||
#endif
|
||||
|
||||
11
bazel/wmaker/appearance_settings.h
Normal file
11
bazel/wmaker/appearance_settings.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef WAPPEARANCE_SETTINGS_H_
|
||||
#define WAPPEARANCE_SETTINGS_H_
|
||||
|
||||
/* appearance settings clientdata flags */
|
||||
enum {
|
||||
WFontSettings = 1 << 0,
|
||||
WTextureSettings = 1 << 1,
|
||||
WColorSettings = 1 << 2
|
||||
};
|
||||
|
||||
#endif // WAPPEARANCE_SETTINGS_H_
|
||||
35
bazel/wmaker/notifications.h
Normal file
35
bazel/wmaker/notifications.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef WNOTIFICATIONS_H_
|
||||
#define WNOTIFICATIONS_H_
|
||||
|
||||
#ifdef MAINFILE
|
||||
#define NOTIFICATION(n) const char WN##n [] = #n
|
||||
#else
|
||||
#define NOTIFICATION(n) extern const char WN##n []
|
||||
#endif
|
||||
|
||||
NOTIFICATION(WindowAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(IconAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(IconTileSettingsChanged);
|
||||
|
||||
NOTIFICATION(MenuAppearanceSettingsChanged);
|
||||
|
||||
NOTIFICATION(MenuTitleAppearanceSettingsChanged);
|
||||
|
||||
extern const char WMNManaged[];
|
||||
extern const char WMNUnmanaged[];
|
||||
extern const char WMNChangedWorkspace[];
|
||||
extern const char WMNChangedState[];
|
||||
extern const char WMNChangedFocus[];
|
||||
extern const char WMNChangedStacking[];
|
||||
extern const char WMNChangedName[];
|
||||
|
||||
extern const char WMNWorkspaceCreated[];
|
||||
extern const char WMNWorkspaceDestroyed[];
|
||||
extern const char WMNWorkspaceChanged[];
|
||||
extern const char WMNWorkspaceNameChanged[];
|
||||
|
||||
extern const char WMNResetStacking[];
|
||||
|
||||
#endif // WNOTIFICATIONS_H_
|
||||
Reference in New Issue
Block a user