Logo Search packages:      
Sourcecode: kanagram version File versions  Download package

Kanagram::Kanagram (  )

default constructor

Definition at line 81 of file kanagram.cpp.

References checkWord(), hideHint(), loadSettings(), m_fillColor, m_game, m_helpMenu, m_hintTimer, m_inputBox, m_renderer, setupActions(), and slotFileError().

: KMainWindow(), m_game(NULL), m_overNext(false), m_overConfig(false),
    m_overHelp(false), m_overQuit(false), m_overReveal(false), m_overHint(false),
    m_overUp(false), m_overAboutKDE(false), m_overAboutApp(false),
    m_overHandbook(false), m_overSwitcher(false), m_overLogo(false),
    m_overHintBox(false), m_showHint(false), m_player(NULL), m_actionCollection(NULL)
{
    setAttribute(Qt::WA_StaticContents);
    m_renderer = new QSvgRenderer(KStandardDirs::locate("appdata", "images/kanagram.svg"));

    m_helpMenu = new KHelpMenu(this, KGlobal::mainComponent().aboutData());

    setupActions();

    loadSettings();

    m_game = new KanagramGame();

    setMouseTracking(true);
    m_chalkColor = QColor(155, 155, 155);
    m_chalkHighlightColor = QColor(255, 255, 255);
    m_fillColor = QColor(45, 45, 45);
    m_fontColor = QColor(55, 55, 55);
    m_fontHighlightColor = QColor(99, 99, 99);

    m_hintTimer = new QTimer(this);
    m_hintTimer->setSingleShot(true);

    m_inputBox = new KLineEdit(this);
    m_inputBox->setFrame(false);

    connect(m_inputBox, SIGNAL(returnPressed()), SLOT(checkWord()));
    connect(m_hintTimer, SIGNAL(timeout()), SLOT(hideHint()));
    connect(m_inputBox, SIGNAL(textChanged(const QString &)), SLOT(update()));
    connect(m_game, SIGNAL(fileError(const QString &)), SLOT(slotFileError(const QString &)));

    QFont f = QFont();
    f.setPointSize(17);
    m_inputBox->setFont(f);
    m_inputBox->show();

    show();

    setAutoSaveSettings();

    setMinimumSize(650, 471);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index