First version of the new dialog engine added to the repository. It compiles, and links with one error. Because of this, it is untested as yet.
git-svn-id: http://openexile.googlecode.com/svn/trunk@73 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
37
osx/dialogxml/message.h
Normal file
37
osx/dialogxml/message.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* message.h
|
||||
* BoE
|
||||
*
|
||||
* Created by Celtic Minstrel on 11/05/09.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MESSAGE_H
|
||||
#define MESSAGE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class cTextMsg : public cControl {
|
||||
public:
|
||||
void attachClickHandler(click_callback_t f) throw();
|
||||
void attachFocusHandler(focus_callback_t f) throw(xHandlerNotSupported);
|
||||
bool triggerClickHandler(cDialog& me, std::string id, eKeyMod mods);
|
||||
void setFormat(eFormat prop, short val) throw(xUnsupportedProp);
|
||||
short getFormat(eFormat prop) throw(xUnsupportedProp);
|
||||
std::string getText();
|
||||
void setText(std::string what);
|
||||
cTextMsg(cDialog* parent);
|
||||
bool isClickable();
|
||||
virtual ~cTextMsg();
|
||||
protected:
|
||||
void draw();
|
||||
private:
|
||||
friend class cDialog;
|
||||
bool drawFramed, clickable;
|
||||
short textSize;
|
||||
eTextFont textFont;
|
||||
RGBColor color;
|
||||
std::string fromList;
|
||||
click_callback_t onClick;
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user