QtAwesome.h 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. /**
  2. * QtAwesome - use font-awesome (or other font icons) in your c++ / Qt Application
  3. *
  4. * MIT Licensed
  5. *
  6. * Copyright 2013-2015 - Reliable Bits Software by Blommers IT. All Rights Reserved.
  7. * Author Rick Blommers
  8. */
  9. #ifndef QTAWESOME_H
  10. #define QTAWESOME_H
  11. #include "QtAwesomeAnim.h"
  12. #include <QIcon>
  13. #include <QIconEngine>
  14. #include <QPainter>
  15. #include <QRect>
  16. #include <QVariantMap>
  17. /// A list of all icon-names with the codepoint (unicode-value) on the right
  18. /// You can use the names on the page http://fortawesome.github.io/Font-Awesome/design.html
  19. namespace fa {
  20. enum icon {
  21. fa_500px = 0xf26e,
  22. addressbook = 0xf2b9,
  23. addressbooko = 0xf2ba,
  24. addresscard = 0xf2bb,
  25. addresscardo = 0xf2bc,
  26. adjust = 0xf042,
  27. adn = 0xf170,
  28. aligncenter = 0xf037,
  29. alignjustify = 0xf039,
  30. alignleft = 0xf036,
  31. alignright = 0xf038,
  32. amazon = 0xf270,
  33. ambulance = 0xf0f9,
  34. americansignlanguageinterpreting = 0xf2a3,
  35. anchor = 0xf13d,
  36. android = 0xf17b,
  37. angellist = 0xf209,
  38. angledoubledown = 0xf103,
  39. angledoubleleft = 0xf100,
  40. angledoubleright = 0xf101,
  41. angledoubleup = 0xf102,
  42. angledown = 0xf107,
  43. angleleft = 0xf104,
  44. angleright = 0xf105,
  45. angleup = 0xf106,
  46. apple = 0xf179,
  47. archive = 0xf187,
  48. areachart = 0xf1fe,
  49. arrowcircledown = 0xf0ab,
  50. arrowcircleleft = 0xf0a8,
  51. arrowcircleodown = 0xf01a,
  52. arrowcircleoleft = 0xf190,
  53. arrowcircleoright = 0xf18e,
  54. arrowcircleoup = 0xf01b,
  55. arrowcircleright = 0xf0a9,
  56. arrowcircleup = 0xf0aa,
  57. arrowdown = 0xf063,
  58. arrowleft = 0xf060,
  59. arrowright = 0xf061,
  60. arrowup = 0xf062,
  61. arrows = 0xf047,
  62. arrowsalt = 0xf0b2,
  63. arrowsh = 0xf07e,
  64. arrowsv = 0xf07d,
  65. aslinterpreting = 0xf2a3,
  66. assistivelisteningsystems = 0xf2a2,
  67. asterisk = 0xf069,
  68. at = 0xf1fa,
  69. audiodescription = 0xf29e,
  70. automobile = 0xf1b9,
  71. backward = 0xf04a,
  72. balancescale = 0xf24e,
  73. ban = 0xf05e,
  74. bandcamp = 0xf2d5,
  75. bank = 0xf19c,
  76. barchart = 0xf080,
  77. barcharto = 0xf080,
  78. barcode = 0xf02a,
  79. bars = 0xf0c9,
  80. bath = 0xf2cd,
  81. bathtub = 0xf2cd,
  82. battery = 0xf240,
  83. battery0 = 0xf244,
  84. battery1 = 0xf243,
  85. battery2 = 0xf242,
  86. battery3 = 0xf241,
  87. battery4 = 0xf240,
  88. batteryempty = 0xf244,
  89. batteryfull = 0xf240,
  90. batteryhalf = 0xf242,
  91. batteryquarter = 0xf243,
  92. batterythreequarters = 0xf241,
  93. bed = 0xf236,
  94. beer = 0xf0fc,
  95. behance = 0xf1b4,
  96. behancesquare = 0xf1b5,
  97. bell = 0xf0f3,
  98. bello = 0xf0a2,
  99. bellslash = 0xf1f6,
  100. bellslasho = 0xf1f7,
  101. bicycle = 0xf206,
  102. binoculars = 0xf1e5,
  103. birthdaycake = 0xf1fd,
  104. bitbucket = 0xf171,
  105. bitbucketsquare = 0xf172,
  106. bitcoin = 0xf15a,
  107. blacktie = 0xf27e,
  108. blind = 0xf29d,
  109. bluetooth = 0xf293,
  110. bluetoothb = 0xf294,
  111. bold = 0xf032,
  112. bolt = 0xf0e7,
  113. bomb = 0xf1e2,
  114. book = 0xf02d,
  115. bookmark = 0xf02e,
  116. bookmarko = 0xf097,
  117. braille = 0xf2a1,
  118. briefcase = 0xf0b1,
  119. btc = 0xf15a,
  120. bug = 0xf188,
  121. building = 0xf1ad,
  122. buildingo = 0xf0f7,
  123. bullhorn = 0xf0a1,
  124. bullseye = 0xf140,
  125. bus = 0xf207,
  126. buysellads = 0xf20d,
  127. cab = 0xf1ba,
  128. calculator = 0xf1ec,
  129. calendar = 0xf073,
  130. calendarchecko = 0xf274,
  131. calendarminuso = 0xf272,
  132. calendaro = 0xf133,
  133. calendarpluso = 0xf271,
  134. calendartimeso = 0xf273,
  135. camera = 0xf030,
  136. cameraretro = 0xf083,
  137. car = 0xf1b9,
  138. caretdown = 0xf0d7,
  139. caretleft = 0xf0d9,
  140. caretright = 0xf0da,
  141. caretsquareodown = 0xf150,
  142. caretsquareoleft = 0xf191,
  143. caretsquareoright = 0xf152,
  144. caretsquareoup = 0xf151,
  145. caretup = 0xf0d8,
  146. cartarrowdown = 0xf218,
  147. cartplus = 0xf217,
  148. cc = 0xf20a,
  149. ccamex = 0xf1f3,
  150. ccdinersclub = 0xf24c,
  151. ccdiscover = 0xf1f2,
  152. ccjcb = 0xf24b,
  153. ccmastercard = 0xf1f1,
  154. ccpaypal = 0xf1f4,
  155. ccstripe = 0xf1f5,
  156. ccvisa = 0xf1f0,
  157. certificate = 0xf0a3,
  158. chain = 0xf0c1,
  159. chainbroken = 0xf127,
  160. check = 0xf00c,
  161. checkcircle = 0xf058,
  162. checkcircleo = 0xf05d,
  163. checksquare = 0xf14a,
  164. checksquareo = 0xf046,
  165. chevroncircledown = 0xf13a,
  166. chevroncircleleft = 0xf137,
  167. chevroncircleright = 0xf138,
  168. chevroncircleup = 0xf139,
  169. chevrondown = 0xf078,
  170. chevronleft = 0xf053,
  171. chevronright = 0xf054,
  172. chevronup = 0xf077,
  173. child = 0xf1ae,
  174. chrome = 0xf268,
  175. circle = 0xf111,
  176. circleo = 0xf10c,
  177. circleonotch = 0xf1ce,
  178. circlethin = 0xf1db,
  179. clipboard = 0xf0ea,
  180. clocko = 0xf017,
  181. clone = 0xf24d,
  182. close = 0xf00d,
  183. cloud = 0xf0c2,
  184. clouddownload = 0xf0ed,
  185. cloudupload = 0xf0ee,
  186. cny = 0xf157,
  187. code = 0xf121,
  188. codefork = 0xf126,
  189. codepen = 0xf1cb,
  190. codiepie = 0xf284,
  191. coffee = 0xf0f4,
  192. cog = 0xf013,
  193. cogs = 0xf085,
  194. columns = 0xf0db,
  195. comment = 0xf075,
  196. commento = 0xf0e5,
  197. commenting = 0xf27a,
  198. commentingo = 0xf27b,
  199. comments = 0xf086,
  200. commentso = 0xf0e6,
  201. compass = 0xf14e,
  202. compress = 0xf066,
  203. connectdevelop = 0xf20e,
  204. contao = 0xf26d,
  205. copy = 0xf0c5,
  206. copyright = 0xf1f9,
  207. creativecommons = 0xf25e,
  208. creditcard = 0xf09d,
  209. creditcardalt = 0xf283,
  210. crop = 0xf125,
  211. crosshairs = 0xf05b,
  212. css3 = 0xf13c,
  213. cube = 0xf1b2,
  214. cubes = 0xf1b3,
  215. cut = 0xf0c4,
  216. cutlery = 0xf0f5,
  217. dashboard = 0xf0e4,
  218. dashcube = 0xf210,
  219. database = 0xf1c0,
  220. deaf = 0xf2a4,
  221. deafness = 0xf2a4,
  222. dedent = 0xf03b,
  223. delicious = 0xf1a5,
  224. desktop = 0xf108,
  225. deviantart = 0xf1bd,
  226. diamond = 0xf219,
  227. digg = 0xf1a6,
  228. dollar = 0xf155,
  229. dotcircleo = 0xf192,
  230. download = 0xf019,
  231. dribbble = 0xf17d,
  232. driverslicense = 0xf2c2,
  233. driverslicenseo = 0xf2c3,
  234. dropbox = 0xf16b,
  235. drupal = 0xf1a9,
  236. edge = 0xf282,
  237. edit = 0xf044,
  238. eercast = 0xf2da,
  239. eject = 0xf052,
  240. ellipsish = 0xf141,
  241. ellipsisv = 0xf142,
  242. empire = 0xf1d1,
  243. envelope = 0xf0e0,
  244. envelopeo = 0xf003,
  245. envelopeopen = 0xf2b6,
  246. envelopeopeno = 0xf2b7,
  247. envelopesquare = 0xf199,
  248. envira = 0xf299,
  249. eraser = 0xf12d,
  250. etsy = 0xf2d7,
  251. eur = 0xf153,
  252. euro = 0xf153,
  253. exchange = 0xf0ec,
  254. exclamation = 0xf12a,
  255. exclamationcircle = 0xf06a,
  256. exclamationtriangle = 0xf071,
  257. expand = 0xf065,
  258. expeditedssl = 0xf23e,
  259. externallink = 0xf08e,
  260. externallinksquare = 0xf14c,
  261. eye = 0xf06e,
  262. eyeslash = 0xf070,
  263. eyedropper = 0xf1fb,
  264. fa = 0xf2b4,
  265. facebook = 0xf09a,
  266. facebookf = 0xf09a,
  267. facebookofficial = 0xf230,
  268. facebooksquare = 0xf082,
  269. fastbackward = 0xf049,
  270. fastforward = 0xf050,
  271. fax = 0xf1ac,
  272. feed = 0xf09e,
  273. female = 0xf182,
  274. fighterjet = 0xf0fb,
  275. file = 0xf15b,
  276. filearchiveo = 0xf1c6,
  277. fileaudioo = 0xf1c7,
  278. filecodeo = 0xf1c9,
  279. fileexcelo = 0xf1c3,
  280. fileimageo = 0xf1c5,
  281. filemovieo = 0xf1c8,
  282. fileo = 0xf016,
  283. filepdfo = 0xf1c1,
  284. filephotoo = 0xf1c5,
  285. filepictureo = 0xf1c5,
  286. filepowerpointo = 0xf1c4,
  287. filesoundo = 0xf1c7,
  288. filetext = 0xf15c,
  289. filetexto = 0xf0f6,
  290. filevideoo = 0xf1c8,
  291. filewordo = 0xf1c2,
  292. filezipo = 0xf1c6,
  293. fileso = 0xf0c5,
  294. film = 0xf008,
  295. filter = 0xf0b0,
  296. fire = 0xf06d,
  297. fireextinguisher = 0xf134,
  298. firefox = 0xf269,
  299. firstorder = 0xf2b0,
  300. flag = 0xf024,
  301. flagcheckered = 0xf11e,
  302. flago = 0xf11d,
  303. flash = 0xf0e7,
  304. flask = 0xf0c3,
  305. flickr = 0xf16e,
  306. floppyo = 0xf0c7,
  307. folder = 0xf07b,
  308. foldero = 0xf114,
  309. folderopen = 0xf07c,
  310. folderopeno = 0xf115,
  311. font = 0xf031,
  312. fontawesome = 0xf2b4,
  313. fonticons = 0xf280,
  314. fortawesome = 0xf286,
  315. forumbee = 0xf211,
  316. forward = 0xf04e,
  317. foursquare = 0xf180,
  318. freecodecamp = 0xf2c5,
  319. frowno = 0xf119,
  320. futbolo = 0xf1e3,
  321. gamepad = 0xf11b,
  322. gavel = 0xf0e3,
  323. gbp = 0xf154,
  324. ge = 0xf1d1,
  325. gear = 0xf013,
  326. gears = 0xf085,
  327. genderless = 0xf22d,
  328. getpocket = 0xf265,
  329. gg = 0xf260,
  330. ggcircle = 0xf261,
  331. gift = 0xf06b,
  332. git = 0xf1d3,
  333. gitsquare = 0xf1d2,
  334. github = 0xf09b,
  335. githubalt = 0xf113,
  336. githubsquare = 0xf092,
  337. gitlab = 0xf296,
  338. gittip = 0xf184,
  339. glass = 0xf000,
  340. glide = 0xf2a5,
  341. glideg = 0xf2a6,
  342. globe = 0xf0ac,
  343. google = 0xf1a0,
  344. googleplus = 0xf0d5,
  345. googlepluscircle = 0xf2b3,
  346. googleplusofficial = 0xf2b3,
  347. googleplussquare = 0xf0d4,
  348. googlewallet = 0xf1ee,
  349. graduationcap = 0xf19d,
  350. gratipay = 0xf184,
  351. grav = 0xf2d6,
  352. group = 0xf0c0,
  353. hsquare = 0xf0fd,
  354. hackernews = 0xf1d4,
  355. handgrabo = 0xf255,
  356. handlizardo = 0xf258,
  357. handodown = 0xf0a7,
  358. handoleft = 0xf0a5,
  359. handoright = 0xf0a4,
  360. handoup = 0xf0a6,
  361. handpapero = 0xf256,
  362. handpeaceo = 0xf25b,
  363. handpointero = 0xf25a,
  364. handrocko = 0xf255,
  365. handscissorso = 0xf257,
  366. handspocko = 0xf259,
  367. handstopo = 0xf256,
  368. handshakeo = 0xf2b5,
  369. hardofhearing = 0xf2a4,
  370. hashtag = 0xf292,
  371. hddo = 0xf0a0,
  372. header = 0xf1dc,
  373. headphones = 0xf025,
  374. heart = 0xf004,
  375. hearto = 0xf08a,
  376. heartbeat = 0xf21e,
  377. history = 0xf1da,
  378. home = 0xf015,
  379. hospitalo = 0xf0f8,
  380. hotel = 0xf236,
  381. hourglass = 0xf254,
  382. hourglass1 = 0xf251,
  383. hourglass2 = 0xf252,
  384. hourglass3 = 0xf253,
  385. hourglassend = 0xf253,
  386. hourglasshalf = 0xf252,
  387. hourglasso = 0xf250,
  388. hourglassstart = 0xf251,
  389. houzz = 0xf27c,
  390. html5 = 0xf13b,
  391. icursor = 0xf246,
  392. idbadge = 0xf2c1,
  393. idcard = 0xf2c2,
  394. idcardo = 0xf2c3,
  395. ils = 0xf20b,
  396. image = 0xf03e,
  397. imdb = 0xf2d8,
  398. inbox = 0xf01c,
  399. indent = 0xf03c,
  400. industry = 0xf275,
  401. info = 0xf129,
  402. infocircle = 0xf05a,
  403. inr = 0xf156,
  404. instagram = 0xf16d,
  405. institution = 0xf19c,
  406. internetexplorer = 0xf26b,
  407. intersex = 0xf224,
  408. ioxhost = 0xf208,
  409. italic = 0xf033,
  410. joomla = 0xf1aa,
  411. jpy = 0xf157,
  412. jsfiddle = 0xf1cc,
  413. key = 0xf084,
  414. keyboardo = 0xf11c,
  415. krw = 0xf159,
  416. language = 0xf1ab,
  417. laptop = 0xf109,
  418. lastfm = 0xf202,
  419. lastfmsquare = 0xf203,
  420. leaf = 0xf06c,
  421. leanpub = 0xf212,
  422. legal = 0xf0e3,
  423. lemono = 0xf094,
  424. leveldown = 0xf149,
  425. levelup = 0xf148,
  426. lifebouy = 0xf1cd,
  427. lifebuoy = 0xf1cd,
  428. lifering = 0xf1cd,
  429. lifesaver = 0xf1cd,
  430. lightbulbo = 0xf0eb,
  431. linechart = 0xf201,
  432. link = 0xf0c1,
  433. linkedin = 0xf0e1,
  434. linkedinsquare = 0xf08c,
  435. linode = 0xf2b8,
  436. fa_linux = 0xf17c,
  437. list = 0xf03a,
  438. listalt = 0xf022,
  439. listol = 0xf0cb,
  440. listul = 0xf0ca,
  441. locationarrow = 0xf124,
  442. lock = 0xf023,
  443. longarrowdown = 0xf175,
  444. longarrowleft = 0xf177,
  445. longarrowright = 0xf178,
  446. longarrowup = 0xf176,
  447. lowvision = 0xf2a8,
  448. magic = 0xf0d0,
  449. magnet = 0xf076,
  450. mailforward = 0xf064,
  451. mailreply = 0xf112,
  452. mailreplyall = 0xf122,
  453. male = 0xf183,
  454. map = 0xf279,
  455. mapmarker = 0xf041,
  456. mapo = 0xf278,
  457. mappin = 0xf276,
  458. mapsigns = 0xf277,
  459. mars = 0xf222,
  460. marsdouble = 0xf227,
  461. marsstroke = 0xf229,
  462. marsstrokeh = 0xf22b,
  463. marsstrokev = 0xf22a,
  464. maxcdn = 0xf136,
  465. meanpath = 0xf20c,
  466. medium = 0xf23a,
  467. medkit = 0xf0fa,
  468. meetup = 0xf2e0,
  469. meho = 0xf11a,
  470. mercury = 0xf223,
  471. microchip = 0xf2db,
  472. microphone = 0xf130,
  473. microphoneslash = 0xf131,
  474. minus = 0xf068,
  475. minuscircle = 0xf056,
  476. minussquare = 0xf146,
  477. minussquareo = 0xf147,
  478. mixcloud = 0xf289,
  479. mobile = 0xf10b,
  480. mobilephone = 0xf10b,
  481. modx = 0xf285,
  482. money = 0xf0d6,
  483. moono = 0xf186,
  484. mortarboard = 0xf19d,
  485. motorcycle = 0xf21c,
  486. mousepointer = 0xf245,
  487. music = 0xf001,
  488. navicon = 0xf0c9,
  489. neuter = 0xf22c,
  490. newspapero = 0xf1ea,
  491. objectgroup = 0xf247,
  492. objectungroup = 0xf248,
  493. odnoklassniki = 0xf263,
  494. odnoklassnikisquare = 0xf264,
  495. opencart = 0xf23d,
  496. openid = 0xf19b,
  497. opera = 0xf26a,
  498. optinmonster = 0xf23c,
  499. outdent = 0xf03b,
  500. pagelines = 0xf18c,
  501. paintbrush = 0xf1fc,
  502. paperplane = 0xf1d8,
  503. paperplaneo = 0xf1d9,
  504. paperclip = 0xf0c6,
  505. paragraph = 0xf1dd,
  506. paste = 0xf0ea,
  507. pause = 0xf04c,
  508. pausecircle = 0xf28b,
  509. pausecircleo = 0xf28c,
  510. paw = 0xf1b0,
  511. paypal = 0xf1ed,
  512. pencil = 0xf040,
  513. pencilsquare = 0xf14b,
  514. pencilsquareo = 0xf044,
  515. percent = 0xf295,
  516. phone = 0xf095,
  517. phonesquare = 0xf098,
  518. photo = 0xf03e,
  519. pictureo = 0xf03e,
  520. piechart = 0xf200,
  521. piedpiper = 0xf2ae,
  522. piedpiperalt = 0xf1a8,
  523. piedpiperpp = 0xf1a7,
  524. pinterest = 0xf0d2,
  525. pinterestp = 0xf231,
  526. pinterestsquare = 0xf0d3,
  527. plane = 0xf072,
  528. play = 0xf04b,
  529. playcircle = 0xf144,
  530. playcircleo = 0xf01d,
  531. plug = 0xf1e6,
  532. plus = 0xf067,
  533. pluscircle = 0xf055,
  534. plussquare = 0xf0fe,
  535. plussquareo = 0xf196,
  536. podcast = 0xf2ce,
  537. poweroff = 0xf011,
  538. print = 0xf02f,
  539. producthunt = 0xf288,
  540. puzzlepiece = 0xf12e,
  541. qq = 0xf1d6,
  542. qrcode = 0xf029,
  543. question = 0xf128,
  544. questioncircle = 0xf059,
  545. questioncircleo = 0xf29c,
  546. quora = 0xf2c4,
  547. quoteleft = 0xf10d,
  548. quoteright = 0xf10e,
  549. ra = 0xf1d0,
  550. random = 0xf074,
  551. ravelry = 0xf2d9,
  552. rebel = 0xf1d0,
  553. recycle = 0xf1b8,
  554. reddit = 0xf1a1,
  555. redditalien = 0xf281,
  556. redditsquare = 0xf1a2,
  557. refresh = 0xf021,
  558. registered = 0xf25d,
  559. remove = 0xf00d,
  560. renren = 0xf18b,
  561. reorder = 0xf0c9,
  562. repeat = 0xf01e,
  563. reply = 0xf112,
  564. replyall = 0xf122,
  565. resistance = 0xf1d0,
  566. retweet = 0xf079,
  567. rmb = 0xf157,
  568. road = 0xf018,
  569. rocket = 0xf135,
  570. rotateleft = 0xf0e2,
  571. rotateright = 0xf01e,
  572. rouble = 0xf158,
  573. rss = 0xf09e,
  574. rsssquare = 0xf143,
  575. rub = 0xf158,
  576. ruble = 0xf158,
  577. rupee = 0xf156,
  578. s15 = 0xf2cd,
  579. safari = 0xf267,
  580. save = 0xf0c7,
  581. scissors = 0xf0c4,
  582. scribd = 0xf28a,
  583. search = 0xf002,
  584. searchminus = 0xf010,
  585. searchplus = 0xf00e,
  586. sellsy = 0xf213,
  587. send = 0xf1d8,
  588. sendo = 0xf1d9,
  589. server = 0xf233,
  590. share = 0xf064,
  591. sharealt = 0xf1e0,
  592. sharealtsquare = 0xf1e1,
  593. sharesquare = 0xf14d,
  594. sharesquareo = 0xf045,
  595. shekel = 0xf20b,
  596. sheqel = 0xf20b,
  597. shield = 0xf132,
  598. ship = 0xf21a,
  599. shirtsinbulk = 0xf214,
  600. shoppingbag = 0xf290,
  601. shoppingbasket = 0xf291,
  602. shoppingcart = 0xf07a,
  603. shower = 0xf2cc,
  604. signin = 0xf090,
  605. signlanguage = 0xf2a7,
  606. signout = 0xf08b,
  607. signal = 0xf012,
  608. signing = 0xf2a7,
  609. simplybuilt = 0xf215,
  610. sitemap = 0xf0e8,
  611. skyatlas = 0xf216,
  612. skype = 0xf17e,
  613. slack = 0xf198,
  614. sliders = 0xf1de,
  615. slideshare = 0xf1e7,
  616. smileo = 0xf118,
  617. snapchat = 0xf2ab,
  618. snapchatghost = 0xf2ac,
  619. snapchatsquare = 0xf2ad,
  620. snowflakeo = 0xf2dc,
  621. soccerballo = 0xf1e3,
  622. sort = 0xf0dc,
  623. sortalphaasc = 0xf15d,
  624. sortalphadesc = 0xf15e,
  625. sortamountasc = 0xf160,
  626. sortamountdesc = 0xf161,
  627. sortasc = 0xf0de,
  628. sortdesc = 0xf0dd,
  629. sortdown = 0xf0dd,
  630. sortnumericasc = 0xf162,
  631. sortnumericdesc = 0xf163,
  632. sortup = 0xf0de,
  633. soundcloud = 0xf1be,
  634. spaceshuttle = 0xf197,
  635. spinner = 0xf110,
  636. spoon = 0xf1b1,
  637. spotify = 0xf1bc,
  638. square = 0xf0c8,
  639. squareo = 0xf096,
  640. stackexchange = 0xf18d,
  641. stackoverflow = 0xf16c,
  642. star = 0xf005,
  643. starhalf = 0xf089,
  644. starhalfempty = 0xf123,
  645. starhalffull = 0xf123,
  646. starhalfo = 0xf123,
  647. staro = 0xf006,
  648. steam = 0xf1b6,
  649. steamsquare = 0xf1b7,
  650. stepbackward = 0xf048,
  651. stepforward = 0xf051,
  652. stethoscope = 0xf0f1,
  653. stickynote = 0xf249,
  654. stickynoteo = 0xf24a,
  655. stop = 0xf04d,
  656. stopcircle = 0xf28d,
  657. stopcircleo = 0xf28e,
  658. streetview = 0xf21d,
  659. strikethrough = 0xf0cc,
  660. stumbleupon = 0xf1a4,
  661. stumbleuponcircle = 0xf1a3,
  662. subscript = 0xf12c,
  663. subway = 0xf239,
  664. suitcase = 0xf0f2,
  665. suno = 0xf185,
  666. superpowers = 0xf2dd,
  667. superscript = 0xf12b,
  668. support = 0xf1cd,
  669. table = 0xf0ce,
  670. tablet = 0xf10a,
  671. tachometer = 0xf0e4,
  672. tag = 0xf02b,
  673. tags = 0xf02c,
  674. tasks = 0xf0ae,
  675. taxi = 0xf1ba,
  676. telegram = 0xf2c6,
  677. television = 0xf26c,
  678. tencentweibo = 0xf1d5,
  679. terminal = 0xf120,
  680. textheight = 0xf034,
  681. textwidth = 0xf035,
  682. th = 0xf00a,
  683. thlarge = 0xf009,
  684. thlist = 0xf00b,
  685. themeisle = 0xf2b2,
  686. thermometer = 0xf2c7,
  687. thermometer0 = 0xf2cb,
  688. thermometer1 = 0xf2ca,
  689. thermometer2 = 0xf2c9,
  690. thermometer3 = 0xf2c8,
  691. thermometer4 = 0xf2c7,
  692. thermometerempty = 0xf2cb,
  693. thermometerfull = 0xf2c7,
  694. thermometerhalf = 0xf2c9,
  695. thermometerquarter = 0xf2ca,
  696. thermometerthreequarters = 0xf2c8,
  697. thumbtack = 0xf08d,
  698. thumbsdown = 0xf165,
  699. thumbsodown = 0xf088,
  700. thumbsoup = 0xf087,
  701. thumbsup = 0xf164,
  702. ticket = 0xf145,
  703. times = 0xf00d,
  704. timescircle = 0xf057,
  705. timescircleo = 0xf05c,
  706. timesrectangle = 0xf2d3,
  707. timesrectangleo = 0xf2d4,
  708. tint = 0xf043,
  709. toggledown = 0xf150,
  710. toggleleft = 0xf191,
  711. toggleoff = 0xf204,
  712. toggleon = 0xf205,
  713. toggleright = 0xf152,
  714. toggleup = 0xf151,
  715. trademark = 0xf25c,
  716. train = 0xf238,
  717. transgender = 0xf224,
  718. transgenderalt = 0xf225,
  719. trash = 0xf1f8,
  720. trasho = 0xf014,
  721. tree = 0xf1bb,
  722. trello = 0xf181,
  723. tripadvisor = 0xf262,
  724. trophy = 0xf091,
  725. truck = 0xf0d1,
  726. fa_try = 0xf195,
  727. tty = 0xf1e4,
  728. tumblr = 0xf173,
  729. tumblrsquare = 0xf174,
  730. turkishlira = 0xf195,
  731. tv = 0xf26c,
  732. twitch = 0xf1e8,
  733. twitter = 0xf099,
  734. twittersquare = 0xf081,
  735. umbrella = 0xf0e9,
  736. underline = 0xf0cd,
  737. undo = 0xf0e2,
  738. universalaccess = 0xf29a,
  739. university = 0xf19c,
  740. unlink = 0xf127,
  741. unlock = 0xf09c,
  742. unlockalt = 0xf13e,
  743. unsorted = 0xf0dc,
  744. upload = 0xf093,
  745. usb = 0xf287,
  746. usd = 0xf155,
  747. user = 0xf007,
  748. usercircle = 0xf2bd,
  749. usercircleo = 0xf2be,
  750. usermd = 0xf0f0,
  751. usero = 0xf2c0,
  752. userplus = 0xf234,
  753. usersecret = 0xf21b,
  754. usertimes = 0xf235,
  755. users = 0xf0c0,
  756. vcard = 0xf2bb,
  757. vcardo = 0xf2bc,
  758. venus = 0xf221,
  759. venusdouble = 0xf226,
  760. venusmars = 0xf228,
  761. viacoin = 0xf237,
  762. viadeo = 0xf2a9,
  763. viadeosquare = 0xf2aa,
  764. videocamera = 0xf03d,
  765. vimeo = 0xf27d,
  766. vimeosquare = 0xf194,
  767. vine = 0xf1ca,
  768. vk = 0xf189,
  769. volumecontrolphone = 0xf2a0,
  770. volumedown = 0xf027,
  771. volumeoff = 0xf026,
  772. volumeup = 0xf028,
  773. warning = 0xf071,
  774. wechat = 0xf1d7,
  775. weibo = 0xf18a,
  776. weixin = 0xf1d7,
  777. whatsapp = 0xf232,
  778. wheelchair = 0xf193,
  779. wheelchairalt = 0xf29b,
  780. wifi = 0xf1eb,
  781. wikipediaw = 0xf266,
  782. windowclose = 0xf2d3,
  783. windowcloseo = 0xf2d4,
  784. windowmaximize = 0xf2d0,
  785. windowminimize = 0xf2d1,
  786. windowrestore = 0xf2d2,
  787. windows = 0xf17a,
  788. won = 0xf159,
  789. wordpress = 0xf19a,
  790. wpbeginner = 0xf297,
  791. wpexplorer = 0xf2de,
  792. wpforms = 0xf298,
  793. wrench = 0xf0ad,
  794. xing = 0xf168,
  795. xingsquare = 0xf169,
  796. ycombinator = 0xf23b,
  797. ycombinatorsquare = 0xf1d4,
  798. yahoo = 0xf19e,
  799. yc = 0xf23b,
  800. ycsquare = 0xf1d4,
  801. yelp = 0xf1e9,
  802. yen = 0xf157,
  803. yoast = 0xf2b1,
  804. youtube = 0xf167,
  805. youtubeplay = 0xf16a,
  806. youtubesquare = 0xf166
  807. };
  808. }
  809. //---------------------------------------------------------------------------------------
  810. class QtAwesomeIconPainter;
  811. /// The main class for managing icons
  812. /// This class requires a 2-phase construction. You must first create the class and then initialize it via an init* method
  813. class QtAwesome : public QObject
  814. {
  815. Q_OBJECT
  816. public:
  817. explicit QtAwesome(QObject *parent = 0);
  818. virtual ~QtAwesome();
  819. void init( const QString& fontname );
  820. bool initFontAwesome();
  821. void addNamedCodepoint( const QString& name, int codePoint );
  822. QHash<QString,int> namedCodePoints() { return namedCodepoints_; }
  823. void setDefaultOption( const QString& name, const QVariant& value );
  824. QVariant defaultOption( const QString& name );
  825. QIcon icon( int character, const QVariantMap& options = QVariantMap() );
  826. QIcon icon( const QString& name, const QVariantMap& options = QVariantMap() );
  827. QIcon icon(QtAwesomeIconPainter* painter, const QVariantMap& optionMap = QVariantMap() );
  828. void give( const QString& name, QtAwesomeIconPainter* painter );
  829. QFont font( int size );
  830. /// Returns the font-name that is used as icon-map
  831. QString fontName() { return fontName_ ; }
  832. private:
  833. QString fontName_; ///< The font name used for this map
  834. QHash<QString,int> namedCodepoints_; ///< A map with names mapped to code-points
  835. QHash<QString, QtAwesomeIconPainter*> painterMap_; ///< A map of custom painters
  836. QVariantMap defaultOptions_; ///< The default icon options
  837. QtAwesomeIconPainter* fontIconPainter_; ///< A special painter fo painting codepoints
  838. };
  839. //---------------------------------------------------------------------------------------
  840. /// The QtAwesomeIconPainter is a specialized painter for painting icons
  841. /// your can implement an iconpainter to create custom font-icon code
  842. class QtAwesomeIconPainter
  843. {
  844. public:
  845. virtual ~QtAwesomeIconPainter() {}
  846. virtual void paint( QtAwesome* awesome, QPainter* painter, const QRect& rect, QIcon::Mode mode, QIcon::State state, const QVariantMap& options ) = 0;
  847. };
  848. Q_DECLARE_METATYPE(QtAwesomeAnimation*)
  849. #endif // QTAWESOME_H