haiku/3rdparty/mmu_man/themes/TextInputAlert.h
François Revol f0d95841ee Add missing copyrights.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-01 04:28:35 +00:00

34 lines
836 B
C++

/*
* Copyright 2007-2008, François Revol, <revol@free.fr>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#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 */