refactor: remove innclude guards, use pragma instead

This commit is contained in:
2024-03-28 03:05:26 +02:00
parent f27050afbc
commit 0bcceefd47
97 changed files with 186 additions and 551 deletions

View File

@ -1,5 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
#pragma once
// information
@ -7,23 +6,28 @@ const char NAME[] = "Awesome Widgets";
const char VERSION[] = "@PROJECT_VERSION@";
const char COMMIT_SHA[] = "@PROJECT_COMMIT_SHA@";
const char AUTHOR[] = "@PROJECT_AUTHOR@";
const char TRANSLATORS[] = "Ernesto Aviles Vzqz (Spanish),Mermouy "
"(French),underr (Brazillian Portuguese),Viktor "
"Slobodyan (Ukrainian),Lemueler (Chinese),Heimen "
"Stoffels (Dutch),Mariusz Kocoń (Polish),Ibnu "
"Daru Aji (Indonesian),Antonio Vivace (Italian)";
const char TRANSLATORS[] = "Ernesto Aviles Vzqz (Spanish),"
"Mermouy (French),"
"underr (Brazillian Portuguese),"
"Viktor Slobodyan (Ukrainian),"
"Lemueler (Chinese),"
"Heimen Stoffels (Dutch),"
"Mariusz Kocoń (Polish),"
"Ibnu Daru Aji (Indonesian),"
"Antonio Vivace (Italian)";
const char EMAIL[] = "@PROJECT_CONTACT@";
const char LICENSE[] = "@PROJECT_LICENSE@";
const char TRDPARTY_LICENSE[] = "QReplyTimeout "
"wrapper,no,http://"
"codereview.stackexchange.com/questions/30031/"
"qnetworkreply-network-reply-timeout-helper";
const char SPECIAL_THANKS[] = "Stooq,https://stooq.com/;Yahoo! "
"Weather,https://weather.yahoo.com/;JetBrains,https://"
"www.jetbrains.com/;OpenWeatherMap,http://openweathermap.org/";
const char SPECIAL_THANKS[] = "Stooq,https://stooq.com/;"
"Yahoo! Weather,https://weather.yahoo.com/;"
"JetBrains,https://www.jetbrains.com/;"
"OpenWeatherMap,http://openweathermap.org/";
const char CHANGELOG[] = "@PROJECT_CHANGELOG@";
// configuraion
// configuration
// graphical items api version
const int AW_GRAPHITEM_API = 6;
// extquotes api version
@ -50,16 +54,80 @@ const int REQUEST_TIMEOUT = 3000;
// available time keys
const char TIME_KEYS[] = "d,dd,ddd,dddd,M,MM,MMM,MMMM,yy,yyyy,h,hh,H,HH,m,mm,s,ss,t,a,ap,A,AP";
// static keys
const char STATIC_FUNCTIONS[] = "{{\n\n}},template{{\n\n}},aw_all<>{{}},aw_"
"count<>{{}},aw_keys<>{{}},aw_macro<>{{}},aw_"
"names<>{{}}";
const char STATIC_KEYS[] = "time,isotime,shorttime,longtime,tstime,ctime,uptime,cuptime,cpucl,cpu,"
"gpu,memmb,memgb,memfreemb,memfreegb,memtotmb,memtotgb,memusedmb,"
"memusedgb,mem,swapmb,swapgb,swapfreemb,swapfreegb,swaptotmb,swaptotgb,"
"swap,downunits,upunits,downkb,downtotkb,downtot,down,uptotkb,uptot,upkb,"
"up,netdev,ac,bat,batleft,batnow,batrate,battotal,album,artist,duration,"
"progress,title,dalbum,dartist,dtitle,salbum,sartist,stitle,pscount,pstot"
",ps,desktop,ndesktop,tdesktops,la15,la5,la1,ssid,volume,brightness";
const char STATIC_FUNCTIONS[] = "{{\n\n}},"
"template{{\n\n}},"
"aw_all<>{{}},"
"aw_count<>{{}},"
"aw_keys<>{{}},"
"aw_macro<>{{}},"
"aw_names<>{{}}";
const char STATIC_KEYS[] = "time,"
"isotime,"
"shorttime,"
"longtime,"
"tstime,"
"ctime,"
"uptime,"
"cuptime,"
"cpucl,"
"cpu,"
"gpu,"
"memmb,"
"memgb,"
"memfreemb,"
"memfreegb,"
"memtotmb,"
"memtotgb,"
"memusedmb,"
"memusedgb,"
"mem,"
"swapmb,"
"swapgb,"
"swapfreemb,"
"swapfreegb,"
"swaptotmb,"
"swaptotgb,"
"swap,"
"downunits,"
"upunits,"
"downkb,"
"downtotkb,"
"downtot,"
"down,"
"uptotkb,"
"uptot,"
"upkb,"
"up,"
"netdev,"
"ac,"
"bat,"
"batleft,"
"batnow,"
"batrate,"
"battotal,"
"album,"
"artist,"
"duration,"
"progress,"
"title,"
"dalbum,"
"dartist,"
"dtitle,"
"salbum,"
"sartist,"
"stitle,"
"pscount,"
"pstot,"
"ps,"
"desktop,"
"ndesktop,"
"tdesktops,"
"la15,"
"la5,"
"la1,"
"ssid,"
"volume,"
"brightness";
#cmakedefine BUILD_FUTURE
#cmakedefine BUILD_LOAD
#cmakedefine BUILD_TESTING
@ -105,6 +173,3 @@ const char CPPCHECK_EXECUTABLE[] = "@CPPCHECK_EXECUTABLE@";
const char PROP_FUTURE[] = "@BUILD_FUTURE@";
const char PROP_LOAD[] = "@BUILD_LOAD@";
const char PROP_TEST[] = "@BUILD_TESTING@";
#endif /* VERSION_H */