示例#1
0
void MyFrame::OnShowAnswer(wxCommandEvent& WXUNUSED(event)) {
	if(m_keyword->IsShown()) {
		HideAnswer();
	} else {
		ShowAnswer();
	}
}
示例#2
0
//---------------------------------------------------------------------------
void __fastcall TQuizForm::Answer1Click(TObject *Sender)
{
	auto& state = questions[FCurrentQuestion - 1].state;
	bool Correct = state->capital == static_cast<TButton*>(Sender)->Text;
	if (Correct) {
		++FCorrectAnswers;
	}
	ShowAnswer(this, Correct, state->name, state->capital);
	++FCurrentQuestion;
}
示例#3
0
	void IrcServerHandler::IncomingNoticeMessage (const QString& nick, const QString& msg)
	{
		ShowAnswer ("NOTICE", msg);
		QList<NickServIdentify> list = Core::Instance ()
				.GetNickServIdentifyWithMainParams (ServerOptions_.ServerName_,
						GetNickName (),
						nick);

		if (list.isEmpty ())
			return;

		Q_FOREACH (const NickServIdentify& nsi, list)
		{
			QRegExp authRegExp (nsi.AuthString_,
					Qt::CaseInsensitive,
					QRegExp::Wildcard);
			if (authRegExp.indexIn (msg) == -1)
				continue;

			SendMessage2Server (nsi.AuthMessage_.split (' '));
			return;
		}
示例#4
0
void DialogCard::OnButtonShow(wxCommandEvent& event)
{
    ShowAnswer();
}
示例#5
0
void DialogCard::HideAnswer()
{
    ShowAnswer(false);
}