#include <Display.h>
Public Member Functions | |
Display (DialogMediator &parent) noexcept(false) | |
~Display () noexcept(false) | |
const Aiksaurus & | getThesaurus () const noexcept(false) |
GtkWidget * | getDisplay () noexcept(false) |
void | search (const char *word) noexcept(false) |
void | showMessage (const char *message) noexcept(false) |
Private Member Functions | |
Display (const Display &rhs) | |
Display & | operator= (const Display &rhs) |
void | _handleSelection (GtkWidget *list) noexcept(false) |
void | _handleClick (bool isDoubleClick, const char *text) noexcept(false) |
void | _resetDisplay () noexcept(false) |
void | _createMeaning (const std::string &title, std::vector< std::string > &words) noexcept(false) |
void | _displayResults (const char *word) noexcept(false) |
void | _displayAlternatives () noexcept(false) |
void | _checkThesaurus () noexcept(false) |
Private Attributes | |
DialogMediator & | d_mediator |
Aiksaurus | d_thesaurus |
GtkWidget * | d_scroller |
GtkWidget * | d_white |
GtkWidget * | d_layout |
std::vector< Meaning * > | d_meanings |
Friends | |
class | Meaning |
AiksaurusGTK_impl::Display::Display | ( | const Display & | rhs | ) | [private] |
AiksaurusGTK_impl::Display::Display | ( | DialogMediator & | parent | ) |
AiksaurusGTK_impl::Display::~Display | ( | ) |
References d_meanings.
void AiksaurusGTK_impl::Display::_checkThesaurus | ( | ) | [private] |
References d_thesaurus, AiksaurusImpl::Aiksaurus::error(), and showMessage().
Referenced by _displayAlternatives().
void AiksaurusGTK_impl::Display::_createMeaning | ( | const std::string & | title, | |
std::vector< std::string > & | words | |||
) | [private] |
Referenced by _displayAlternatives().
void AiksaurusGTK_impl::Display::_displayAlternatives | ( | ) | [private] |
References _checkThesaurus(), _createMeaning(), d_thesaurus, and AiksaurusImpl::Aiksaurus::similar().
void AiksaurusGTK_impl::Display::_displayResults | ( | const char * | word | ) | [private] |
void AiksaurusGTK_impl::Display::_handleClick | ( | bool | isDoubleClick, | |
const char * | text | |||
) | [private] |
References text.
Referenced by AiksaurusGTK_impl::Meaning::_wordclick().
void AiksaurusGTK_impl::Display::_handleSelection | ( | GtkWidget * | list | ) | [private] |
Referenced by AiksaurusGTK_impl::Meaning::_wordclick().
void AiksaurusGTK_impl::Display::_resetDisplay | ( | ) | [private] |
References d_layout, d_meanings, and d_white.
GtkWidget * AiksaurusGTK_impl::Display::getDisplay | ( | ) |
References d_scroller.
const Aiksaurus & AiksaurusGTK_impl::Display::getThesaurus | ( | ) | const |
References d_thesaurus.
void AiksaurusGTK_impl::Display::search | ( | const char * | word | ) |
void AiksaurusGTK_impl::Display::showMessage | ( | const char * | message | ) |
References label.
Referenced by _checkThesaurus().
friend class Meaning [friend] |
GtkWidget* AiksaurusGTK_impl::Display::d_layout [private] |
Referenced by _resetDisplay().
std::vector<Meaning*> AiksaurusGTK_impl::Display::d_meanings [private] |
Referenced by _resetDisplay(), and ~Display().
GtkWidget* AiksaurusGTK_impl::Display::d_scroller [private] |
Referenced by getDisplay().
Referenced by _checkThesaurus(), _displayAlternatives(), and getThesaurus().
GtkWidget* AiksaurusGTK_impl::Display::d_white [private] |
Referenced by _resetDisplay().