Changes between Version 119 and Version 120 of UserGuideGit


Ignore:
Timestamp:
Feb 2, 2009, 10:15:31 PM (16 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuideGit

    v119 v120  
    99  * [#Shootingsequence Shooting sequence]
    1010 * [#Cutomization Cutomization]
    11   * [#GTKresourcesgtkrc GTK resources (gtkrc)]
     11  * [#Stylesheet Style sheet]
    1212 * [#Referencemanual Reference manual]
    1313  * [#Mainwindow Main window]
     
    132132== Cutomization ==
    133133
    134 === GTK resources (gtkrc) ===
    135 
    136 Since release 1.5.2, Papywizard can load a user GTK resources file. This file must be name '''{{{gtkrc}}}''', and must be located in '''{{{C:\\Documents and Settings\<user>\Application Data\papywizard\}}}'''¹ under Windows, '''{{{~/.config/papywizard/}}}''' under linux, and '''{{{/home/user/.config/papywizard/}}}''' under maemo.
     134=== Style sheet ===
     135
     136Since release 1.9.1, Papywizard can load a user style sheet. This file must be name '''{{{papywizard.css}}}''', and must be located in '''{{{C:\\Documents and Settings\<user>\Application Data\papywizard2\}}}'''¹ under Windows, '''{{{~/.config/papywizard2/}}}''' under linux, and '''{{{/home/user/.config/papywizard2/}}}''' under maemo.
    137137
    138138''¹: you have to configure the Windows Explorater so it shows you ''system'' files and directories.
    139139
    140 Here is a sample file to change the font size:
     140Here is a sample file:
    141141
    142142{{{
    143143#!c
    144 # gtkrc
    145 
    146 style "papywizard-font"
    147 {
    148     font_name="Sans Serif 16"
     144QPushButton {
     145    color: red;
    149146}
    150 
    151 widget_class "*" style "papywizard-font"
    152147}}}
    153148
    154 Another more complete example:
    155 
    156 {{{
    157 #!c
    158 # gtkrc
    159 
    160 style "papywizard-font"
    161 {
    162         font_name="Sans Serif 16"
    163 }
    164 
    165 style "papywizard-inverted" = "papywizard-font"
    166 {
    167     bg[NORMAL] = { 0.4, 0.4, 0.4 }
    168     bg[ACTIVE] = { 0.37, 0.37, 0.37 }
    169     bg[PRELIGHT] = { 0.45, 0.45, 0.45 }
    170     bg[SELECTED] = { 0.5, 0.5, 0.5 }
    171     bg[INSENSITIVE] = { 0.4, 0.4, 0.4 }
    172 
    173     fg[NORMAL] = { 0.7, 0.7, 0.7 }
    174     fg[ACTIVE] = { 0.67, 0.67, 0.67 }
    175     fg[PRELIGHT] = { 0.95, 0.95, 0.95 }
    176     fg[SELECTED] = { 0.6, 0.6, 0.9 }
    177     fg[INSENSITIVE] = { 0.4, 0.4, 0.4 }
    178 
    179     text[NORMAL] = { 0.7, 0.7, 0.7 }
    180     text[ACTIVE] = { 0.67, 0.67, 0.67 }
    181     text[PRELIGHT] = { 0.95, 0.95, 0.95 }
    182     text[SELECTED] = { 0.9, 0.9, 0.9 }
    183     text[INSENSITIVE] = { 0.4, 0.4, 0.4 }
    184 
    185     base[NORMAL] = { 0.5, 0.5, 0.5 }
    186     base[ACTIVE] = { 0.55, 0.55, 0.55 }
    187     base[PRELIGHT] = { 0.5, 0.5, 0.5 }
    188     base[SELECTED] = { 0.6, 0.6, 0.6 }
    189     base[INSENSITIVE] = { 0.4, 0.4, 0.4 }
    190 
    191     bg_pixmap[NORMAL] = "<none>"
    192 
    193     engine "clearlooks" {
    194     }
    195 }
    196 
    197 widget_class "*" style "papywizard-inverted"
    198 }}}
    199 
    200 ''Note: a dedicated page for nice gtkrc files will soon be created. Feel free to send yours.''
     149''Note: a dedicated page for nice style sheet files will soon be created. Feel free to send yours.''
    201150
    202151== Reference manual ==
     
    207156
    208157 * '''File > Quit''': exit from Papywizard
    209  * '''File > Load Preset File...''': load and add presets from file
    210  * '''File > Load Gtkrc File...''': load GTK resources from file
     158 * '''File > Import Preset File...''': Import presets from file
     159 * '''File > Load Style Sheet...''': load style sheet
    211160 * '''Hardware > Connect''': connect to the head hardware
    212161 * '''Hardware > Set limit...''': set the selected limit to curent position
     
    215164 * '''Help > Manual''': open this documentation (network connection needed)
    216165 * '''Help > View log...''': open log dialog
    217  * '''Help > About''': open the about dialog
     166 * '''Help > About Papywizard''': open the Papywizard about dialog
     167 * '''Help > About Qt''': open the Qt about dialog
    218168
    219169==== displays ====