mirror of
https://review.haiku-os.org/haiku
synced 2025-01-20 21:41:28 +01:00
35 lines
733 B
C
35 lines
733 B
C
|
/*
|
||
|
* Copyright 2012, Rene Gollent, rene@gollent.com.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef PROMPT_WINDOW_H_
|
||
|
#define PROMPT_WINDOW_H_
|
||
|
|
||
|
|
||
|
#include <Messenger.h>
|
||
|
#include <Window.h>
|
||
|
|
||
|
|
||
|
class BTextControl;
|
||
|
|
||
|
|
||
|
class PromptWindow : public BWindow
|
||
|
{
|
||
|
public:
|
||
|
// PromptWindow takes ownership of message
|
||
|
PromptWindow(const char* title, const char* label, BMessenger target,
|
||
|
BMessage* message = NULL);
|
||
|
~PromptWindow();
|
||
|
|
||
|
virtual void MessageReceived(BMessage* message);
|
||
|
|
||
|
status_t SetTarget(BMessenger messenger);
|
||
|
status_t SetMessage(BMessage* message);
|
||
|
private:
|
||
|
BTextControl* fTextControl;
|
||
|
BMessenger fTarget;
|
||
|
BMessage* fMessage;
|
||
|
};
|
||
|
|
||
|
#endif // PROMPT_WINDOW_H_
|