mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
3762f22e76
It is a separate detacheable pane, which could also be enabled/disabled, it tracks the current tab's contains, and lists those dictionaries that contributed their content to the current translation. Clicking on dictionary name jumps to the appropriate article from this dictionary, which improves the navigation flow. The Dictionaries Pane: * Shows both dictionaries' names and icons. * Does not consume resources when hidden. * Properly styled. * Properly handles app-wide shortcuts (Esc, Ctrl-L, Alt-D, Enter, Alt-Up/Down).
24 lines
529 B
C++
24 lines
529 B
C++
/* This file is (c) 2008-2011 Konstantin Isakov <ikm@goldendict.org>
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#ifndef __DICTSPANEWIDGET_HH_INCLUDED__
|
|
#define __DICTSPANEWIDGET_HH_INCLUDED__
|
|
|
|
#include <QWidget>
|
|
#include <QSize>
|
|
|
|
/// A widget holding the contents of the 'Dictionaries pane' docklet.
|
|
class DictsPaneWidget: public QWidget
|
|
{
|
|
public:
|
|
|
|
DictsPaneWidget( QWidget * parent = 0 ): QWidget( parent )
|
|
{}
|
|
|
|
virtual QSize sizeHint() const
|
|
{ return QSize( 204, 204 ); }
|
|
|
|
};
|
|
|
|
#endif
|