2#ifndef __CXSCROLLEDWINDOW_H__
3#define __CXSCROLLEDWINDOW_H__
12#define DEFAULT_CXSCROLLEDWINDOW_SEARCH_KEY '/'
13#define DEFAULT_CXSCROLLEDWINDOW_GOTO_KEY CTRL_G
14#define DEFAULT_CXSCROLLEDWINDOW_ALT_PGUP_KEY '.'
15#define DEFAULT_CXSCROLLEDWINDOW_ALT_PGDOWN_KEY ','
77 int pRow = 0,
int pCol = 0,
80 const std::string& pTitle =
"",
81 const std::string& pMessage =
"",
82 const std::string& pStatus =
"",
85 cxWindow *pExtStatusWindow =
nullptr,
86 bool pMessageUnderlines =
false);
102 int pRow,
int pCol,
const std::string& pTitle,
103 const std::string& pMessage,
const std::string& pStatus,
104 cxWindow *pExtTitleWindow =
nullptr,
105 cxWindow *pExtStatusWindow =
nullptr,
106 bool pMessageUnderlines =
false);
120 const std::string& pTitle,
const std::string& pMessage,
121 const std::string& pStatus,
122 cxWindow *pExtTitleWindow =
nullptr,
123 cxWindow *pExtStatusWindow =
nullptr,
124 bool pMessageUnderlines =
false);
137 const std::string& pMessage,
const std::string& pStatus,
138 cxWindow *pExtTitleWindow =
nullptr,
139 cxWindow *pExtStatusWindow =
nullptr,
140 bool pMessageUnderlines =
false);
152 cxWindow *pExtTitleWindow =
nullptr,
153 cxWindow *pExtStatusWindow =
nullptr,
154 bool pMessageUnderlines =
false);
169 const std::string& pTitle,
const std::string& pMessage,
170 const std::string& pStatus,
171 cxWindow *pExtTitleWindow =
nullptr,
172 cxWindow *pExtStatusWindow =
nullptr,
173 bool pMessageUnderlines =
false);
193 virtual long show(
bool pBringToTop =
true,
bool pShowSubwindows =
true)
override;
209 virtual long showModal(
bool pShowSelf =
true,
bool pBringToTop =
true,
210 bool pShowSubwindows =
false)
override;
219 virtual void scrollWin(
int pVertScrollAmt,
int pHorizScrollAmt,
220 bool pRefresh =
false);
235 virtual bool move(
int pNewRow,
int pNewCol,
bool pRefresh =
true)
override;
243 virtual void resize(
int pNewHeight,
int pNewWidth,
bool pRefresh =
false)
override;
314 virtual std::string
cxTypeStr()
const override;
342 virtual void init(
int pRow,
int pCol,
int pHeight,
int pWidth,
343 const std::string& pTitle,
const std::string& pMessage,
344 const std::string& pStatus,
346 bool pResizeVertically =
false)
override;
378 WINDOW *mSubWindow =
nullptr;
379 int mSubWinHeight = 0;
380 int mSubWinWidth = 0;
382 int mHScrollOffset = 0;
387 std::string mSearchKeyword;
388 bool mUseLastKeyword =
true;
391 std::shared_ptr<cxFunction> mLoopStartFunction;
392 std::shared_ptr<cxFunction> mLoopEndFunction;
400 long doInputLoop(
bool& pRunOnLeaveFunction);
409 std::string getLine(
int pLineNumber);
414 inline void goToLine(
int pLineNum);
425 void drawHorizontalScrollArrows();
Represents a text-based window on the screen. Can contain a title, status, and a message to appear wi...
Definition cxWindow.h:195
#define DEFAULT_HEIGHT
Definition cxWindow.h:68
#define DEFAULT_WIDTH
Definition cxWindow.h:69
cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all it...
Definition cxApp.cpp:5
eBorderStyle
Definition cxBorderStyles.h:26
@ eBS_SINGLE_LINE
Definition cxBorderStyles.h:28
eHPosition
Definition cxPositions.h:16