* updates cmake file for windows plugin support * basic exports * minor export fixes * rename macro * rename export macro * fixes build error on windows * cleanup cmakelist * updated headers
31 lines
972 B
C++
31 lines
972 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QPointer>
|
|
|
|
#include "Extras/Utils/nutils.h"
|
|
#include "QtWidgets/QTabWidget/ntabwidget.hpp"
|
|
#include "QtWidgets/QWidget/qwidget_macro.h"
|
|
|
|
class DLL_EXPORT QTabWidgetWrap : public Napi::ObjectWrap<QTabWidgetWrap> {
|
|
QWIDGET_WRAPPED_METHODS_DECLARATION
|
|
private:
|
|
QPointer<NTabWidget> instance;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QTabWidgetWrap(const Napi::CallbackInfo &info);
|
|
~QTabWidgetWrap();
|
|
NTabWidget *getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
Napi::Value addTab(const Napi::CallbackInfo &info);
|
|
Napi::Value setTabPosition(const Napi::CallbackInfo &info);
|
|
Napi::Value setCurrentIndex(const Napi::CallbackInfo &info);
|
|
Napi::Value currentIndex(const Napi::CallbackInfo &info);
|
|
Napi::Value removeTab(const Napi::CallbackInfo &info);
|
|
Napi::Value setTabsClosable(const Napi::CallbackInfo &info);
|
|
};
|