ARB
Macros | Functions | Variables
AW_global_awars.cxx File Reference
#include <arbdb.h>
#include <ad_cb.h>
#include <aw_global_awars.hxx>
#include <aw_awars.hxx>
#include <aw_root.hxx>
#include <aw_window.hxx>
Include dependency graph for AW_global_awars.cxx:

Go to the source code of this file.

Macros

#define TEMP_DB_PATH   "tmp/global_awars"
 
#define OPENURL   "xdg-open"
 
#define MAX_GLOBAL_AWARS   5
 

Functions

const charget_db_path (const AW_awar *awar)
 
static void awar_updated_cb (AW_root *, AW_awar *awar)
 
static void db_updated_cb (GBDATA *gbd, AW_awar *awar)
 
bool ARB_global_awars_initialized ()
 
bool ARB_in_expert_mode (AW_root *awr)
 
static void AWAR_AWM_MASK_changed_cb (AW_root *awr)
 
static void AWAR_AW_FOCUS_FOLLOWS_MOUSE_changed_cb (AW_root *awr)
 
void declare_awar_global (AW_awar *awar)
 
void ARB_declare_global_awars (AW_root *aw_root, AW_default aw_def)
 
GB_ERROR ARB_bind_global_awars (GBDATA *gb_main)
 

Variables

static GBDATAgb_main4awar = NULp
 
static bool in_global_awar_cb = false
 
static bool initialized = false
 
static AW_awardeclared_awar [MAX_GLOBAL_AWARS]
 
static int declared_awar_count = 0
 

Macro Definition Documentation

#define TEMP_DB_PATH   "tmp/global_awars"

Definition at line 13 of file AW_global_awars.cxx.

Referenced by get_db_path().

#define OPENURL   "xdg-open"

Definition at line 119 of file AW_global_awars.cxx.

Referenced by ARB_declare_global_awars().

#define MAX_GLOBAL_AWARS   5

Definition at line 122 of file AW_global_awars.cxx.

Referenced by declare_awar_global().

Function Documentation

const char* get_db_path ( const AW_awar awar)
inline

Definition at line 24 of file AW_global_awars.cxx.

References AW_awar::awar_name, GBS_global_string(), and TEMP_DB_PATH.

Referenced by awar_updated_cb(), and AW_awar::make_global().

static void awar_updated_cb ( AW_root ,
AW_awar awar 
)
static
static void db_updated_cb ( GBDATA gbd,
AW_awar awar 
)
static
bool ARB_global_awars_initialized ( )

Definition at line 90 of file AW_global_awars.cxx.

References initialized.

Referenced by ARB_in_expert_mode(), and awt_create_aww_vars().

bool ARB_in_expert_mode ( AW_root awr)
static void AWAR_AWM_MASK_changed_cb ( AW_root awr)
static
static void AWAR_AW_FOCUS_FOLLOWS_MOUSE_changed_cb ( AW_root awr)
static
void declare_awar_global ( AW_awar awar)
inline

Definition at line 127 of file AW_global_awars.cxx.

References aw_assert, and MAX_GLOBAL_AWARS.

Referenced by ARB_declare_global_awars().

void ARB_declare_global_awars ( AW_root aw_root,
AW_default  aw_def 
)
GB_ERROR ARB_bind_global_awars ( GBDATA gb_main)

Variable Documentation

GBDATA* gb_main4awar = NULp
static

Definition at line 22 of file AW_global_awars.cxx.

bool in_global_awar_cb = false
static

Definition at line 28 of file AW_global_awars.cxx.

Referenced by awar_updated_cb(), and db_updated_cb().

bool initialized = false
static

Definition at line 88 of file AW_global_awars.cxx.

Referenced by ARB_bind_global_awars(), and ARB_global_awars_initialized().

AW_awar* declared_awar[MAX_GLOBAL_AWARS]
static

Definition at line 124 of file AW_global_awars.cxx.

int declared_awar_count = 0
static

Definition at line 125 of file AW_global_awars.cxx.