* Added QMessageBox * Adds Qdialog * Fixes inheritance and adds pointer based event listener * Cleans up Qmessagebox so that we create all buttons * change to abstract button * fix rawData fetching from the template * formatting fixes * change to Objectwrap for better type casting * Adds Native element part in qpushbutton * Adds NapiExternal check and use ptr for initialization * Adds all button classes * fix c * fix merge conflicts * lint fix Co-authored-by: Atul R <atulanand94@gmail.com>
27 lines
656 B
C++
27 lines
656 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QPointer>
|
|
|
|
#include "QtWidgets/QAbstractButton/qabstractbutton_macro.h"
|
|
#include "QtWidgets/QWidget/qwidget_macro.h"
|
|
#include "nradiobutton.hpp"
|
|
|
|
class QRadioButtonWrap : public Napi::ObjectWrap<QRadioButtonWrap> {
|
|
QABSTRACTBUTTON_WRAPPED_METHODS_DECLARATION
|
|
|
|
private:
|
|
QPointer<NRadioButton> instance;
|
|
bool disableDeletion;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QRadioButtonWrap(const Napi::CallbackInfo& info);
|
|
~QRadioButtonWrap();
|
|
NRadioButton* getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
};
|