2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
2009-05-18 18:01:50 +00:00
|
|
|
* 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"
|
2013-01-04 13:24:08 +00:00
|
|
|
#include <QSortFilterProxyModel>
|
2009-05-18 18:01:50 +00:00
|
|
|
|
|
|
|
class OrderAndProps: public QWidget
|
|
|
|
{
|
2022-05-15 09:43:22 +00:00
|
|
|
Q_OBJECT
|
2009-05-18 18:01:50 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
OrderAndProps( QWidget * parent, Config::Group const & dictionaryOrder,
|
|
|
|
Config::Group const & inactiveDictionaries,
|
2022-07-08 13:47:09 +00:00
|
|
|
std::vector< sptr< Dictionary::Class > > const & allDictionaries);
|
2009-05-18 18:01:50 +00:00
|
|
|
|
|
|
|
Config::Group getCurrentDictionaryOrder() const;
|
|
|
|
Config::Group getCurrentInactiveDictionaries() const;
|
|
|
|
|
2009-05-24 15:45:37 +00:00
|
|
|
private slots:
|
|
|
|
|
2013-01-07 08:52:36 +00:00
|
|
|
void dictionarySelectionChanged( const QItemSelection ¤t );
|
|
|
|
void inactiveDictionarySelectionChanged( const QItemSelection ¤t );
|
2012-12-18 12:33:53 +00:00
|
|
|
void contextMenuRequested( const QPoint & pos );
|
2013-01-04 13:24:08 +00:00
|
|
|
void filterChanged( QString const & filterText );
|
2013-01-07 08:52:36 +00:00
|
|
|
void dictListFocused();
|
|
|
|
void inactiveDictListFocused();
|
2014-06-30 13:58:39 +00:00
|
|
|
void showDictNumbers();
|
2009-05-24 15:45:37 +00:00
|
|
|
|
2009-05-18 18:01:50 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
Ui::OrderAndProps ui;
|
2009-05-24 15:45:37 +00:00
|
|
|
void disableDictionaryDescription();
|
|
|
|
void describeDictionary( DictListWidget *, QModelIndex const & );
|
2014-03-01 13:11:14 +00:00
|
|
|
|
|
|
|
signals:
|
2023-04-12 19:52:35 +00:00
|
|
|
void showDictionaryHeadwords( Dictionary::Class * dict );
|
2009-05-18 18:01:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|