acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
message_box.h
1//
2// Created by camilo on 2023-12-19 04:12 <3ThomasBorregaardSorensen!!
3// From https://github.com/ca2/motif_labs
4//
5#pragma once
6
7
8#include "acme/operating_system/message_box.h"
9#include "application.h"
10#define register
11#include <Xm/Xm.h>
12#include <Xm/PushB.h>
13#include <Xm/MessageB.h>
14#include <X11/Intrinsic.h>
15#undef register
16
17
18namespace motif
19{
20
21
23 virtual public ::operating_system::message_box,
24 virtual public ::motif::application
25 {
26 public:
27
28
29 Widget m_pwidgetMsgBox;
30 enum_dialog_result m_edialogresult;
31
32
33 ::atom do_modal(const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrTitle, const ::user::e_message_box & emessagebox, const ::scoped_string & scopedstrDetails) override;
34 //void do_modal(const_char_pointer pszMsg, bool bError) override;
35
36
37 static void s_map_dialog(Widget dialog, XtPointer client_data, XtPointer call_data);
38
39 static void s_xm_close_msg_box(Widget w, XtPointer clientData, XmPushButtonCallbackStruct * cbs);
40
41
42 };
43
44
45} // namespace motif
46
47
48//
51//::i32 main(::i32 argc, char_pointer * argv)
52//{
53// g_argc = argc;
54// g_argv = argv;
55//
56// xt_message_box messagebox;
57//
58// messagebox.do_modal("People", false);
59//
60// return 0;
61//
62//}
63//
64//
Definition atom.h:237
Definition application.h:19
Definition message_box.h:25