You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.2 KiB

/*
* Xournal++
*
* The definitions for the possibel toolbars
*
* @author Xournal++ Team
* https://github.com/xournalpp/xournalpp
*
* @license GNU GPLv2 or later
*/
typedef struct {
/**
* The name in the glade.xml file
*/
const char* guiName;
/**
* The name in the .ini file
*/
const char* propName;
/**
* if horizontal (true) or vertical (false)
*/
bool horizontal;
} ToolbarEntryDefintion;
const static ToolbarEntryDefintion TOOLBAR_DEFINITIONS[] = {
{"tbTop1", "toolbarTop1", true}, {"tbTop2", "toolbarTop2", true},
{"tbLeft1", "toolbarLeft1", false}, {"tbLeft2", "toolbarLeft2", false},
{"tbRight1", "toolbarRight1", false}, {"tbRight2", "toolbarRight2", false},
{"tbBottom1", "toolbarBottom1", true}, {"tbBottom2", "toolbarBottom2", true},
{"tbFloat1", "toolbarFloat1", true}, // define this index below as TBFloatFirst
{"tbFloat2", "toolbarFloat2", true}, {"tbFloat3", "toolbarFloat3", true},
{"tbFloat4", "toolbarFloat4", true} // define this index below as TBFloatLast
};
const static int TOOLBAR_DEFINITIONS_LEN = G_N_ELEMENTS(TOOLBAR_DEFINITIONS);
#define TBFloatFirst 8
#define TBFloatLast 11