libyui-ncurses
2.44.1
|
00001 /* 00002 Copyright (C) 2000-2012 Novell, Inc 00003 This library is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU Lesser General Public License as 00005 published by the Free Software Foundation; either version 2.1 of the 00006 License, or (at your option) version 3.0 of the License. This library 00007 is distributed in the hope that it will be useful, but WITHOUT ANY 00008 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00009 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00010 License for more details. You should have received a copy of the GNU 00011 Lesser General Public License along with this library; if not, write 00012 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 00013 Floor, Boston, MA 02110-1301 USA 00014 */ 00015 00016 00017 /*-/ 00018 00019 File: NCstyle.linux.h 00020 00021 Author: Generated by class NCstyle 00022 00023 /-*/ 00024 00025 #ifndef NCstyle_linux_h 00026 #define NCstyle_linux_h 00027 00028 #include "NCstyle.h" 00029 00030 inline void NCstyleInit_linux( std::vector<NCstyle::Style> & styleSet ) 00031 { 00032 //================================================================= 00033 // init global attributes 00034 //================================================================= 00035 NCattrset * attrset( &styleSet[NCstyle::DefaultStyle].getAttrGlobal() ); 00036 attrset->setAttr( NCstyle::AppTitle, 14080 ); 00037 attrset->setAttr( NCstyle::AppText, 8192 ); 00038 //================================================================= 00039 // init local attributes 00040 //================================================================= 00041 // DefaultStyle 00042 attrset = &styleSet[NCstyle::DefaultStyle].getAttrLocal(); 00043 attrset->setAttr( NCstyle::DialogBorder, 8192 ); 00044 attrset->setAttr( NCstyle::DialogTitle, 8192 ); 00045 attrset->setAttr( NCstyle::DialogActiveBorder, 8192 | A_BOLD ); 00046 attrset->setAttr( NCstyle::DialogActiveTitle, 8192 | A_BOLD ); 00047 attrset->setAttr( NCstyle::DialogText, 8192 ); 00048 attrset->setAttr( NCstyle::DialogHeadline, 9216 | A_BOLD ); 00049 attrset->setAttr( NCstyle::DialogDisabled, 8448 ); 00050 attrset->setAttr( NCstyle::DialogPlain, 8192 ); 00051 attrset->setAttr( NCstyle::DialogLabel, 8192 ); 00052 attrset->setAttr( NCstyle::DialogData, 9216 | A_BOLD ); 00053 attrset->setAttr( NCstyle::DialogHint, 9216 | A_BOLD ); 00054 attrset->setAttr( NCstyle::DialogScrl, 9216 | A_BOLD ); 00055 attrset->setAttr( NCstyle::DialogActivePlain, 14080 ); 00056 attrset->setAttr( NCstyle::DialogActiveLabel, 14080 ); 00057 attrset->setAttr( NCstyle::DialogActiveData, 14080 ); 00058 attrset->setAttr( NCstyle::DialogActiveHint, 13312 | A_BOLD ); 00059 attrset->setAttr( NCstyle::DialogActiveScrl, 13312 | A_BOLD ); 00060 attrset->setAttr( NCstyle::DialogFramePlain, 8192 ); 00061 attrset->setAttr( NCstyle::DialogFrameLabel, 8192 ); 00062 attrset->setAttr( NCstyle::DialogFrameData, 8192 ); 00063 attrset->setAttr( NCstyle::DialogFrameHint, 9216 | A_BOLD ); 00064 attrset->setAttr( NCstyle::DialogFrameScrl, 8192 ); 00065 attrset->setAttr( NCstyle::DialogActiveFramePlain, 8192 | A_BOLD ); 00066 attrset->setAttr( NCstyle::DialogActiveFrameLabel, 14080 ); 00067 attrset->setAttr( NCstyle::DialogActiveFrameData, 8192 ); 00068 attrset->setAttr( NCstyle::DialogActiveFrameHint, 13312 | A_BOLD ); 00069 attrset->setAttr( NCstyle::DialogActiveFrameScrl, 9216 | A_BOLD ); 00070 attrset->setAttr( NCstyle::ListTitle, 8192 ); 00071 attrset->setAttr( NCstyle::ListPlain, 8192 ); 00072 attrset->setAttr( NCstyle::ListLabel, 8192 ); 00073 attrset->setAttr( NCstyle::ListData, 9216 | A_BOLD ); 00074 attrset->setAttr( NCstyle::ListHint, 9216 | A_BOLD ); 00075 attrset->setAttr( NCstyle::ListSelPlain, 8192 ); 00076 attrset->setAttr( NCstyle::ListSelLabel, 8192 ); 00077 attrset->setAttr( NCstyle::ListSelData, 9216 | A_BOLD ); 00078 attrset->setAttr( NCstyle::ListSelHint, 9216 | A_BOLD ); 00079 attrset->setAttr( NCstyle::ListActiveTitle, 8192 ); 00080 attrset->setAttr( NCstyle::ListActivePlain, 8192 ); 00081 attrset->setAttr( NCstyle::ListActiveLabel, 8192 ); 00082 attrset->setAttr( NCstyle::ListActiveData, 9216 | A_BOLD ); 00083 attrset->setAttr( NCstyle::ListActiveHint, 9216 | A_BOLD ); 00084 attrset->setAttr( NCstyle::ListActiveSelPlain, 14080 ); 00085 attrset->setAttr( NCstyle::ListActiveSelLabel, 14080 ); 00086 attrset->setAttr( NCstyle::ListActiveSelData, 13312 | A_BOLD ); 00087 attrset->setAttr( NCstyle::ListActiveSelHint, 13312 | A_BOLD ); 00088 attrset->setAttr( NCstyle::RichTextPlain, 16128 ); 00089 attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD ); 00090 attrset->setAttr( NCstyle::RichTextLink, 15104 ); 00091 attrset->setAttr( NCstyle::RichTextArmedlink, 15104 | A_BOLD ); 00092 attrset->setAttr( NCstyle::RichTextActiveArmedlink, 8192 | A_BOLD ); 00093 attrset->setAttr( NCstyle::RichTextVisitedLink, 59 ); 00094 attrset->setAttr( NCstyle::RichTextB, 16128 | A_BOLD ); 00095 attrset->setAttr( NCstyle::RichTextI, 16128 | A_BOLD ); 00096 attrset->setAttr( NCstyle::RichTextT, 14592 | A_BOLD ); 00097 attrset->setAttr( NCstyle::RichTextBI, 14336 | A_BOLD ); 00098 attrset->setAttr( NCstyle::RichTextBT, 14592 | A_BOLD ); 00099 attrset->setAttr( NCstyle::RichTextIT, 15872 ); 00100 attrset->setAttr( NCstyle::RichTextBIT, 14848 ); 00101 attrset->setAttr( NCstyle::ProgbarCh, 0x1720 ); 00102 attrset->setAttr( NCstyle::ProgbarBgch, 16160 ); 00103 attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK ); 00104 // InfoStyle 00105 attrset = &styleSet[NCstyle::InfoStyle].getAttrLocal(); 00106 attrset->setAttr( NCstyle::DialogBorder, 5888 ); 00107 attrset->setAttr( NCstyle::DialogTitle, 5888 ); 00108 attrset->setAttr( NCstyle::DialogActiveBorder, 4096 | A_BOLD ); 00109 attrset->setAttr( NCstyle::DialogActiveTitle, 4096 | A_BOLD ); 00110 attrset->setAttr( NCstyle::DialogText, 5888 ); 00111 attrset->setAttr( NCstyle::DialogHeadline, 4096 | A_BOLD ); 00112 attrset->setAttr( NCstyle::DialogDisabled, 5376 | A_BOLD ); 00113 attrset->setAttr( NCstyle::DialogPlain, 4096 | A_BOLD ); 00114 attrset->setAttr( NCstyle::DialogLabel, 5888 ); 00115 attrset->setAttr( NCstyle::DialogData, 4096 | A_BOLD ); 00116 attrset->setAttr( NCstyle::DialogHint, 4096 | A_BOLD ); 00117 attrset->setAttr( NCstyle::DialogScrl, 0 | A_BOLD ); 00118 attrset->setAttr( NCstyle::DialogActivePlain, 0 ); 00119 attrset->setAttr( NCstyle::DialogActiveLabel, 0 ); 00120 attrset->setAttr( NCstyle::DialogActiveData, 0 | A_BOLD ); 00121 attrset->setAttr( NCstyle::DialogActiveHint, 0 | A_BOLD ); 00122 attrset->setAttr( NCstyle::DialogActiveScrl, 16128 ); 00123 attrset->setAttr( NCstyle::DialogFramePlain, 5888 ); 00124 attrset->setAttr( NCstyle::DialogFrameLabel, 5888 ); 00125 attrset->setAttr( NCstyle::DialogFrameData, 5888 ); 00126 attrset->setAttr( NCstyle::DialogFrameHint, 4096 | A_BOLD ); 00127 attrset->setAttr( NCstyle::DialogFrameScrl, 4096 ); 00128 attrset->setAttr( NCstyle::DialogActiveFramePlain, 4096 | A_BOLD ); 00129 attrset->setAttr( NCstyle::DialogActiveFrameLabel, 0 ); 00130 attrset->setAttr( NCstyle::DialogActiveFrameData, 5888 ); 00131 attrset->setAttr( NCstyle::DialogActiveFrameHint, 0 | A_BOLD ); 00132 attrset->setAttr( NCstyle::DialogActiveFrameScrl, 5376 | A_BOLD ); 00133 attrset->setAttr( NCstyle::ListTitle, 5888 ); 00134 attrset->setAttr( NCstyle::ListPlain, 5888 ); 00135 attrset->setAttr( NCstyle::ListLabel, 5888 ); 00136 attrset->setAttr( NCstyle::ListData, 4096 | A_BOLD ); 00137 attrset->setAttr( NCstyle::ListHint, 4096 | A_BOLD ); 00138 attrset->setAttr( NCstyle::ListSelPlain, 5888 ); 00139 attrset->setAttr( NCstyle::ListSelLabel, 5888 ); 00140 attrset->setAttr( NCstyle::ListSelData, 4096 | A_BOLD ); 00141 attrset->setAttr( NCstyle::ListSelHint, 4096 | A_BOLD ); 00142 attrset->setAttr( NCstyle::ListActiveTitle, 5888 ); 00143 attrset->setAttr( NCstyle::ListActivePlain, 5888 ); 00144 attrset->setAttr( NCstyle::ListActiveLabel, 5888 ); 00145 attrset->setAttr( NCstyle::ListActiveData, 4096 | A_BOLD ); 00146 attrset->setAttr( NCstyle::ListActiveHint, 4096 | A_BOLD ); 00147 attrset->setAttr( NCstyle::ListActiveSelPlain, 0 ); 00148 attrset->setAttr( NCstyle::ListActiveSelLabel, 0 ); 00149 attrset->setAttr( NCstyle::ListActiveSelData, 0 | A_BOLD ); 00150 attrset->setAttr( NCstyle::ListActiveSelHint, 0 | A_BOLD ); 00151 attrset->setAttr( NCstyle::RichTextPlain, 16128 ); 00152 attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD ); 00153 attrset->setAttr( NCstyle::RichTextLink, 15104 ); 00154 attrset->setAttr( NCstyle::RichTextArmedlink, 15104 | A_BOLD ); 00155 attrset->setAttr( NCstyle::RichTextActiveArmedlink, 8192 | A_BOLD ); 00156 attrset->setAttr( NCstyle::RichTextVisitedLink, 59 ); 00157 attrset->setAttr( NCstyle::RichTextB, 16128 | A_BOLD ); 00158 attrset->setAttr( NCstyle::RichTextI, 16128 | A_BOLD ); 00159 attrset->setAttr( NCstyle::RichTextT, 14592 ); 00160 attrset->setAttr( NCstyle::RichTextBI, 14336 | A_BOLD ); 00161 attrset->setAttr( NCstyle::RichTextBT, 14592 | A_BOLD ); 00162 attrset->setAttr( NCstyle::RichTextIT, 14592 ); 00163 attrset->setAttr( NCstyle::RichTextBIT, 14592 | A_BOLD ); 00164 attrset->setAttr( NCstyle::ProgbarCh, 0x1720 ); 00165 attrset->setAttr( NCstyle::ProgbarBgch, 16160 ); 00166 attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK ); 00167 // WarnStyle 00168 attrset = &styleSet[NCstyle::WarnStyle].getAttrLocal(); 00169 attrset->setAttr( NCstyle::DialogBorder, 3840 ); 00170 attrset->setAttr( NCstyle::DialogTitle, 3840 ); 00171 attrset->setAttr( NCstyle::DialogActiveBorder, 2048 | A_BOLD ); 00172 attrset->setAttr( NCstyle::DialogActiveTitle, 2048 | A_BOLD ); 00173 attrset->setAttr( NCstyle::DialogText, 3840 ); 00174 attrset->setAttr( NCstyle::DialogHeadline, 2048 | A_BOLD ); 00175 attrset->setAttr( NCstyle::DialogDisabled, 3584 | A_BOLD ); 00176 attrset->setAttr( NCstyle::DialogPlain, 3840 ); 00177 attrset->setAttr( NCstyle::DialogLabel, 3840 ); 00178 attrset->setAttr( NCstyle::DialogData, 2048 | A_BOLD ); 00179 attrset->setAttr( NCstyle::DialogHint, 2048 | A_BOLD ); 00180 attrset->setAttr( NCstyle::DialogScrl, 0 | A_BOLD ); 00181 attrset->setAttr( NCstyle::DialogActivePlain, 1536 | A_BOLD ); 00182 attrset->setAttr( NCstyle::DialogActiveLabel, 1536 | A_BOLD ); 00183 attrset->setAttr( NCstyle::DialogActiveData, 0 | A_BOLD ); 00184 attrset->setAttr( NCstyle::DialogActiveHint, 0 | A_BOLD ); 00185 attrset->setAttr( NCstyle::DialogActiveScrl, 0 | A_BOLD ); 00186 attrset->setAttr( NCstyle::DialogFramePlain, 3840 ); 00187 attrset->setAttr( NCstyle::DialogFrameLabel, 3840 ); 00188 attrset->setAttr( NCstyle::DialogFrameData, 3840 ); 00189 attrset->setAttr( NCstyle::DialogFrameHint, 2048 | A_BOLD ); 00190 attrset->setAttr( NCstyle::DialogFrameScrl, 3584 | A_BOLD ); 00191 attrset->setAttr( NCstyle::DialogActiveFramePlain, 2048 | A_BOLD ); 00192 attrset->setAttr( NCstyle::DialogActiveFrameLabel, 1536 | A_BOLD ); 00193 attrset->setAttr( NCstyle::DialogActiveFrameData, 3840 ); 00194 attrset->setAttr( NCstyle::DialogActiveFrameHint, 0 | A_BOLD ); 00195 attrset->setAttr( NCstyle::DialogActiveFrameScrl, 3584 | A_BOLD ); 00196 attrset->setAttr( NCstyle::ListTitle, 3840 ); 00197 attrset->setAttr( NCstyle::ListPlain, 3840 ); 00198 attrset->setAttr( NCstyle::ListLabel, 3840 ); 00199 attrset->setAttr( NCstyle::ListData, 2048 | A_BOLD ); 00200 attrset->setAttr( NCstyle::ListHint, 2048 | A_BOLD ); 00201 attrset->setAttr( NCstyle::ListSelPlain, 3840 ); 00202 attrset->setAttr( NCstyle::ListSelLabel, 3840 ); 00203 attrset->setAttr( NCstyle::ListSelData, 2048 | A_BOLD ); 00204 attrset->setAttr( NCstyle::ListSelHint, 2048 | A_BOLD ); 00205 attrset->setAttr( NCstyle::ListActiveTitle, 3840 ); 00206 attrset->setAttr( NCstyle::ListActivePlain, 3840 ); 00207 attrset->setAttr( NCstyle::ListActiveLabel, 3840 ); 00208 attrset->setAttr( NCstyle::ListActiveData, 2048 | A_BOLD ); 00209 attrset->setAttr( NCstyle::ListActiveHint, 2048 | A_BOLD ); 00210 attrset->setAttr( NCstyle::ListActiveSelPlain, 1536 | A_BOLD ); 00211 attrset->setAttr( NCstyle::ListActiveSelLabel, 1536 | A_BOLD ); 00212 attrset->setAttr( NCstyle::ListActiveSelData, 0 | A_BOLD ); 00213 attrset->setAttr( NCstyle::ListActiveSelHint, 0 | A_BOLD ); 00214 attrset->setAttr( NCstyle::RichTextPlain, 16128 ); 00215 attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD ); 00216 attrset->setAttr( NCstyle::RichTextLink, 15104 ); 00217 attrset->setAttr( NCstyle::RichTextArmedlink, 15104 | A_BOLD ); 00218 attrset->setAttr( NCstyle::RichTextActiveArmedlink, 8192 | A_BOLD ); 00219 attrset->setAttr( NCstyle::RichTextVisitedLink, 59 ); 00220 attrset->setAttr( NCstyle::RichTextB, 16128 | A_BOLD ); 00221 attrset->setAttr( NCstyle::RichTextI, 16128 | A_BOLD ); 00222 attrset->setAttr( NCstyle::RichTextT, 14592 ); 00223 attrset->setAttr( NCstyle::RichTextBI, 14336 | A_BOLD ); 00224 attrset->setAttr( NCstyle::RichTextBT, 14592 | A_BOLD ); 00225 attrset->setAttr( NCstyle::RichTextIT, 14592 ); 00226 attrset->setAttr( NCstyle::RichTextBIT, 14592 | A_BOLD ); 00227 attrset->setAttr( NCstyle::ProgbarCh, 0x1720 ); 00228 attrset->setAttr( NCstyle::ProgbarBgch, 16160 ); 00229 attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK ); 00230 // PopupStyle 00231 attrset = &styleSet[NCstyle::PopupStyle].getAttrLocal(); 00232 attrset->setAttr( NCstyle::DialogBorder, 14080 ); 00233 attrset->setAttr( NCstyle::DialogTitle, 14080 ); 00234 attrset->setAttr( NCstyle::DialogActiveBorder, 12288 | A_BOLD ); 00235 attrset->setAttr( NCstyle::DialogActiveTitle, 12288 | A_BOLD ); 00236 attrset->setAttr( NCstyle::DialogText, 14080 ); 00237 attrset->setAttr( NCstyle::DialogHeadline, 13312 | A_BOLD ); 00238 attrset->setAttr( NCstyle::DialogDisabled, 14080 | A_BOLD ); 00239 attrset->setAttr( NCstyle::DialogPlain, 14080 ); 00240 attrset->setAttr( NCstyle::DialogLabel, 14080 ); 00241 attrset->setAttr( NCstyle::DialogData, 13312 | A_BOLD ); 00242 attrset->setAttr( NCstyle::DialogHint, 13312 | A_BOLD ); 00243 attrset->setAttr( NCstyle::DialogScrl, 1024 | A_BOLD ); 00244 attrset->setAttr( NCstyle::DialogActivePlain, 8192 ); 00245 attrset->setAttr( NCstyle::DialogActiveLabel, 8192 ); 00246 attrset->setAttr( NCstyle::DialogActiveData, 9216 | A_BOLD ); 00247 attrset->setAttr( NCstyle::DialogActiveHint, 9216 | A_BOLD ); 00248 attrset->setAttr( NCstyle::DialogActiveScrl, 1024 | A_BOLD ); 00249 attrset->setAttr( NCstyle::DialogFramePlain, 14080 ); 00250 attrset->setAttr( NCstyle::DialogFrameLabel, 14080 ); 00251 attrset->setAttr( NCstyle::DialogFrameData, 13056 ); 00252 attrset->setAttr( NCstyle::DialogFrameHint, 13312 | A_BOLD ); 00253 attrset->setAttr( NCstyle::DialogFrameScrl, 14080 ); 00254 attrset->setAttr( NCstyle::DialogActiveFramePlain, 12288 | A_BOLD ); 00255 attrset->setAttr( NCstyle::DialogActiveFrameLabel, 8192 ); 00256 attrset->setAttr( NCstyle::DialogActiveFrameData, 14080 ); 00257 attrset->setAttr( NCstyle::DialogActiveFrameHint, 9216 | A_BOLD ); 00258 attrset->setAttr( NCstyle::DialogActiveFrameScrl, 13312 | A_BOLD ); 00259 attrset->setAttr( NCstyle::ListTitle, 14080 ); 00260 attrset->setAttr( NCstyle::ListPlain, 14080 ); 00261 attrset->setAttr( NCstyle::ListLabel, 14080 ); 00262 attrset->setAttr( NCstyle::ListData, 13312 | A_BOLD ); 00263 attrset->setAttr( NCstyle::ListHint, 13312 | A_BOLD ); 00264 attrset->setAttr( NCstyle::ListSelPlain, 14080 ); 00265 attrset->setAttr( NCstyle::ListSelLabel, 14080 ); 00266 attrset->setAttr( NCstyle::ListSelData, 13312 | A_BOLD ); 00267 attrset->setAttr( NCstyle::ListSelHint, 13312 | A_BOLD ); 00268 attrset->setAttr( NCstyle::ListActiveTitle, 14080 ); 00269 attrset->setAttr( NCstyle::ListActivePlain, 14080 ); 00270 attrset->setAttr( NCstyle::ListActiveLabel, 14080 ); 00271 attrset->setAttr( NCstyle::ListActiveData, 13312 | A_BOLD ); 00272 attrset->setAttr( NCstyle::ListActiveHint, 13312 | A_BOLD ); 00273 attrset->setAttr( NCstyle::ListActiveSelPlain, 8192 ); 00274 attrset->setAttr( NCstyle::ListActiveSelLabel, 8192 ); 00275 attrset->setAttr( NCstyle::ListActiveSelData, 9216 | A_BOLD ); 00276 attrset->setAttr( NCstyle::ListActiveSelHint, 9216 | A_BOLD ); 00277 attrset->setAttr( NCstyle::RichTextPlain, 16128 ); 00278 attrset->setAttr( NCstyle::RichTextTitle, 15360 | A_BOLD ); 00279 attrset->setAttr( NCstyle::RichTextLink, 15104 ); 00280 attrset->setAttr( NCstyle::RichTextArmedlink, 15104 | A_BOLD ); 00281 attrset->setAttr( NCstyle::RichTextActiveArmedlink, 8192 | A_BOLD ); 00282 attrset->setAttr( NCstyle::RichTextVisitedLink, 59 ); 00283 attrset->setAttr( NCstyle::RichTextB, 16128 | A_BOLD ); 00284 attrset->setAttr( NCstyle::RichTextI, 16128 | A_BOLD ); 00285 attrset->setAttr( NCstyle::RichTextT, 14592 ); 00286 attrset->setAttr( NCstyle::RichTextBI, 14336 | A_BOLD ); 00287 attrset->setAttr( NCstyle::RichTextBT, 14592 | A_BOLD ); 00288 attrset->setAttr( NCstyle::RichTextIT, 14592 ); 00289 attrset->setAttr( NCstyle::RichTextBIT, 14592 | A_BOLD ); 00290 attrset->setAttr( NCstyle::ProgbarCh, 0x1720 ); 00291 attrset->setAttr( NCstyle::ProgbarBgch, 16160 | A_BOLD ); 00292 attrset->setAttr( NCstyle::TextCursor, 7936 | A_BLINK ); 00293 } 00294 00295 #endif // NCstyle_linux_h