Switch to unified view

a/src/qtgui/guiutils.h b/src/qtgui/guiutils.h
...
...
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _GUIUTILS_H_INCLUDED_
17
#ifndef _GUIUTILS_H_INCLUDED_
18
#define _GUIUTILS_H_INCLUDED_
18
#define _GUIUTILS_H_INCLUDED_
19
/* 
19
/* 
20
 * @(#$Id: guiutils.h,v 1.21 2007-05-24 07:48:19 dockes Exp $  (C) 2005 Jean-Francois Dockes 
20
 * @(#$Id: guiutils.h,v 1.22 2007-07-12 08:23:40 dockes Exp $  (C) 2005 Jean-Francois Dockes 
21
 *                         jean-francois.dockes@wanadoo.fr
21
 *                         jean-francois.dockes@wanadoo.fr
22
 *
22
 *
23
 *   This program is free software; you can redistribute it and/or modify
23
 *   This program is free software; you can redistribute it and/or modify
24
 *   it under the terms of the GNU General Public License as published by
24
 *   it under the terms of the GNU General Public License as published by
25
 *   the Free Software Foundation; either version 2 of the License, or
25
 *   the Free Software Foundation; either version 2 of the License, or
...
...
59
extern bool printableUrl(const string &in, string &out);
59
extern bool printableUrl(const string &in, string &out);
60
60
61
/** Holder for preferences (gets saved to user Qt prefs) */
61
/** Holder for preferences (gets saved to user Qt prefs) */
62
class PrefsPack {
62
class PrefsPack {
63
 public:
63
 public:
64
    bool showicons;
65
    bool autoSearchOnWS;
64
    bool autoSearchOnWS;
66
    int respagesize;
65
    int respagesize;
67
    QString reslistfontfamily;
66
    QString reslistfontfamily;
68
    int reslistfontsize;
67
    int reslistfontsize;
69
    // Result list format string
68
    // Result list format string
...
...
110
109
111
    // Advanced search window clause list state
110
    // Advanced search window clause list state
112
    vector<int> advSearchClauses;
111
    vector<int> advSearchClauses;
113
112
114
    PrefsPack() :
113
    PrefsPack() :
115
  showicons(true), 
116
    respagesize(8), 
114
    respagesize(8), 
117
    reslistfontsize(10),
115
    reslistfontsize(10),
118
    ssearchTyp(0),
116
    ssearchTyp(0),
119
    queryBuildAbstract(true),
117
    queryBuildAbstract(true),
120
    queryReplaceAbstract(false),
118
    queryReplaceAbstract(false),
121
    startWithAdvSearchOpen(false),
119
    startWithAdvSearchOpen(false),
122
        startWithSortToolOpen(false),
120
    startWithSortToolOpen(false),
123
        termMatchType(0)
121
    termMatchType(0)
124
        {
122
        {
125
        }
123
        }
124
    static const char *getDfltResListFormat() {
125
  return  "<img src=\"%I\" align=\"left\">"
126
  "%R %S %L &nbsp;&nbsp;<b>%T</b><br>"
127
  "%M&nbsp;%D&nbsp;&nbsp;&nbsp;<i>%U</i><br>"
128
  "%A %K";
129
    }
130
126
};
131
};
127
132
128
/** Global preferences record */
133
/** Global preferences record */
129
extern PrefsPack prefs;
134
extern PrefsPack prefs;
130
135