commit dfe8ff098c8cd88c717cb7f3bf57986a3d20ffbd
parent 4d67a98a3ee1f04418f1697a3ab70fa106abca86
Author: nibo <nibo@relim.de>
Date: Fri, 11 Apr 2025 11:56:45 +0200
Delete src/types.h
Diffstat:
| D | src/types.h | | | 354 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 354 deletions(-)
diff --git a/src/types.h b/src/types.h
@@ -1,354 +0,0 @@
-#include <stdint.h>
-
-#ifndef _TYPES_H_
-#define _TYPES_H_
-
-enum TextType {
- TT_CHORD,
- TT_ANNOT,
- TT_CHORUS,
- TT_FOOTER,
- TT_GRID,
- TT_TAB,
- TT_TOC,
- TT_TOC_TITLE,
- TT_TEXT,
- TT_TITLE,
- TT_SUBTITLE,
- TT_LABEL,
- TT_COMMENT,
- TT_COMMENT_ITALIC,
- TT_COMMENT_BOX,
- TT_LENGTH
-};
-
-enum Alignment {
- A_LEFT,
- A_CENTER,
- A_RIGHT
-};
-
-enum Anchor {
- AN_PAPER,
- AN_PAGE,
- AN_COLUMN,
- AN_LINE,
- AN_FLOAT
-};
-
-enum BreakType {
- BT_LINE,
- BT_PAGE,
- BT_COLUMN
-};
-
-enum ChordDiagramContent {
- CDC_UNINITIALIZED,
- CDC_STRING,
- CDC_KEYBOARD,
- CDC_CHORD_MAP
-};
-
-enum ChordQualifier {
- CQ_MIN,
- CQ_MAJ,
- CQ_AUG,
- CQ_DIM
-};
-
-enum SectionType {
- ST_NEWSONG,
- ST_CHORUS,
- ST_VERSE,
- ST_BRIDGE,
- ST_TAB,
- ST_GRID,
- ST_CUSTOM
-};
-
-enum SizeType {
- ST_POINT,
- ST_PERCENT,
- ST_EM,
- ST_EX
-};
-
-enum FontFamily {
- FF_NORMAL,
- FF_SANS,
- FF_SERIF,
- FF_MONOSPACE
-};
-
-enum FontStyle {
- FS_ROMAN,
- FS_OBLIQUE,
- FS_ITALIC
-};
-
-enum FontWeight {
- FW_REGULAR,
- FW_BOLD
-};
-
-enum LineStyle {
- LS_SINGLE,
- LS_DOUBLE,
- LS_NONE
-};
-
-enum NoteType {
- NT_NOTE,
- NT_SHARP,
- NT_FLAT
-};
-
-struct FontPresence {
- bool name;
- bool family;
- bool style;
- bool weight;
- bool size;
-};
-
-struct ChoStylePresence {
- struct FontPresence font;
- bool foreground_color;
- bool background_color;
- bool underline_style;
- bool underline_color;
- bool overline_style;
- bool overline_color;
- bool strikethrough;
- bool strikethrough_color;
- bool boxed;
- bool boxed_color;
- bool rise;
- bool href;
-};
-
-struct Font {
- char *name;
- enum FontFamily family;
- enum FontStyle style;
- enum FontWeight weight;
- double size;
-};
-
-struct RGBColor {
- uint8_t red;
- uint8_t green;
- uint8_t blue;
-};
-
-struct ChoStyle {
- struct Font *font;
- struct RGBColor *foreground_color;
- struct RGBColor *background_color;
- struct RGBColor *underline_color;
- struct RGBColor *overline_color;
- struct RGBColor *strikethrough_color;
- struct RGBColor *boxed_color;
- char *href;
- enum LineStyle underline_style;
- enum LineStyle overline_style;
- bool strikethrough;
- bool boxed;
- double rise;
-};
-
-struct ChoChord {
- struct ChoStyle *style;
- bool is_canonical;
- char *name;
- char *root;
- enum ChordQualifier qual;
- char *ext;
- char *bass;
- char *display;
-};
-
-struct ChoText {
- struct ChoStyle *style;
- char *text;
-};
-
-struct ChoLineItem {
- bool is_text;
- union {
- struct ChoImage *image;
- struct ChoText *text;
- } u;
-};
-
-struct ChoLineItemAbove {
- int position;
- bool is_chord;
- union {
- struct ChoChord *chord;
- struct ChoText *annot;
- } u;
-};
-
-struct ChoLine {
- struct ChoLineItemAbove **text_above;
- struct ChoLineItem **items;
- enum BreakType btype;
-};
-
-struct ChoMetadata {
- char *name;
- char *value;
- struct ChoStyle *style;
-};
-
-struct ChoSection {
- enum SectionType type;
- struct ChoText *label;
- struct ChoLine **lines;
-};
-
-struct ChoSong {
- struct ChoMetadata **metadata;
- struct ChoSection **sections;
- struct ChordDiagram **diagrams;
- bool present_text_types[TT_LENGTH];
-};
-
-struct ChoImage {
- bool is_asset;
- char *id;
- char *src;
- struct Size *width;
- struct Size *height;
- struct Size *width_scale;
- struct Size *height_scale;
- enum Alignment align;
- double border;
- struct Size *spread_space;
- char *href;
- struct Size *x;
- struct Size *y;
- enum Anchor anchor;
- struct Size *dx;
- struct Size *dy;
- struct Size *w;
- struct Size *h;
- bool bbox;
-};
-
-struct Size {
- enum SizeType type;
- double d;
-};
-
-struct StringDiagram {
- char *name;
- int8_t base_fret;
- int8_t frets[12];
- int8_t fingers[12];
-};
-
-struct KeyboardDiagram {
- char *name;
- int8_t keys[24];
-};
-
-struct ChordMap {
- char *name;
- char *display;
-};
-
-struct ChordDiagram {
- bool show;
- struct RGBColor *color;
- enum ChordDiagramContent type;
- union {
- struct StringDiagram *sd;
- struct KeyboardDiagram *kd;
- struct ChordMap *cm;
- } u;
-};
-
-enum NotationSystem {
- NS_COMMON,
- NS_GERMAN,
- NS_SCANDINAVIAN,
- NS_LATIN,
- NS_ROMAN,
- NS_NASHVILLE,
- NS_CUSTOM
-};
-
-enum ParseMode {
- PM_STRICT,
- PM_RELAXED
-};
-
-enum Instrument {
- INS_GUITAR,
- INS_KEYBOARD,
- INS_MANDOLIN,
- INS_UKULELE
-};
-
-struct InstrumentInfo {
- char *name;
- char *description;
- char *tuning;
-};
-
-struct Note {
- char *note;
- char *sharp;
- char *flat;
-};
-
-struct ConfigChords {
- enum NotationSystem notation_system;
- enum ParseMode mode;
-};
-
-struct ConfigChorus {
- char *label;
- bool quote;
-};
-
-struct ConfigParser {
- struct ConfigChords *chords;
- struct Note **notes;
-};
-
-struct ConfigChordDiagram {
- bool show;
- enum Instrument instrument;
-};
-
-struct ConfigToc {
- bool show;
- char *title;
-};
-
-struct ConfigPageNo {
- bool show;
- enum Alignment align;
-};
-
-struct ConfigOutput {
- struct ConfigChorus *chorus;
- struct ConfigToc *toc;
- struct ConfigChordDiagram *diagram;
- struct ConfigPageNo *page_no;
- struct ChoStyle *styles[TT_LENGTH];
- struct Note **notes;
- enum NotationSystem notation_system;
- bool start_song_on_new_page;
-};
-
-struct Config {
- char *metadata_separator;
- struct ConfigOutput *output;
- struct ConfigParser *parser;
-};
-
-#endif /* _TYPES_H_ */