Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (27 sloc) 752 Bytes
// Copyright © 2008-2012 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef _CHATFORM_H
#define _CHATFORM_H
#include "Form.h"
class ChatForm : public FaceForm {
public:
ChatForm(FormController *controller);
virtual void ShowAll();
protected:
void SetMessage(std::string msg);
void AddOption(std::string text, int val);
void Clear();
void Close();
void AddTopWidget(Gui::Widget *w);
void AddBottomWidget(Gui::Widget *w);
virtual void OnOptionClicked(int option) = 0;
private:
void OnOptionClickedTrampoline(int option);
Gui::Label *m_message;
Gui::VBox *m_topRegion;
Gui::VBox *m_bottomRegion;
bool m_hasOptions;
bool m_doSetup;
bool m_close;
};
#endif
Something went wrong with that request. Please try again.