-
Notifications
You must be signed in to change notification settings - Fork 730
/
orderandprops.hh
45 lines (32 loc) · 1.25 KB
/
orderandprops.hh
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
42
43
44
45
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#ifndef __ORDERANDPROPS_HH_INCLUDED__
#define __ORDERANDPROPS_HH_INCLUDED__
#include "ui_orderandprops.h"
#include "groups_widgets.hh"
#include <QSortFilterProxyModel>
class OrderAndProps: public QWidget
{
Q_OBJECT;
public:
OrderAndProps( QWidget * parent, Config::Group const & dictionaryOrder,
Config::Group const & inactiveDictionaries,
std::vector< sptr< Dictionary::Class > > const & allDictionaries );
Config::Group getCurrentDictionaryOrder() const;
Config::Group getCurrentInactiveDictionaries() const;
private slots:
void dictionarySelectionChanged( const QItemSelection ¤t );
void inactiveDictionarySelectionChanged( const QItemSelection ¤t );
void contextMenuRequested( const QPoint & pos );
void filterChanged( QString const & filterText );
void dictListFocused();
void inactiveDictListFocused();
void showDictNumbers();
private:
Ui::OrderAndProps ui;
void disableDictionaryDescription();
void describeDictionary( DictListWidget *, QModelIndex const & );
signals:
void showDictionaryHeadwords( QString const & dictId );
};
#endif