@ -58,7 +58,7 @@ ActionListItem::ActionListItem(TQListBox *listbox, const TQString &action, const
ConfigDialog : : ConfigDialog ( TQWidget * parent , const char * name ) : TQDialog ( parent , name )
ConfigDialog : : ConfigDialog ( TQWidget * parent , const char * name ) : TQDialog ( parent , name )
{
{
topWidgetName = parent - > t qt opLevelWidget( ) - > name ( ) ;
topWidgetName = parent - > t opLevelWidget( ) - > name ( ) ;
config = new KConfig ( " metabarrc " ) ;
config = new KConfig ( " metabarrc " ) ;
iconConfig = new KConfig ( locate ( " data " , " metabar/iconsrc " ) ) ;
iconConfig = new KConfig ( locate ( " data " , " metabar/iconsrc " ) ) ;
@ -78,7 +78,7 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
TQWidget * general = new TQWidget ;
TQWidget * general = new TQWidget ;
TQGroupBox * entries_group = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Items " ) , general ) ;
TQGroupBox * entries_group = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Items " ) , general ) ;
entries_group - > tq setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
entries_group - > setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
TQLabel * entries_label = new TQLabel ( i18n ( " Open with: " ) , entries_group ) ;
TQLabel * entries_label = new TQLabel ( i18n ( " Open with: " ) , entries_group ) ;
max_entries = new KIntSpinBox ( entries_group ) ;
max_entries = new KIntSpinBox ( entries_group ) ;
@ -98,7 +98,7 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
TQGroupBox * appearance_group = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Appearance " ) , general ) ;
TQGroupBox * appearance_group = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Appearance " ) , general ) ;
appearance_group - > tq setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
appearance_group - > setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
animate = new TQCheckBox ( i18n ( " Animate resize " ) , appearance_group ) ;
animate = new TQCheckBox ( i18n ( " Animate resize " ) , appearance_group ) ;
animate - > setChecked ( config - > readBoolEntry ( " AnimateResize " , false ) ) ;
animate - > setChecked ( config - > readBoolEntry ( " AnimateResize " , false ) ) ;
@ -110,13 +110,13 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
showframe - > setChecked ( config - > readBoolEntry ( " ShowFrame " , true ) ) ;
showframe - > setChecked ( config - > readBoolEntry ( " ShowFrame " , true ) ) ;
TQGroupBox * theme_group = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Themes " ) , general ) ;
TQGroupBox * theme_group = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Themes " ) , general ) ;
theme_group - > tq setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
theme_group - > setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
themes = new KComboBox ( theme_group ) ;
themes = new KComboBox ( theme_group ) ;
themes - > tq setSizePolicy( TQSizePolicy : : Expanding , TQSizePolicy : : Preferred ) ;
themes - > setSizePolicy( TQSizePolicy : : Expanding , TQSizePolicy : : Preferred ) ;
install_theme = new KPushButton ( i18n ( " Install New Theme... " ) , theme_group ) ;
install_theme = new KPushButton ( i18n ( " Install New Theme... " ) , theme_group ) ;
install_theme - > tq setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
install_theme - > setSizePolicy( TQSizePolicy : : Preferred , TQSizePolicy : : Preferred ) ;
connect ( install_theme , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( installTheme ( ) ) ) ;
connect ( install_theme , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( installTheme ( ) ) ) ;
loadThemes ( ) ;
loadThemes ( ) ;
@ -144,7 +144,7 @@ ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent
connect ( link_down , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( moveLinkDown ( ) ) ) ;
connect ( link_down , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( moveLinkDown ( ) ) ) ;
link_list = new KListView ( links ) ;
link_list = new KListView ( links ) ;
link_list - > tq setSizePolicy( TQSizePolicy : : Expanding , TQSizePolicy : : Expanding ) ;
link_list - > setSizePolicy( TQSizePolicy : : Expanding , TQSizePolicy : : Expanding ) ;
link_list - > setSorting ( - 1 ) ;
link_list - > setSorting ( - 1 ) ;
link_list - > setItemsMovable ( TRUE ) ;
link_list - > setItemsMovable ( TRUE ) ;
link_list - > addColumn ( i18n ( " Name " ) ) ;
link_list - > addColumn ( i18n ( " Name " ) ) ;
@ -320,7 +320,7 @@ void ConfigDialog::createLink()
TQLineEdit * url = new TQLineEdit ( " file:/ " , main ) ;
TQLineEdit * url = new TQLineEdit ( " file:/ " , main ) ;
KIconButton * icon = new KIconButton ( main ) ;
KIconButton * icon = new KIconButton ( main ) ;
icon - > tq setSizePolicy( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
icon - > setSizePolicy( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
icon - > setIconType ( KIcon : : Small , KIcon : : Any ) ;
icon - > setIconType ( KIcon : : Small , KIcon : : Any ) ;
icon - > setStrictIconSize ( true ) ;
icon - > setStrictIconSize ( true ) ;
icon - > setIcon ( " folder " ) ;
icon - > setIcon ( " folder " ) ;
@ -342,7 +342,7 @@ void ConfigDialog::createLink()
main_layout - > addItem ( new TQSpacerItem ( 10 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
main_layout - > addItem ( new TQSpacerItem ( 10 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
main_layout - > addLayout ( bottom_layout ) ;
main_layout - > addLayout ( bottom_layout ) ;
main - > resize ( 300 , main - > tq sizeHint( ) . height ( ) ) ;
main - > resize ( 300 , main - > sizeHint( ) . height ( ) ) ;
if ( main - > exec ( ) = = TQDialog : : Accepted ) {
if ( main - > exec ( ) = = TQDialog : : Accepted ) {
TQString name_str = name - > text ( ) ;
TQString name_str = name - > text ( ) ;
@ -403,7 +403,7 @@ void ConfigDialog::editLink(TQListViewItem *item)
TQLineEdit * url = new TQLineEdit ( linkList [ item ] - > url , main ) ;
TQLineEdit * url = new TQLineEdit ( linkList [ item ] - > url , main ) ;
KIconButton * icon = new KIconButton ( main ) ;
KIconButton * icon = new KIconButton ( main ) ;
icon - > tq setSizePolicy( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
icon - > setSizePolicy( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ;
icon - > setIconType ( KIcon : : Small , KIcon : : Any ) ;
icon - > setIconType ( KIcon : : Small , KIcon : : Any ) ;
icon - > setStrictIconSize ( true ) ;
icon - > setStrictIconSize ( true ) ;
icon - > setIcon ( linkList [ item ] - > icon ) ;
icon - > setIcon ( linkList [ item ] - > icon ) ;
@ -425,7 +425,7 @@ void ConfigDialog::editLink(TQListViewItem *item)
main_layout - > addItem ( new TQSpacerItem ( 10 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
main_layout - > addItem ( new TQSpacerItem ( 10 , 10 , TQSizePolicy : : Minimum , TQSizePolicy : : Expanding ) ) ;
main_layout - > addLayout ( bottom_layout ) ;
main_layout - > addLayout ( bottom_layout ) ;
main - > resize ( 300 , main - > tq sizeHint( ) . height ( ) ) ;
main - > resize ( 300 , main - > sizeHint( ) . height ( ) ) ;
if ( main - > exec ( ) = = TQDialog : : Accepted ) {
if ( main - > exec ( ) = = TQDialog : : Accepted ) {
TQString name_str = name - > text ( ) ;
TQString name_str = name - > text ( ) ;