2#ifndef __CXFILEVIEWER_H__
3#define __CXFILEVIEWER_H__
45 int pRow = 0,
int pCol = 0,
71 virtual long show(
bool pBringToTop =
true,
bool pShowSubwindows =
true)
override;
91 virtual std::string
cxTypeStr()
const override;
102 std::string mFilename;
105 void displayLineNumbers();
111 static std::string updateLineNumbers(
cxFileViewer& pFileViewer);
114 void setLoopEndFunction(
const std::shared_ptr<cxFunction>& pFuncPtr)
override;
Represents a window that displays a file. While the object is being displayed with showModal(),...
Definition cxFileViewer.h:32
void load()
Loads the contents of the file.
Definition cxFileViewer.cpp:69
virtual long show(bool pBringToTop=true, bool pShowSubwindows=true) override
Shows the window.
Definition cxFileViewer.cpp:62
virtual std::string cxTypeStr() const override
Returns the name of the cxWidgets class. This can be used to.
Definition cxFileViewer.cpp:115
void copyCxFileViewerStuff(const cxFileViewer *pThatFileViewer)
Makes a copy of a cxFileViewer's member variables.
Definition cxFileViewer.cpp:122
int widestLine()
Definition cxFileViewer.cpp:99
cxFileViewer(cxWindow *pParentWindow, const std::string &pFilename, int pRow=0, int pCol=0, int pHeight=DEFAULT_HEIGHT, int pWidth=DEFAULT_WIDTH)
virtual ~cxFileViewer()
Definition cxFileViewer.cpp:58
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