d1854cb931
* Implemented a text input box to name a new theme. * Made loading of themes asynchronous in a thread, controls are disabled but at least the window appears ASAP. * fixed app sig * Implemented setting colors and fonts on Haiku. * Implemented setting the window decor, but doesn't work as we don't have any decorator installed. * Enable all addons. TODO: forbid quitting while themes are loading! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23508 a95241bf-73f2-0310-859d-f6bbb57e9c96
30 lines
701 B
C++
30 lines
701 B
C++
#ifndef TEXT_INPUT_ALERT_H
|
|
#define TEXT_INPUT_ALERT_H
|
|
|
|
#include <Alert.h>
|
|
#include <TextControl.h>
|
|
|
|
class TextInputAlert : public BAlert {
|
|
public:
|
|
TextInputAlert(const char *title,
|
|
const char *text,
|
|
const char *initial, /* initial input value */
|
|
const char *button0Label,
|
|
const char *button1Label = NULL,
|
|
const char *button2Label = NULL,
|
|
button_width widthStyle = B_WIDTH_AS_USUAL,
|
|
alert_type type = B_INFO_ALERT);
|
|
virtual ~TextInputAlert();
|
|
virtual void Show();
|
|
|
|
const char *Text() const { return fText->Text(); };
|
|
BTextControl *TextControl() const { return fText; };
|
|
|
|
|
|
private:
|
|
BTextControl *fText;
|
|
};
|
|
|
|
#endif /* TEXT_INPUT_ALERT_H */
|
|
|