
Defines | |
| #define | ICON_HEIGHT 64 |
| #define | ADD_CATEGORY(button, label, icon, numb) |
| #define | CONFIG_GENERIC(option, type, label, qcontrol) |
| #define | CONFIG_BOOL(option, qcontrol) |
| #define | CONFIG_GENERIC_NO_UI(option, type, label, qcontrol) |
| #define | CONFIG_GENERIC_NO_BOOL(option, type, label, qcontrol) |
| #define | CONFIG_GENERIC_FILE(option, type, label, qcontrol, qbutton) |
| #define | START_SPREFS_CAT(name, label) |
| #define | END_SPREFS_CAT |
| #define | audioCommon(name) |
| #define | audioControl(name) |
| #define | audioControl2(name) |
| #define | addToCachingBox(str, cachingNumber) ui.cachingCombo->addItem( qtr(str), QVariant( cachingNumber ) ); |
| #define | TestCaC(name) |
| #define | TestCaCi(name, int) |
| #define | CaCi(name, int) config_PutInt( p_intf, name, int * i_comboValue ) |
| #define | CaC(name) CaCi( name, 1 ) |
| #define ADD_CATEGORY | ( | button, | |||
| label, | |||||
| icon, | |||||
| numb | ) |
Value:
QToolButton * button = new QToolButton( this ); \ button->setIcon( QIcon( ":/prefsmenu/" #icon ) ); \ button->setText( label ); \ button->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); \ button->setIconSize( QSize( icon_height, icon_height ) ); \ button->resize( icon_height + 6 , icon_height + 6 ); \ button->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding) ; \ button->setAutoRaise( true ); \ button->setCheckable( true ); \ buttonGroup->addButton( button, numb ); \ layout->addWidget( button );
Referenced by SPrefsCatList::SPrefsCatList().
| #define addToCachingBox | ( | str, | |||
| cachingNumber | ) | ui.cachingCombo->addItem( qtr(str), QVariant( cachingNumber ) ); |
Referenced by SPrefsPanel::SPrefsPanel().
| #define audioCommon | ( | name | ) |
Value:
QWidget * name ## Control = new QWidget( ui.outputAudioBox ); \ QHBoxLayout * name ## Layout = new QHBoxLayout( name ## Control); \ name ## Layout->setMargin( 0 ); \ name ## Layout->setSpacing( 0 ); \ QLabel * name ## Label = new QLabel( qtr( "Device:" ), name ## Control ); \ name ## Label->setMinimumSize(QSize(250, 0)); \ name ## Layout->addWidget( name ## Label ); \
| #define audioControl | ( | name | ) |
Value:
audioCommon( name ) \ QComboBox * name ## Device = new QComboBox( name ## Control ); \ name ## Layout->addWidget( name ## Device ); \ name ## Label->setBuddy( name ## Device ); \ outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
Referenced by SPrefsPanel::SPrefsPanel().
| #define audioControl2 | ( | name | ) |
Value:
audioCommon( name ) \ QLineEdit * name ## Device = new QLineEdit( name ## Control ); \ name ## Layout->addWidget( name ## Device ); \ name ## Label->setBuddy( name ## Device ); \ QPushButton * name ## Browse = new QPushButton( qtr( "Browse..." ), name ## Control); \ name ## Layout->addWidget( name ## Browse ); \ outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
Referenced by SPrefsPanel::SPrefsPanel().
| #define CONFIG_BOOL | ( | option, | |||
| qcontrol | ) |
Value:
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \ if( p_config ) \ { \ control = new BoolConfigControl( VLC_OBJECT(p_intf), \ p_config, NULL, ui.qcontrol, false ); \ controls.append( control ); \ } \ else { ui.qcontrol->setEnabled( false ); }
Referenced by SPrefsPanel::SPrefsPanel().
| #define CONFIG_GENERIC | ( | option, | |||
| type, | |||||
| label, | |||||
| qcontrol | ) |
Value:
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \ if( p_config ) \ { \ control = new type ## ConfigControl( VLC_OBJECT(p_intf), \ p_config, label, ui.qcontrol, false ); \ controls.append( control ); \ } \ else { \ ui.qcontrol->setEnabled( false ); \ if( label ) label->setEnabled( false ); \ }
Referenced by SPrefsPanel::SPrefsPanel().
| #define CONFIG_GENERIC_FILE | ( | option, | |||
| type, | |||||
| label, | |||||
| qcontrol, | |||||
| qbutton | ) |
Value:
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \ if( p_config ) \ { \ control = new type ## ConfigControl( VLC_OBJECT(p_intf), \ p_config, label, qcontrol, qbutton ); \ controls.append( control ); \ }
Referenced by SPrefsPanel::SPrefsPanel().
| #define CONFIG_GENERIC_NO_BOOL | ( | option, | |||
| type, | |||||
| label, | |||||
| qcontrol | ) |
Value:
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \ if( p_config ) \ { \ control = new type ## ConfigControl( VLC_OBJECT(p_intf), \ p_config, label, ui.qcontrol ); \ controls.append( control ); \ }
Referenced by SPrefsPanel::SPrefsPanel().
| #define CONFIG_GENERIC_NO_UI | ( | option, | |||
| type, | |||||
| label, | |||||
| qcontrol | ) |
Value:
p_config = config_FindConfig( VLC_OBJECT(p_intf), option ); \ if( p_config ) \ { \ control = new type ## ConfigControl( VLC_OBJECT(p_intf), \ p_config, label, qcontrol, false ); \ controls.append( control ); \ } \ else { \ QWidget *widget = label; \ qcontrol->setVisible( false ); \ if( widget ) widget->setEnabled( false ); \ }
Referenced by SPrefsPanel::SPrefsPanel().
| #define END_SPREFS_CAT |
| #define ICON_HEIGHT 64 |
Referenced by SPrefsCatList::SPrefsCatList().
| #define START_SPREFS_CAT | ( | name, | |||
| label | ) |
Value:
case SPrefs ## name: \ { \ Ui::SPrefs ## name ui; \ ui.setupUi( panel ); \ panel_label->setText( label );
Referenced by SPrefsPanel::SPrefsPanel().
| #define TestCaC | ( | name | ) |
Value:
b_cache_equal = b_cache_equal && \
( i_cache == config_GetInt( p_intf, name ) )
| #define TestCaCi | ( | name, | |||
| int | ) |
Value:
b_cache_equal = b_cache_equal && \
( ( i_cache * int ) == config_GetInt( p_intf, name ) )
1.5.6