summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/tag_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/tag_table.h')
-rw-r--r--utils/themeeditor/tag_table.h221
1 files changed, 220 insertions, 1 deletions
diff --git a/utils/themeeditor/tag_table.h b/utils/themeeditor/tag_table.h
index 0fde717f11..4c54832a61 100644
--- a/utils/themeeditor/tag_table.h
+++ b/utils/themeeditor/tag_table.h
@@ -30,6 +30,225 @@ namespace wps
#endif
+enum skin_token_type {
+
+ TOKEN_MARKER_CONTROL_TOKENS = -1,
+ SKIN_TOKEN_UNKNOWN,
+
+ /* Markers */
+ SKIN_TOKEN_CHARACTER,
+ SKIN_TOKEN_STRING,
+ SKIN_TOKEN_TRANSLATEDSTRING,
+
+ /* Alignment */
+ SKIN_TOKEN_ALIGN_LEFT,
+ SKIN_TOKEN_ALIGN_LEFT_RTL,
+ SKIN_TOKEN_ALIGN_CENTER,
+ SKIN_TOKEN_ALIGN_RIGHT,
+ SKIN_TOKEN_ALIGN_RIGHT_RTL,
+ SKIN_TOKEN_ALIGN_LANGDIRECTION,
+
+
+ /* Sublines */
+ SKIN_TOKEN_SUBLINE_TIMEOUT,
+ SKIN_TOKEN_SUBLINE_SCROLL,
+
+ /* Conditional */
+ SKIN_TOKEN_CONDITIONAL,
+ SKIN_TOKEN_CONDITIONAL_START,
+ SKIN_TOKEN_CONDITIONAL_OPTION,
+ SKIN_TOKEN_CONDITIONAL_END,
+
+ /* Viewport display */
+ SKIN_TOKEN_VIEWPORT_LOAD,
+ SKIN_TOKEN_VIEWPORT_CONDITIONAL,
+ SKIN_TOKEN_VIEWPORT_ENABLE,
+ SKIN_TOKEN_VIEWPORT_CUSTOMLIST,
+ SKIN_TOKEN_UIVIEWPORT_ENABLE,
+ SKIN_TOKEN_UIVIEWPORT_LOAD,
+
+ /* Battery */
+ TOKEN_MARKER_BATTERY,
+ SKIN_TOKEN_BATTERY_PERCENT,
+ SKIN_TOKEN_BATTERY_PERCENTBAR,
+ SKIN_TOKEN_BATTERY_VOLTS,
+ SKIN_TOKEN_BATTERY_TIME,
+ SKIN_TOKEN_BATTERY_CHARGER_CONNECTED,
+ SKIN_TOKEN_BATTERY_CHARGING,
+ SKIN_TOKEN_BATTERY_SLEEPTIME,
+ SKIN_TOKEN_USB_POWERED,
+
+ /* Sound */
+ TOKEN_MARKER_SOUND,
+ SKIN_TOKEN_SOUND_PITCH,
+ SKIN_TOKEN_SOUND_SPEED,
+ SKIN_TOKEN_REPLAYGAIN,
+ SKIN_TOKEN_CROSSFADE,
+
+ /* Time */
+ TOKEN_MARKER_RTC,
+ SKIN_TOKEN_RTC_PRESENT,
+
+ /* The begin/end values allow us to know if a token is an RTC one.
+ New RTC tokens should be added between the markers. */
+
+ SKIN_TOKENs_RTC_BEGIN, /* just the start marker, not an actual token */
+
+ SKIN_TOKEN_RTC_DAY_OF_MONTH,
+ SKIN_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,
+ SKIN_TOKEN_RTC_12HOUR_CFG,
+ SKIN_TOKEN_RTC_HOUR_24_ZERO_PADDED,
+ SKIN_TOKEN_RTC_HOUR_24,
+ SKIN_TOKEN_RTC_HOUR_12_ZERO_PADDED,
+ SKIN_TOKEN_RTC_HOUR_12,
+ SKIN_TOKEN_RTC_MONTH,
+ SKIN_TOKEN_RTC_MINUTE,
+ SKIN_TOKEN_RTC_SECOND,
+ SKIN_TOKEN_RTC_YEAR_2_DIGITS,
+ SKIN_TOKEN_RTC_YEAR_4_DIGITS,
+ SKIN_TOKEN_RTC_AM_PM_UPPER,
+ SKIN_TOKEN_RTC_AM_PM_LOWER,
+ SKIN_TOKEN_RTC_WEEKDAY_NAME,
+ SKIN_TOKEN_RTC_MONTH_NAME,
+ SKIN_TOKEN_RTC_DAY_OF_WEEK_START_MON,
+ SKIN_TOKEN_RTC_DAY_OF_WEEK_START_SUN,
+
+ SKIN_TOKENS_RTC_END, /* just the end marker, not an actual token */
+
+ /* Database */
+ TOKEN_MARKER_DATABASE,
+ SKIN_TOKEN_DATABASE_PLAYCOUNT,
+ SKIN_TOKEN_DATABASE_RATING,
+ SKIN_TOKEN_DATABASE_AUTOSCORE,
+
+ /* File */
+ TOKEN_MARKER_FILE,
+ SKIN_TOKEN_FILE_BITRATE,
+ SKIN_TOKEN_FILE_CODEC,
+ SKIN_TOKEN_FILE_FREQUENCY,
+ SKIN_TOKEN_FILE_FREQUENCY_KHZ,
+ SKIN_TOKEN_FILE_NAME,
+ SKIN_TOKEN_FILE_NAME_WITH_EXTENSION,
+ SKIN_TOKEN_FILE_PATH,
+ SKIN_TOKEN_FILE_SIZE,
+ SKIN_TOKEN_FILE_VBR,
+ SKIN_TOKEN_FILE_DIRECTORY,
+
+ /* Image */
+ TOKEN_MARKER_IMAGES,
+ SKIN_TOKEN_IMAGE_BACKDROP,
+ SKIN_TOKEN_IMAGE_PROGRESS_BAR,
+ SKIN_TOKEN_IMAGE_PRELOAD,
+ SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY,
+ SKIN_TOKEN_IMAGE_DISPLAY,
+
+ /* Albumart */
+ SKIN_TOKEN_ALBUMART_LOAD,
+ SKIN_TOKEN_ALBUMART_DISPLAY,
+
+ /* Metadata */
+ TOKEN_MARKER_METADATA,
+ SKIN_TOKEN_METADATA_ARTIST,
+ SKIN_TOKEN_METADATA_COMPOSER,
+ SKIN_TOKEN_METADATA_ALBUM_ARTIST,
+ SKIN_TOKEN_METADATA_GROUPING,
+ SKIN_TOKEN_METADATA_ALBUM,
+ SKIN_TOKEN_METADATA_GENRE,
+ SKIN_TOKEN_METADATA_DISC_NUMBER,
+ SKIN_TOKEN_METADATA_TRACK_NUMBER,
+ SKIN_TOKEN_METADATA_TRACK_TITLE,
+ SKIN_TOKEN_METADATA_VERSION,
+ SKIN_TOKEN_METADATA_YEAR,
+ SKIN_TOKEN_METADATA_COMMENT,
+
+ TOKEN_MARKER_PLAYBACK_INFO,
+ /* Mode */
+ SKIN_TOKEN_REPEAT_MODE,
+ SKIN_TOKEN_PLAYBACK_STATUS,
+ /* Progressbar */
+ SKIN_TOKEN_PROGRESSBAR,
+ SKIN_TOKEN_PLAYER_PROGRESSBAR,
+ /* Peakmeter */
+ SKIN_TOKEN_PEAKMETER,
+
+ /* Current track */
+ SKIN_TOKEN_TRACK_ELAPSED_PERCENT,
+ SKIN_TOKEN_TRACK_TIME_ELAPSED,
+ SKIN_TOKEN_TRACK_TIME_REMAINING,
+ SKIN_TOKEN_TRACK_LENGTH,
+ SKIN_TOKEN_TRACK_STARTING,
+ SKIN_TOKEN_TRACK_ENDING,
+
+ /* Playlist */
+ TOKEN_MARKER_PLAYLIST,
+ SKIN_TOKEN_PLAYLIST_ENTRIES,
+ SKIN_TOKEN_PLAYLIST_NAME,
+ SKIN_TOKEN_PLAYLIST_POSITION,
+ SKIN_TOKEN_PLAYLIST_SHUFFLE,
+
+
+ TOKEN_MARKER_MISC,
+ SKIN_TOKEN_ENABLE_THEME,
+ SKIN_TOKEN_DISABLE_THEME,
+ SKIN_TOKEN_DRAW_INBUILTBAR,
+ SKIN_TOKEN_LIST_TITLE_TEXT,
+ SKIN_TOKEN_LIST_TITLE_ICON,
+
+ SKIN_TOKEN_LOAD_FONT,
+
+ /* buttons */
+ SKIN_TOKEN_BUTTON_VOLUME,
+ SKIN_TOKEN_LASTTOUCH,
+ SKIN_TOKEN_TOUCHREGION,
+ /* Virtual LED */
+ SKIN_TOKEN_VLED_HDD,
+ /* Volume level */
+ SKIN_TOKEN_VOLUME,
+ SKIN_TOKEN_VOLUMEBAR,
+ /* hold */
+ SKIN_TOKEN_MAIN_HOLD,
+ SKIN_TOKEN_REMOTE_HOLD,
+
+ /* Setting option */
+ SKIN_TOKEN_SETTING,
+ SKIN_TOKEN_CURRENT_SCREEN,
+ SKIN_TOKEN_LANG_IS_RTL,
+
+ /* Recording Tokens */
+ TOKEN_MARKER_RECORDING,
+ SKIN_TOKEN_HAVE_RECORDING,
+ SKIN_TOKEN_IS_RECORDING,
+ SKIN_TOKEN_REC_FREQ,
+ SKIN_TOKEN_REC_ENCODER,
+ SKIN_TOKEN_REC_BITRATE, /* SWCODEC: MP3 bitrate, HWCODEC: MP3 "quality" */
+ SKIN_TOKEN_REC_MONO,
+ SKIN_TOKEN_REC_SECONDS,
+ SKIN_TOKEN_REC_MINUTES,
+ SKIN_TOKEN_REC_HOURS,
+
+
+ /* Radio Tokens */
+ TOKEN_MARKER_TUNER,
+ SKIN_TOKEN_HAVE_TUNER,
+ SKIN_TOKEN_TUNER_TUNED,
+ SKIN_TOKEN_TUNER_SCANMODE,
+ SKIN_TOKEN_TUNER_STEREO,
+ SKIN_TOKEN_TUNER_MINFREQ, /* changes based on "region" */
+ SKIN_TOKEN_TUNER_MAXFREQ, /* changes based on "region" */
+ SKIN_TOKEN_TUNER_CURFREQ,
+ SKIN_TOKEN_PRESET_ID, /* "id" of this preset.. really the array element number */
+ SKIN_TOKEN_PRESET_NAME,
+ SKIN_TOKEN_PRESET_FREQ,
+ SKIN_TOKEN_PRESET_COUNT,
+ /* RDS tokens */
+ SKIN_TOKEN_HAVE_RDS,
+ SKIN_TOKEN_RDS_NAME,
+ SKIN_TOKEN_RDS_TEXT,
+
+
+ TOKEN_MARKER_END, /* this needs to be the last value in this enum */
+};
+
/*
* Struct for tag parsing information
* name - The name of the tag, i.e. V for %V
@@ -60,7 +279,7 @@ namespace wps
*/
struct tag_info
{
-
+ enum skin_token_type type;
char* name;
char* params;