From: Jean-Baptiste Kempf Date: Sun, 15 Feb 2009 23:38:16 +0000 (+0100) Subject: Qt: toolbar-profile, provide 4 profiles, one being close to 0.8.6 interface, the... X-Git-Tag: 1.0.0-pre1~638 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=76c4a0622d95d10e241fe98d64a6f5e102bc4324;p=vlc Qt: toolbar-profile, provide 4 profiles, one being close to 0.8.6 interface, the other one close to 0.9.0 and too smaller ones. Default can be changed, please give ideas. --- diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp index ca67c1b5b6..8a3bc738d8 100644 --- a/modules/gui/qt4/dialogs/toolbar.cpp +++ b/modules/gui/qt4/dialogs/toolbar.cpp @@ -164,6 +164,18 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf) getSettings()->value( "Value" ).toString() ); } getSettings()->endArray(); + + /* Load defaults ones if we have no combos */ + /* We could decide that we load defaults on first launch of the dialog + or when the combo is back to 0. I choose the second solution, because some clueless + user might hit on delete a bit too much, but discussion is opened. -- jb */ + if( i_size == 0 ) + { + profileCombo->addItem( PROFILE_NAME_1, QString( VALUE_1 ) ); + profileCombo->addItem( PROFILE_NAME_2, QString( VALUE_2 ) ); + profileCombo->addItem( PROFILE_NAME_3, QString( VALUE_3 ) ); + profileCombo->addItem( PROFILE_NAME_4, QString( VALUE_4 ) ); + } profileCombo->setCurrentIndex( -1 ); /* Buttons */ diff --git a/modules/gui/qt4/dialogs/toolbar.hpp b/modules/gui/qt4/dialogs/toolbar.hpp index 010c907717..61c9f7f2b1 100644 --- a/modules/gui/qt4/dialogs/toolbar.hpp +++ b/modules/gui/qt4/dialogs/toolbar.hpp @@ -31,6 +31,15 @@ #include #include +#define PROFILE_NAME_1 "Modern Style" +#define VALUE_1 "0|64;39;64;38;65;|0-2;64;3;1;4;64;7;10;9;64-4;37;65;35-4;|12;11;13;14;|5-1;33;6-1;|0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34;" +#define PROFILE_NAME_2 "Classic Style" +#define VALUE_2 "1|64;39-1;64;38;13-1;|2-1;32-4;0-5;1-5;32-5;3-5;5-5;6-5;4-5;32-5;10-1;64-1;35-1;65;|12-1;11-1;13-1;14-1;|33;37-4;|0-5;1-5;32-1;1-5;5-1;6-1;4-5;32-1;12-5;11-1;65;34-4;35-1;" +#define PROFILE_NAME_3 "Minimalist Style" +#define VALUE_3 "0|64;65;|0-7;64;3-1;1-5;4-1;64;12-5;64-5;37-4;38;64-4;10-1;65;36-4;|11;13;13;|5-1;33;6-1;|0-5;64;3-5;1-5;4-5;64;12-5;65;34-4;35-1;" +#define PROFILE_NAME_4 "One-Liner Style" +#define VALUE_4 "0|64;38;65;|0-4;64;3;1;4;64;7;10;9;64-4;39;64-4;37;65;36-4;|12;11;14;13;|5-1;33;6-1;|0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34;" + class ToolbarEditDialog; class DroppingController; class QCheckBox;