cxWidgets 1.0
cxDialog.h
Go to the documentation of this file.
1// Copyright (c) 2026 E. Oulashin
2#ifndef __CXDIALOG_H__
3#define __CXDIALOG_H__
4
5// Copyright (c) 2005-2007 Michael H. Kinney
6
7#include "cxUtils.h"
8#include "cxWindow.h"
9#include <string>
10
11namespace cx {
12
19class cxDialog : public cxWindow
20{
21 public:
33 explicit cxDialog(cxWindow *pParentWindow = nullptr, int pRow = 0,
34 int pCol = 0, int pHeight = 0,
35 int pWidth = 0,
36 const std::string& pTitle = "",
37 const std::string& pMessage = "",
38 const std::string& pStatus = "");
39
49 cxDialog(cxWindow *pParentWindow,
50 int pRow, int pCol, const std::string& pTitle,
51 const std::string& pMessage, const std::string& pStatus);
59 cxDialog(cxWindow *pParentWindow,
60 const std::string& pTitle, const std::string& pMessage,
61 const std::string& pStatus);
62
72 cxDialog(cxWindow *pParentWindow,
73 const std::string& pTitle, const std::string& pMessage,
74 const std::string& pStatus, int pHeight, int pWidth);
75
82 cxDialog(cxWindow *pParentWindow,
83 const std::string& pMessage, const std::string& pStatus);
92 cxDialog(cxWindow *pParentWindow,
93 const std::string& pMessage, const std::string& pStatus,
94 int pHeight, int pWidth);
100 cxDialog(cxWindow *pParentWindow, const std::string& pMessage);
101
105 virtual ~cxDialog();
106
120 virtual long showModal(bool pShowSelf = true, bool pBringToTop = true,
121 bool pShowSubwindows = true) override;
122
130 virtual std::string cxTypeStr() const override;
131
132 private:
133};
134
135} // namespace cx
136
137#endif
Represents a dialog window on the screen (i.e., something to be shown.
Definition cxDialog.h:20
cxDialog(cxWindow *pParentWindow, const std::string &pMessage)
cxDialog(cxWindow *pParentWindow, const std::string &pTitle, const std::string &pMessage, const std::string &pStatus, int pHeight, int pWidth)
cxDialog(cxWindow *pParentWindow, const std::string &pMessage, const std::string &pStatus, int pHeight, int pWidth)
cxDialog(cxWindow *pParentWindow=nullptr, int pRow=0, int pCol=0, int pHeight=0, int pWidth=0, const std::string &pTitle="", const std::string &pMessage="", const std::string &pStatus="")
virtual ~cxDialog()
Definition cxDialog.cpp:58
cxDialog(cxWindow *pParentWindow, const std::string &pTitle, const std::string &pMessage, const std::string &pStatus)
cxDialog(cxWindow *pParentWindow, int pRow, int pCol, const std::string &pTitle, const std::string &pMessage, const std::string &pStatus)
virtual std::string cxTypeStr() const override
Returns the name of the cxWidgets class. This can be used to.
Definition cxDialog.cpp:148
cxDialog(cxWindow *pParentWindow, const std::string &pMessage, const std::string &pStatus)
virtual long showModal(bool pShowSelf=true, bool pBringToTop=true, bool pShowSubwindows=true) override
Shows the dialog, waits for input, and.
Definition cxDialog.cpp:62
Represents a text-based window on the screen. Can contain a title, status, and a message to appear wi...
Definition cxWindow.h:195
cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all it...
Definition cxApp.cpp:5