"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/wconfig_generalconf.cc" between
worker-4.7.0.tar.bz2 and worker-4.8.0.tar.bz2

About: Worker is a file manager for the X Window System with the classical two panel interface.

wconfig_generalconf.cc  (worker-4.7.0.tar.bz2):wconfig_generalconf.cc  (worker-4.8.0.tar.bz2)
/* wconfig_generalconf.cc /* wconfig_generalconf.cc
* This file belongs to Worker, a file manager for UN*X/X11. * This file belongs to Worker, a file manager for UN*X/X11.
* Copyright (C) 2007-2015 Ralf Hoffmann. * Copyright (C) 2007-2021 Ralf Hoffmann.
* You can contact me at: ralf@boomerangsworld.de * You can contact me at: ralf@boomerangsworld.de
* or http://www.boomerangsworld.de/worker * or http://www.boomerangsworld.de/worker
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 29 skipping to change at line 29
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "wconfig_generalconf.hh" #include "wconfig_generalconf.hh"
#include "wconfig.h" #include "wconfig.h"
#include "worker.h" #include "worker.h"
#include "aguix/acontainerbb.h" #include "aguix/acontainerbb.h"
#include "worker_locale.h" #include "worker_locale.h"
#include "aguix/choosebutton.h" #include "aguix/choosebutton.h"
#include "aguix/cyclebutton.h" #include "aguix/cyclebutton.h"
#include "aguix/stringgadget.h"
GeneralConfPanel::GeneralConfPanel( AWindow &basewin, WConfig &baseconfig ) : WC onfigPanel( basewin, baseconfig ) GeneralConfPanel::GeneralConfPanel( AWindow &basewin, WConfig &baseconfig ) : WC onfigPanel( basewin, baseconfig )
{ {
} }
GeneralConfPanel::~GeneralConfPanel() GeneralConfPanel::~GeneralConfPanel()
{ {
} }
int GeneralConfPanel::create() int GeneralConfPanel::create()
{ {
Panel::create(); Panel::create();
AContainer *ac1 = setContainer( new AContainer( this, 1, 2 ), true ); AContainer *ac1 = setContainer( new AContainer( this, 1, 2 ), true );
ac1->setMinSpace( 5 ); ac1->setMinSpace( 5 );
ac1->setMaxSpace( 5 ); ac1->setMaxSpace( 5 );
ac1->add( new Text( _aguix, 0, 0, catalog.getLocale( 784 ) ), 0, 0, AContain er::CO_INCWNR ); ac1->add( new Text( _aguix, 0, 0, catalog.getLocale( 784 ) ), 0, 0, AContain er::CO_INCWNR );
#if 0 #if 0
AContainerBB *ac1_1 = (AContainerBB*)ac1->add( new AContainerBB( this, 1, 4 ), 0, 1 ); AContainerBB *ac1_1 = (AContainerBB*)ac1->add( new AContainerBB( this, 1, 5 ), 0, 1 );
#else #else
AContainerBB *ac1_1 = (AContainerBB*)ac1->add( new AContainerBB( this, 1, 3 ), 0, 1 ); AContainerBB *ac1_1 = (AContainerBB*)ac1->add( new AContainerBB( this, 1, 4 ), 0, 1 );
#endif #endif
ac1_1->setMinSpace( 5 ); ac1_1->setMinSpace( 5 );
ac1_1->setMaxSpace( 5 ); ac1_1->setMaxSpace( 5 );
ac1_1->setBorderWidth( 7 ); ac1_1->setBorderWidth( 7 );
m_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix, m_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix,
0, 0,
0, 0,
_baseconfig.getSaveWorke rStateOnExit(), _baseconfig.getSaveWorke rStateOnExit(),
catalog.getLocale( 785 ) , catalog.getLocale( 785 ) ,
skipping to change at line 97 skipping to change at line 98
} }
m_exregex_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix, m_exregex_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix,
0, 0,
0, 0,
_baseconfig.getU seExtendedRegEx(), _baseconfig.getU seExtendedRegEx(),
catalog.getLocal e( 1077 ), catalog.getLocal e( 1077 ),
LABEL_LEFT, LABEL_LEFT,
0 ), 0, 2, ACont ainer::CO_INCWNR ); 0 ), 0, 2, ACont ainer::CO_INCWNR );
AContainer *ac1_1_2 = ac1_1->add( new AContainer( this, 2, 1 ), 0, 3 );
ac1_1_2->setBorderWidth( 0 );
ac1_1_2->setMinSpace( 5 );
ac1_1_2->setMaxSpace( 5 );
ac1_1_2->add( new Text( _aguix, 0, 0, catalog.getLocale(1385) ), 0, 0, ACont
ainer::CO_FIX );
m_bg_check_sg = ac1_1_2->addWidget( new StringGadget( _aguix, 0, 0, 200, _ba
seconfig.getDisableBGCheckPrefix().c_str(), 0 ), 1, 0, AContainer::CO_INCW );
#if 0 #if 0
m_dialog_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix, m_dialog_cb = (ChooseButton*)ac1_1->add( new ChooseButton( _aguix,
0, 0,
0, 0,
_baseconfig.getAp plyWindowDialogType(), _baseconfig.getAp plyWindowDialogType(),
catalog.getLocale ( 999 ), catalog.getLocale ( 999 ),
LABEL_LEFT, LABEL_LEFT,
0 ), 0, 3, AConta iner::CO_INCWNR ); 0 ), 0, 3, AConta iner::CO_INCWNR );
#endif #endif
skipping to change at line 124 skipping to change at line 133
_baseconfig.setUseExtendedRegEx( m_exregex_cb->getState() ); _baseconfig.setUseExtendedRegEx( m_exregex_cb->getState() );
if ( m_string_compare_mode_cycb->getSelectedOption() == 1 ) { if ( m_string_compare_mode_cycb->getSelectedOption() == 1 ) {
_baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_VE RSION ); _baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_VE RSION );
} else if ( m_string_compare_mode_cycb->getSelectedOption() == 2 ) { } else if ( m_string_compare_mode_cycb->getSelectedOption() == 2 ) {
_baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_NO CASE ); _baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_NO CASE );
} else { } else {
_baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_RE GULAR ); _baseconfig.setUseStringCompareMode( StringComparator::STRING_COMPARE_RE GULAR );
} }
_baseconfig.setDisableBGCheckPrefix( m_bg_check_sg->getText() );
#if 0 #if 0
_baseconfig.setApplyWindowDialogType( m_dialog_cb->getState() ); _baseconfig.setApplyWindowDialogType( m_dialog_cb->getState() );
#endif #endif
return 0; return 0;
} }
 End of changes. 6 change blocks. 
3 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)