if( i_action < 0 || i_action >= p_item->i_action ) return;
vlc_value_t val;
- val.psz_string =
+ val.psz_string =
qtu( (combo->itemData( combo->currentIndex() ).toString() ) );
p_item->ppf_action[i_action]( p_this, getName(), val, val, 0 );
label = new QLabel(
qtr( "Select an action to change the associated hotkey") );
-
+
/* Deactivated for now
QLabel *searchLabel = new QLabel( qtr( "Search" ) );
QLineEdit *actionSearch = new QLineEdit;*/
-
+
table = new QTreeWidget;
table->setColumnCount(2);
table->headerItem()->setText( 0, qtr( "Action" ) );
gLayout->addWidget( actionSearch, 1, 2, 1, 2 ); */
gLayout->addWidget( table, 2, 0, 1, 4 );
gLayout->addWidget( clearButton, 3, 0, 1, 1 );
- gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
+ gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
gLayout->addWidget( setButton, 3, 3, 1, 1 );
if( !l ) /* This shouldn't happen */
}
else
{
- l->addWidget( keyContainer, 0, 0, 1, 2 );
+ l->addWidget( keyContainer, line, 0, 1, 2 );
}
CONNECT( clearButton, clicked(), shortcutValue, clear() );
BUTTONACT( setButton, setTheKey() );
{
/* This happens when triggered by ClickEater */
if( keyItem == NULL ) keyItem = table->currentItem();
-
+
/* This can happen when nothing is selected on the treeView
and the shortcutValue is clicked */
if( !keyItem ) return;
values = _values;
conflicts = false;
keyToChange = _keyToChange;
-
+
setWindowTitle( qtr( "Hotkey for " ) + qfu( keyToChange) );
QVBoxLayout *l = new QVBoxLayout( this );
buttonBox->addButton( cancel, QDialogButtonBox::RejectRole );
l->addWidget( buttonBox );
-
+
CONNECT( buttonBox, accepted(), this, accept() );
CONNECT( buttonBox, rejected(), this, reject() );
}
END_SPREFS_CAT;
- START_SPREFS_CAT( Hotkeys, "Configure Hotkeys" );
- //FIMXE
- END_SPREFS_CAT;
+ case SPrefsHotkeys:
+ {
+ p_config = config_FindConfig( VLC_OBJECT(p_intf), "key-fullscreen" );
+
+ QGridLayout *gLayout = new QGridLayout;
+ panel->setLayout( gLayout );
+ int line = 0;
+
+ KeySelectorControl *ksCtrl =
+ new KeySelectorControl( VLC_OBJECT(p_intf), p_config ,
+ this, gLayout, line );
+
+ panel_label->setText( qtr( "Configure Hotkeys" ) );
+
+ break;
}
+ }
panel_layout->addWidget( panel_label );
panel_layout->addWidget( title_line );