2 * This file Copyright (C) Mnemosyne LLC
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
8 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10 * $Id: filters.cc 11196 2010-09-06 00:19:37Z charles $
15 const QString
FilterMode::names
[NUM_MODES
] =
29 FilterMode :: modeFromName( const QString
& name
)
31 for( int i
=0; i
<NUM_MODES
; ++i
)
32 if( names
[i
] == name
)
34 return FilterMode().mode(); // use the default value
37 const QString
SortMode::names
[NUM_MODES
] = {
50 SortMode :: modeFromName( const QString
& name
)
52 for( int i
=0; i
<NUM_MODES
; ++i
)
53 if( names
[i
] == name
)
55 return SortMode().mode(); // use the default value