# HG changeset patch # User sheepluva # Date 1319300676 -7200 # Node ID a6aa2d44f3907c9b22f3130063191226c0307107 # Parent 335ece2bce9cd8de2e1ea9059e132603b7ef7827 document css files better diff -r 335ece2bce9c -r a6aa2d44f390 QTfrontend/Doxyfile --- a/QTfrontend/Doxyfile Sat Oct 22 11:50:55 2011 -0400 +++ b/QTfrontend/Doxyfile Sat Oct 22 18:24:36 2011 +0200 @@ -190,7 +190,7 @@ # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. -ALIASES = +ALIASES = "repo{1}=http://code.google.com/p/hedgewars/source/browse/QTfrontend/\1" # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. @@ -319,7 +319,7 @@ # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. -EXTRACT_STATIC = NO +EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. diff -r 335ece2bce9c -r a6aa2d44f390 QTfrontend/HWApplication.h --- a/QTfrontend/HWApplication.h Sat Oct 22 11:50:55 2011 -0400 +++ b/QTfrontend/HWApplication.h Sat Oct 22 18:24:36 2011 +0200 @@ -25,6 +25,14 @@ class HWForm; +/** + * @brief Main class of the Qt application. + * + * By default uses :res/css/qt.css as style sheet for the main form. + * See \repo{res/css/qt.css} for a more detailed description. + * + * @see http://doc.qt.nokia.com/4.5/stylesheet.html + */ class HWApplication : public QApplication { Q_OBJECT diff -r 335ece2bce9c -r a6aa2d44f390 QTfrontend/res/css/chat.css --- a/QTfrontend/res/css/chat.css Sat Oct 22 11:50:55 2011 -0400 +++ b/QTfrontend/res/css/chat.css Sat Oct 22 18:24:36 2011 +0200 @@ -1,10 +1,25 @@ -/* +/****************************************************************************** + * + * CSS-like definition of chat appearance + * + ****************************************************************************** + * * see http://doc.qt.nokia.com/4.5/richtext-html-subset.html#css-properties * * In the QTfrontend of hedgewars also display:none; will work for class names * that start with msg_ - as long as they are referenced directly and not * within any hierachy. - */ + * + ****************************************************************************** + * + * This file can be stored at different locations, but it will be read only + * once, based on first file found in this order: + * + * /Data/css/chat.css + * /css/chat.css + * + * + *****************************************************************************/ /* links */ a { color:#c8c8ff; } diff -r 335ece2bce9c -r a6aa2d44f390 QTfrontend/res/css/qt.css --- a/QTfrontend/res/css/qt.css Sat Oct 22 11:50:55 2011 -0400 +++ b/QTfrontend/res/css/qt.css Sat Oct 22 18:24:36 2011 +0200 @@ -1,3 +1,22 @@ +/****************************************************************************** + * + * CSS-like definition of Qt frontend appearance + * + ****************************************************************************** + * + * see http://doc.qt.nokia.com/4.5/stylesheet.html + * + ****************************************************************************** + * + * This file can be stored at different locations, but it will be read only + * once, based on first file found in this order: + * + * /Data/css/qt.css + * /css/qt.css + * (:/res/css/qt.css) + * + *****************************************************************************/ + HWForm,QDialog { background-image: url(":/res/Background.png"); background-position: bottom center; @@ -223,4 +242,5 @@ border-radius: 3px; background-color: #ffcc00; width: 8px; -} \ No newline at end of file +} + diff -r 335ece2bce9c -r a6aa2d44f390 QTfrontend/ui/widget/chatwidget.h --- a/QTfrontend/ui/widget/chatwidget.h Sat Oct 22 11:50:55 2011 -0400 +++ b/QTfrontend/ui/widget/chatwidget.h Sat Oct 22 18:24:36 2011 +0200 @@ -52,6 +52,16 @@ bool isIgnored; }; + +/** + * @brief A chat widget. + * + * By default uses :res/css/chat.css as style sheet for chat. + * See \repo{res/css/chat.css} for a more detailed description. + * + * @see http://doc.qt.nokia.com/4.5/richtext-html-subset.html#css-properties + */ + class HWChatWidget : public QWidget { Q_OBJECT