blob: 809abe153013b10dd043aac0e8620840664887f1 [file] [log] [blame]
#ifndef TVTEXTCTRL_H
#define TVTEXTCTRL_H
#include "TVWindowIDs.h"
#include "ItemDisplayer.h"
#include <wx/textctrl.h>
class TVTextCtrl : public ItemDisplayer {
wxTextCtrl *myTextCtrl;
public:
TVTextCtrl (wxWindow *_parent, const wxString &_value = wxT("")) {
myTextCtrl = new wxTextCtrl (_parent, LLVM_TV_TEXT_CTRL, _value,
wxDefaultPosition, wxDefaultSize,
wxTE_READONLY | wxTE_MULTILINE | wxHSCROLL);
}
void displayItem (TVTreeItemData *item);
wxWindow *getWindow () { return myTextCtrl; }
std::string getDisplayTitle (TVTreeItemData *item) { return "Text view"; }
};
#endif // TVTEXTCTRL_H