#include <vlc_keys.h>
#include <vlc_intf_strings.h>
#include <vlc_modules.h>
+#include <vlc_plugin.h>
#include <QString>
#include <QVariant>
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 ); layout->insertSpacing( 1, 10 );
layout->addWidget( text, LAST_COLUMN );
finish( );
}
+int VStringConfigControl::getType() const { return CONFIG_ITEM_STRING; }
+
void StringConfigControl::finish()
{
text->setText( qfu(p_item->value.psz) );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 );
layout->insertSpacing( 1, 10 );
font->setCurrentFont( QFont( qfu( p_item->value.psz) ) );
if( !_p_layout )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 );
layout->addWidget( font, 1 );
finish( p_module_config );
if( !l )
{
+ widget = new QWidget( _parent );
l = new QGridLayout();
l->addWidget( label, 0, 0 ); l->addWidget( combo, 0, LAST_COLUMN );
widget->setLayout( l );
finish( bycat );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label ); layout->addWidget( combo, LAST_COLUMN );
widget->setLayout( layout );
if( !l )
{
+ widget = new QWidget( _parent );
QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget( groupBox, line, 0 );
widget->setLayout( layout );
return text->text();
}
-void ModuleListConfigControl::hide()
-{
- foreach ( checkBoxListItem *it, modules )
- it->checkBox->hide();
- groupBox->hide();
-}
-
-void ModuleListConfigControl::show()
+void ModuleListConfigControl::changeVisibility( bool b )
{
foreach ( checkBoxListItem *it, modules )
- it->checkBox->show();
- groupBox->show();
+ it->checkBox->setVisible( b );
+ groupBox->setVisible( b );
+ ConfigControl::changeVisibility( b );
}
-
void ModuleListConfigControl::onUpdate()
{
text->clear();
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 ); layout->addWidget( spin, LAST_COLUMN );
widget->setLayout( layout );
return spin->value();
}
+int VIntConfigControl::getType() const { return CONFIG_ITEM_INTEGER; }
+
/********* Integer range **********/
IntegerRangeConfigControl::IntegerRangeConfigControl( vlc_object_t *_p_this,
module_config_t *_p_item,
finish( p_module_config );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label ); layout->addWidget( combo, LAST_COLUMN );
widget->setLayout( layout );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( checkbox, 0 );
widget->setLayout( layout );
finish();
}
+int BoolConfigControl::getType() const { return CONFIG_ITEM_BOOL; }
+
void BoolConfigControl::finish()
{
checkbox->setChecked( p_item->value.i );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 ); layout->addWidget( color_but, LAST_COLUMN );
widget->setLayout( layout );
if( !l )
{
+ widget = new QWidget( _parent );
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget( label, 0 ); layout->addWidget( spin, LAST_COLUMN );
widget->setLayout( layout );
}
}
+int VFloatConfigControl::getType() const { return CONFIG_ITEM_FLOAT; }
+
FloatConfigControl::FloatConfigControl( vlc_object_t *_p_this,
module_config_t *_p_item,
QLabel *_label,
this, filter( const QString& ) );
}
+int KeySelectorControl::getType() const { return CONFIG_ITEM_KEY; }
+
void KeySelectorControl::finish()
{
if( label && p_item->psz_longtext )
checkForConflicts( i_vlck );
keyValue = i_vlck;
}
-