mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
40 lines
841 B
C++
40 lines
841 B
C++
|
/* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.sf.net>
|
||
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||
|
|
||
|
#ifndef __GROUPS_HH_INCLUDED__
|
||
|
#define __GROUPS_HH_INCLUDED__
|
||
|
|
||
|
#include "ui_groups.h"
|
||
|
#include "config.hh"
|
||
|
#include "dictionary.hh"
|
||
|
#include "groups_widgets.hh"
|
||
|
#include <QToolButton>
|
||
|
|
||
|
class Groups: public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Groups( QWidget * parent,
|
||
|
std::vector< sptr< Dictionary::Class > > const &,
|
||
|
Config::Groups const & );
|
||
|
|
||
|
Config::Groups getGroups() const;
|
||
|
|
||
|
private:
|
||
|
Ui::Groups ui;
|
||
|
std::vector< sptr< Dictionary::Class > > const & dicts;
|
||
|
Config::Groups groups;
|
||
|
|
||
|
// Reacts to the event that the number of groups is possibly changed
|
||
|
void countChanged();
|
||
|
|
||
|
private slots:
|
||
|
|
||
|
void addNew();
|
||
|
void renameCurrent();
|
||
|
void removeCurrent();
|
||
|
};
|
||
|
|
||
|
#endif
|