36 lines
800 B
C++
36 lines
800 B
C++
/**
|
|
* @brief demo application for the library
|
|
* @author Christian Burger (christian@krikkel.de)
|
|
*/
|
|
|
|
#ifndef A3B2AE4E_0A39_468C_8CCA_E6508166702A
|
|
#define A3B2AE4E_0A39_468C_8CCA_E6508166702A
|
|
|
|
#include <cursesapp.h>
|
|
#include <mutex>
|
|
|
|
namespace krikkel::NCurses
|
|
{
|
|
class VerticalTilingWindowManager;
|
|
class Window;
|
|
class PtyWindow;
|
|
|
|
class DemoApp : public NCursesApplication
|
|
{
|
|
public:
|
|
DemoApp();
|
|
|
|
private:
|
|
VerticalTilingWindowManager *windowManager;
|
|
Window *dummyWindowTop, *dummyWindowBottom;
|
|
PtyWindow *ptyWindow;
|
|
std::recursive_mutex ncursesMutex;
|
|
|
|
int run() override;
|
|
void setUpWindows();
|
|
void mainLoop();
|
|
};
|
|
}
|
|
|
|
#endif /* A3B2AE4E_0A39_468C_8CCA_E6508166702A */
|