* - Improvements over WX
* - Validator for modulelist
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include "components/preferences_widgets.hpp"
#include "util/customwidgets.hpp"
#include <QGridLayout>
#include <QSlider>
#include <QFileDialog>
-#include <QFontDialog>
#include <QGroupBox>
#include <QTreeWidgetItem>
#include <QSignalMapper>
p_control = new DirectoryConfigControl( p_this, p_item, parent, l,
line, false );
break;
+#if 0
case CONFIG_ITEM_FONT:
p_control = new FontConfigControl( p_this, p_item, parent, l,
line, false );
break;
+#endif
case CONFIG_ITEM_KEY:
p_control = new KeySelectorControl( p_this, p_item, parent, l, line );
break;
text->setText( dir );
}
+#if 0
+#include <QFontDialog>
+
/********* String / Font **********/
FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
module_config_t *_p_item, QWidget *_p_widget,
if( !ok ) return;
text->setText( font.family() );
}
+#endif
/********* String / choice list **********/
StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
checkBoxListItem *cbl = new checkBoxListItem; \
\
CONNECT( cb, stateChanged( int ), this, onUpdate( int ) );\
- cb->setToolTip( formatTooltip( qtr( module_GetLongName( p_parser ))));\
+ cb->setToolTip( formatTooltip( qtr( module_GetHelp( p_parser ))));\
cbl->checkBox = cb; \
\
cbl->psz_module = strdup( module_GetObjName( p_parser ) ); \
modules.push_back( cbl ); \
+\
+ if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) ) \
+ cbl->checkBox->setChecked( true ); \
}