|
|
|
@ -67,6 +67,7 @@ struct KonqPropsView::Private
|
|
|
|
|
TQStringList* previewsToShow;
|
|
|
|
|
bool previewsEnabled:1;
|
|
|
|
|
bool caseInsensitiveSort:1;
|
|
|
|
|
bool dictionaryorder:1;
|
|
|
|
|
bool hiddenfirst:1;
|
|
|
|
|
bool dirsfirst:1;
|
|
|
|
|
bool descending:1;
|
|
|
|
@ -91,8 +92,9 @@ KonqPropsView::KonqPropsView( TDEInstance * instance, KonqPropsView * defaultPro
|
|
|
|
|
m_iIconSize = config->readNumEntry( "IconSize", 0 );
|
|
|
|
|
m_iItemTextPos = config->readNumEntry( "ItemTextPos", TQIconView::Bottom );
|
|
|
|
|
d->sortcriterion = config->readEntry( "SortingCriterion", "sort_nci" );
|
|
|
|
|
d->dirsfirst = config->readBoolEntry( "SortDirsFirst", true );
|
|
|
|
|
d->hiddenfirst = config->readBoolEntry( "SortHiddenFirst", true );
|
|
|
|
|
d->dirsfirst = config->readBoolEntry( "GroupDirsFirst", true );
|
|
|
|
|
d->hiddenfirst = config->readBoolEntry( "GroupHiddenFirst", true );
|
|
|
|
|
d->dictionaryorder = config->readBoolEntry( "DictionaryOrderSort", false );
|
|
|
|
|
d->descending = config->readBoolEntry( "SortDescending", false );
|
|
|
|
|
m_bShowDot = config->readBoolEntry( "ShowDotFiles", false );
|
|
|
|
|
m_bShowDirectoryOverlays = config->readBoolEntry( "ShowDirectoryOverlays", false );
|
|
|
|
@ -150,6 +152,11 @@ bool KonqPropsView::isHiddenFirst() const
|
|
|
|
|
return d->hiddenfirst;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool KonqPropsView::isDictionaryOrder() const
|
|
|
|
|
{
|
|
|
|
|
return d->dictionaryorder;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool KonqPropsView::isDescending() const
|
|
|
|
|
{
|
|
|
|
|
return d->descending;
|
|
|
|
@ -207,6 +214,8 @@ bool KonqPropsView::enterDir( const KURL & dir )
|
|
|
|
|
m_iItemTextPos = m_defaultProps->itemTextPos();
|
|
|
|
|
d->sortcriterion = m_defaultProps->sortCriterion();
|
|
|
|
|
d->dirsfirst = m_defaultProps->isDirsFirst();
|
|
|
|
|
d->hiddenfirst = m_defaultProps->isHiddenFirst();
|
|
|
|
|
d->dictionaryorder = m_defaultProps->isDictionaryOrder();
|
|
|
|
|
d->descending = m_defaultProps->isDescending();
|
|
|
|
|
m_bShowDot = m_defaultProps->isShowingDotFiles();
|
|
|
|
|
d->caseInsensitiveSort=m_defaultProps->isCaseInsensitiveSort();
|
|
|
|
@ -225,7 +234,9 @@ bool KonqPropsView::enterDir( const KURL & dir )
|
|
|
|
|
m_iIconSize = config->readNumEntry( "IconSize", m_iIconSize );
|
|
|
|
|
m_iItemTextPos = config->readNumEntry( "ItemTextPos", m_iItemTextPos );
|
|
|
|
|
d->sortcriterion = config->readEntry( "SortingCriterion" , d->sortcriterion );
|
|
|
|
|
d->dirsfirst = config->readBoolEntry( "SortDirsFirst", d->dirsfirst );
|
|
|
|
|
d->dirsfirst = config->readBoolEntry( "GroupDirsFirst", d->dirsfirst );
|
|
|
|
|
d->hiddenfirst = config->readBoolEntry( "GroupHiddenFirst", d->hiddenfirst );
|
|
|
|
|
d->dictionaryorder = config->readBoolEntry( "DictionaryOrderSort", d->dictionaryorder );
|
|
|
|
|
d->descending = config->readBoolEntry( "SortDescending", d->descending );
|
|
|
|
|
m_bShowDot = config->readBoolEntry( "ShowDotFiles", m_bShowDot );
|
|
|
|
|
d->caseInsensitiveSort=config->readBoolEntry("CaseInsensitiveSort",d->caseInsensitiveSort);
|
|
|
|
@ -330,7 +341,7 @@ void KonqPropsView::setDirsFirst( bool first)
|
|
|
|
|
else if (currentConfig())
|
|
|
|
|
{
|
|
|
|
|
TDEConfigGroupSaver cgs(currentConfig(), currentGroup());
|
|
|
|
|
currentConfig()->writeEntry( "SortDirsFirst", d->dirsfirst );
|
|
|
|
|
currentConfig()->writeEntry( "GroupDirsFirst", d->dirsfirst );
|
|
|
|
|
currentConfig()->sync();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -343,7 +354,19 @@ void KonqPropsView::setHiddenFirst(bool first)
|
|
|
|
|
else if (currentConfig())
|
|
|
|
|
{
|
|
|
|
|
TDEConfigGroupSaver cgs(currentConfig(), currentGroup());
|
|
|
|
|
currentConfig()->writeEntry( "SortHiddenFirst", d->hiddenfirst );
|
|
|
|
|
currentConfig()->writeEntry( "GroupHiddenFirst", d->hiddenfirst );
|
|
|
|
|
currentConfig()->sync();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void KonqPropsView::setDictionaryOrder(bool first)
|
|
|
|
|
{
|
|
|
|
|
d->dictionaryorder = first;
|
|
|
|
|
if ( m_defaultProps && !m_bSaveViewPropertiesLocally )
|
|
|
|
|
m_defaultProps->setDictionaryOrder( first );
|
|
|
|
|
else if (currentConfig())
|
|
|
|
|
{
|
|
|
|
|
TDEConfigGroupSaver cgs(currentConfig(), currentGroup());
|
|
|
|
|
currentConfig()->writeEntry( "DictionaryOrderSort", d->dictionaryorder );
|
|
|
|
|
currentConfig()->sync();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|