2010-07-10 08:58:15 -05:00
|
|
|
/*
|
2021-07-14 13:17:00 -05:00
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
2010-05-07 04:47:10 -05:00
|
|
|
*/
|
2021-07-14 13:17:00 -05:00
|
|
|
#ifndef _RUN_VIEW_H
|
|
|
|
#define _RUN_VIEW_H
|
2010-07-10 08:58:15 -05:00
|
|
|
|
2021-07-14 20:08:14 -05:00
|
|
|
#include <Url.h>
|
2010-05-07 04:47:10 -05:00
|
|
|
|
2021-08-01 06:56:07 -05:00
|
|
|
#include <libinterface/UrlTextView.h>
|
|
|
|
|
2021-07-14 22:10:23 -05:00
|
|
|
class BPopUpMenu;
|
|
|
|
|
2010-07-10 08:58:15 -05:00
|
|
|
|
2021-08-01 06:56:07 -05:00
|
|
|
class RunView : public UrlTextView {
|
2010-07-10 08:58:15 -05:00
|
|
|
public:
|
2021-07-14 13:17:00 -05:00
|
|
|
RunView(const char* name);
|
2010-07-10 08:58:15 -05:00
|
|
|
|
2021-07-25 11:37:17 -05:00
|
|
|
void Append(const char* text, rgb_color color, BFont font);
|
|
|
|
void Append(const char* text, rgb_color color, uint16 fontFace);
|
|
|
|
void Append(const char* text, rgb_color color);
|
2021-07-14 22:10:23 -05:00
|
|
|
void Append(const char* text);
|
|
|
|
|
2021-07-14 20:08:14 -05:00
|
|
|
void ScrollToBottom();
|
|
|
|
|
2021-07-14 13:17:00 -05:00
|
|
|
private:
|
2021-07-15 13:01:21 -05:00
|
|
|
// For safe-keeping
|
2021-07-14 13:17:00 -05:00
|
|
|
text_run_array fDefaultRun;
|
2021-07-15 13:01:21 -05:00
|
|
|
|
|
|
|
// Whether or not the run was changed from default
|
|
|
|
bool fLastStyled;
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
|
2021-07-14 13:17:00 -05:00
|
|
|
#endif // _RUN_VIEW_H
|