#include <stdio.h>
#include <time.h>
#define MYDIALOG_CB(method) static_cast<UI_EventMethod>(&MyDialog::method)
namespace HDK_Sample {
{
public:
const char*
className()
const override {
return "MyDialog"; }
private:
bool parseDialog();
void handleOpenOrClose(
UI_Event *event);
private:
bool myParsedDialog;
bool myIsOpen;
};
}
using namespace HDK_Sample;
: myParsedDialog(false)
, myIsOpen(false)
{
}
bool
MyDialog::parseDialog()
{
return false;
return true;
}
bool
{
if (!myParsedDialog)
{
if (!parseDialog())
return false;
myParsedDialog = true;
}
myStatusValue = "";
myOpenValue = true;
return true;
}
void
{
myOpenValue = false;
}
void
{
if (myIsOpen == (bool)myOpenValue)
return;
myIsOpen = (bool)myOpenValue;
if (myIsOpen)
{
printf(
"dialog was opened\n");
}
else
{
printf(
"dialog was closed\n");
}
}
void
{
myStatusValue = "Import Successful!";
}
static void
{
if (!dlg.open())
args.
err() <<
"Could not parse cmd_ui.ui file\n";
else
args.
out() <<
"Successfully launched dialog\n";
}
void
{
}