GuiConstants.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. #ifndef _GUICONSTANTS_H_
  2. #define _GUICONSTANTS_H_
  3. #include "JuceHeader.h"
  4. /** the GUI class defines configuration and runtime constants
  5. pertaining to graphical elements */
  6. class GUI
  7. {
  8. public:
  9. // common
  10. static const int PAD ;
  11. static const int PAD3 ;
  12. static const int PAD4 ;
  13. static const int PAD6 ;
  14. static const int PAD8 ;
  15. static const Colour TEXT_EMPTY_COLOR ;
  16. static const Colour TEXT_NORMAL_COLOR ;
  17. static const Colour TEXT_INVALID_COLOR ;
  18. static const Colour TEXT_HILITE_COLOR ;
  19. static const Colour TEXT_HILITEBG_COLOR ;
  20. static const Colour TEXT_CARET_COLOR ;
  21. static const Colour TEXT_FOCUS_COLOR ;
  22. static const Colour TEXT_SHADOW_COLOR ;
  23. static const Colour TEXT_BG_COLOR ;
  24. static const Colour TEXT_INVALID_BG_COLOR ;
  25. // MainWindow
  26. static const int BORDERS_W ;
  27. static const int TITLEBAR_H ;
  28. static const int WINDOW_W ;
  29. static const int WINDOW_H ;
  30. static const int TITLEBAR_BTNS ;
  31. static const String IDLE_TITLE_TEXT ;
  32. static const String FILE_TITLE_TEXT ;
  33. static const String RTMP_TITLE_TEXT ;
  34. #ifdef TRAY_ICON
  35. static const String TRAY_TOOTIP ;
  36. #endif // TRAY_ICON
  37. // Controls
  38. static const String FILE_XMIT_TEXT ;
  39. static const String RTMP_XMIT_TEXT ;
  40. // Chat
  41. static const int N_STATIC_CHATLIST_CHILDREN ;
  42. static const int SCROLLBAR_W ;
  43. static const int CHATLIST_W ;
  44. static const int CHATLIST_X ;
  45. static const int CHATLIST_Y ;
  46. static const int OFFSET_CHATLIST_X ;
  47. static const int EMPTY_CHATLIST_H ;
  48. static const int CHATLIST_ITEM_H ;
  49. static const int CHATLIST_ITEM_W ;
  50. static const int PADDED_CHATLIST_ITEM_H ;
  51. static const int FONT_SIZE ;
  52. static const String CHAT_GROUP_TITLE ;
  53. static const String CHAT_PROMPT_TEXT ;
  54. static const String CONNECTING_TEXT ;
  55. static const String CLIENT_NICK ;
  56. static const String SERVER_NICK ;
  57. static const String IRC_USER_PREFIX ;
  58. static const String LCTV_USER_PREFIX ;
  59. // Config
  60. static const String SCREEN_GROUP_TEXT ;
  61. static const String CAMERA_GROUP_TEXT ;
  62. static const String AUDIO_GROUP_TEXT ;
  63. static const String TEXT_GROUP_TEXT ;
  64. static const String IMAGE_GROUP_TEXT ;
  65. static const String OUTPUT_GROUP_TEXT ;
  66. static const String CHAT_GROUP_TEXT ;
  67. static const String DELETE_BTN_CANCEL_TEXT ;
  68. static const String DELETE_BTN_DELETE_TEXT ;
  69. static const String DELETE_BTN_RESET_TEXT ;
  70. static const String IMAGE_CHOOSER_TEXT ;
  71. static const String DISPLAY_N_TEXT ;
  72. static const String SCREEN_N_TEXT ;
  73. static const String SCREEN_W_TEXT ;
  74. static const String SCREEN_H_TEXT ;
  75. static const String X_OFFSET_TEXT ;
  76. static const String Y_OFFSET_TEXT ;
  77. static const String CAMERA_DEV_TEXT ;
  78. static const String CAMERA_RES_TEXT ;
  79. static const String AUDIO_API_TEXT ;
  80. static const String AUDIO_DEV_TEXT ;
  81. static const String AUDIO_CODEC_TEXT ;
  82. static const String N_CHANNELS_TEXT ;
  83. static const String SAMPLERATE_TEXT ;
  84. static const String AUDIO_RATE_TEXT ;
  85. static const String MOTD_TEXT ;
  86. static const String TEXT_STYLE_TEXT ;
  87. static const String TEXT_POS_TEXT ;
  88. static const String IMAGE_LOC_TEXT ;
  89. static const String IMAGE_BTN_TEXT ;
  90. static const String OUTPUT_SINK_TEXT ;
  91. static const String OUTPUT_W_TEXT ;
  92. static const String OUTPUT_H_TEXT ;
  93. static const String FRAMERATE_TEXT ;
  94. static const String VIDEO_RATE_TEXT ;
  95. static const String DEST_FILE_TEXT ;
  96. static const String DEST_RTMP_TEXT ;
  97. static const String DEST_LCTV_TEXT ;
  98. static const String NETWORK_TEXT ;
  99. static const String PORT_TEXT ;
  100. static const String NICK_TEXT ;
  101. static const String PASS_TEXT ;
  102. static const String CHANNEL_TEXT ;
  103. static const String GREETING_TEXT ;
  104. static const String TIMESTAMP_TEXT ;
  105. static const String JOINPART_TEXT ;
  106. static const String IMG_FILE_EXTS ;
  107. static const double MIN_DISPLAY_N ;
  108. static const double MAX_DISPLAY_N ;
  109. static const double MIN_SCREEN_N ;
  110. static const double MAX_SCREEN_N ;
  111. static const double MIN_N_CHANNELS ;
  112. static const double MAX_N_CHANNELS ;
  113. static const int MAX_RES_N_CHARS ;
  114. static const int MAX_MOTD_LEN ;
  115. static const int MAX_FILENAME_LEN ;
  116. static const int MAX_PORT_N_CHARS ;
  117. // StatusBar
  118. static const String INIT_STATUS_TEXT ;
  119. static const String READY_STATUS_TEXT ;
  120. // Alerts
  121. enum AlertType { ALERT_TYPE_WARNING , ALERT_TYPE_ERROR } ;
  122. static const String MODAL_WARNING_TITLE ;
  123. static const String MODAL_ERROR_TITLE ;
  124. // Config help texts
  125. static const String CONFIG_SCREEN_HELP ;
  126. static const String CONFIG_CAMERA_HELP ;
  127. static const String CONFIG_AUDIO_HELP ;
  128. static const String CONFIG_TEXT_HELP ;
  129. static const String CONFIG_IMAGE_HELP ;
  130. static const String CONFIG_OUTPUT_HELP ;
  131. static const String CONFIG_CHAT_HELP ;
  132. static const String DISPLAY_N_HELP ;
  133. static const String SCREEN_N_HELP ;
  134. static const String SCREEN_W__HELP ;
  135. static const String SCREEN_H__HELP ;
  136. static const String X_OFFSET_HELP ;
  137. static const String Y_OFFSET_HELP ;
  138. static const String CAMERA_DEV_HELP ;
  139. static const String CAMERA_RES_HELP ;
  140. static const String AUDIO_API_HELP ;
  141. static const String AUDIO_DEV_HELP ;
  142. static const String AUDIO_CODEC_HELP ;
  143. static const String N_CHANNELS_HELP ;
  144. static const String SAMPLERATE_HELP ;
  145. static const String AUDIO_RATE_HELP ;
  146. static const String MOTD_HELP ;
  147. static const String TEXT_STYLE_HELP ;
  148. static const String TEXT_POS_HELP ;
  149. static const String IMAGE_LOC_HELP ;
  150. static const String IMAGE_BTN_HELP ;
  151. static const String OUTPUT_SINK_HELP ;
  152. static const String OUTPUT_W__HELP ;
  153. static const String OUTPUT_H__HELP ;
  154. static const String FRAMERATE_HELP ;
  155. static const String VIDEO_RATE_HELP ;
  156. static const String DEST_FILE_HELP ;
  157. static const String DEST_RTMP_HELP ;
  158. static const String DEST_LCTV_HELP ;
  159. static const String NETWORK_HELP ;
  160. static const String PORT_HELP ;
  161. static const String NICK_HELP ;
  162. static const String PASS_HELP ;
  163. static const String CHANNEL_HELP ;
  164. static const String GREETING_HELP ;
  165. static const String TIMESTAMP_HELP ;
  166. static const String JOINPART_HELP ;
  167. static const String SCREEN_HELP_TEXT ;
  168. static const String CAMERA_HELP_TEXT ;
  169. static const String AUDIO_HELP_TEXT ;
  170. static const String TEXT_HELP_TEXT ;
  171. static const String IMAGE_HELP_TEXT ;
  172. static const String FILE_HELP_TEXT ;
  173. static const String RTMP_HELP_TEXT ;
  174. static const String LCTV_HELP_TEXT ;
  175. static const String CHAT_HELP_TEXT ;
  176. // user error messages
  177. static const String GST_INSUFFICIENT_ERROR_MSG ;
  178. static const String IRC_INSUFFICIENT_ERROR_MSG ;
  179. static const String GST_INIT_ERROR_MSG ;
  180. static const String GST_PIPELINE_INST_ERROR_MSG ;
  181. static const String GST_BUS_INST_ERROR_MSG ;
  182. static const String GST_ADD_ERROR_MSG ;
  183. static const String GST_PIPELINE_INIT_ERROR_MSG ;
  184. static const String GST_CONFIG_ERROR_MSG ;
  185. static const String GST_XWIN_ERROR_MSG ;
  186. static const String SCREENCAP_INIT_ERROR_MSG ;
  187. static const String CAMERA_INIT_ERROR_MSG ;
  188. static const String TEXT_INIT_ERROR_MSG ;
  189. static const String IMAGE_INIT_ERROR_MSG ;
  190. static const String VMIXER_INIT_ERROR_MSG ;
  191. static const String VMIXER_PAD_INIT_ERROR_MSG ;
  192. static const String PREVIEW_INIT_ERROR_MSG ;
  193. static const String AUDIO_INIT_ERROR_MSG ;
  194. static const String MUXER_INIT_ERROR_MSG ;
  195. static const String OUTPUT_INIT_ERROR_MSG ;
  196. static const String SCREENCAP_LINK_ERROR_MSG ;
  197. static const String CAMERA_LINK_ERROR_MSG ;
  198. static const String TEXT_LINK_ERROR_MSG ;
  199. static const String IMAGE_LINK_ERROR_MSG ;
  200. static const String VMIXER_LINK_ERROR_MSG ;
  201. static const String VMIXER_PAD_LINK_ERROR_MSG ;
  202. static const String VMIXER_BIN_LINK_ERROR_MSG ;
  203. static const String PREVIEW_LINK_ERROR_MSG ;
  204. static const String AUDIO_LINK_ERROR_MSG ;
  205. static const String MUXER_LINK_ERROR_MSG ;
  206. static const String MUXER_BIN_LINK_ERROR_MSG ;
  207. static const String OUTPUT_LINK_ERROR_MSG ;
  208. static const String GST_STATE_ERROR_MSG ;
  209. static const String STORAGE_WRITE_ERROR_MSG ;
  210. static const String PRESET_NAME_ERROR_MSG ;
  211. static const String PRESET_RENAME_ERROR_MSG ;
  212. static const String CONFIG_INVALID_ERROR_MSG ;
  213. static const String ALSA_INIT_ERROR_MSG ;
  214. static const String PULSE_INIT_ERROR_MSG ;
  215. static const String JACK_INIT_ERROR_MSG ;
  216. static const String XV_INIT_ERROR_MSG ;
  217. static const String FILE_SINK_ERROR_MSG ;
  218. } ;
  219. #endif // _GUICONSTANTS_H_