summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_sort_constants.h
blob: df1094674d1c27b3b774854a60406cf8c37e53fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef KONQ_SORT_CONSTANTS_H
#define KONQ_SORT_CONSTANTS_H

typedef unsigned short TextSortOrder;
  // Can't use name 'SortOrder' because that's part of TQt

enum {
  UNICODE_UNMODIFIED      = 0,
  LOCALE_UNMODIFIED       = 1,
  UNICODE_CASEINSENSITIVE = 2,
} TextSortOrders;

#define LOCALE_DEFAULT LOCALE_UNMODIFIED


/*
    We define the following UI text items once to be used in different places
    FIXME: if this "define once, use many" concept turns out to be unnecessary,
    these macros should be removed and references to them should be updated
    accordingly.
*/

#include <tdelocale.h>

#define LABEL_UNICODE_UNMODIFIED      I18N_NOOP("&Unicode based")
#define LABEL_UNICODE_CASEINSENSITIVE I18N_NOOP("Unicode based, &case insensitive")
#define LABEL_LOCALE_UNMODIFIED       I18N_NOOP("&Locale Order")
#define LABEL_LOCALE_MODIFIED         I18N_NOOP("Locale Order - &Improved")

#define LABEL_DIRECTORIES_FIRST       I18N_NOOP("&Directories displayed before non-directories")
#define LABEL_HIDDEN_FIRST            I18N_NOOP("&Hidden displayed before non-hidden")

#define TOOLTIP_UNICODE_UNMODIFIED      I18N_NOOP("Strict numeric Unicode codepoint order")
#define TOOLTIP_UNICODE_CASEINSENSITIVE I18N_NOOP("Like above but with lower/upper case ASCII letters adjacent")
#define TOOLTIP_LOCALE_UNMODIFIED       I18N_NOOP("Locale-defined order, usually \"friendly\"")
#define TOOLTIP_LOCALE_MODIFIED         I18N_NOOP("Locale-defined order with enhancements")

#define TOOLTIP_DIRECTORIES_FIRST       I18N_NOOP("Group directories before non-directories")
#define TOOLTIP_HIDDEN_FIRST            I18N_NOOP("Group hidden before non-hidden")

#endif // KONQ_SORT_CONSTANTS_H