Commit Graph

69 Commits

Author SHA1 Message Date
swittk
5c62cdcc8a
Implemented QDrag Class (#626)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

* Added more methods to QUrl

* Added QMimeData, additional methods to QUrl, and Dropping should now be supported

* refactored

* Fixed more merge conflicts

* Is this my final merge conflict??

* All merge conflicts resolved

* All merge conflicts resolved

* Adds guide for drag and drop

* lint fix

* added preliminary stuff, will need to tweak to make compilable..

* Compile passed, let's see if it works...

* QDrag added, working

* pause a bit, QDrag causes delayed error of 'QPaintDevice: Cannot destroy paint device that is being painted'

* Revert "Implemented QDrag class"

* Disabled problematic functions

* pulling from origin

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
Co-authored-by: Atul R <atulanand94@gmail.com>
2020-07-04 19:58:40 +02:00
craftingmod
fa08aecbc2
Add bigobj compiler option to win32 for fixing error C1128 (#622) 2020-07-02 19:29:27 +02:00
swittk
3cb3424250
Added QMimeData, additional methods to QUrl, and Dropping should now be supported (#614)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

* Added more methods to QUrl

* Added QMimeData, additional methods to QUrl, and Dropping should now be supported

* refactored

* Fixed more merge conflicts

* Is this my final merge conflict??

* All merge conflicts resolved

* All merge conflicts resolved

* Adds guide for drag and drop

* lint fix

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
Co-authored-by: Atul R <atulanand94@gmail.com>
2020-06-27 17:35:31 +02:00
swittk
3fadf33113
Added setAcceptDrops, acceptDrops to QWidget for creating drag-drop extensions (#613)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-26 16:53:43 +02:00
swittk
b0570fcdc5
Added Support For QTabletEvent and QNativeGestureEvents (#611)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-22 14:47:05 +02:00
swittk
2b74e3cd77
Added Support for QWheelEvent (#609)
* Added QWheelEvent

* removed x y

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-22 09:24:20 +02:00
Stephen A
b4c8cf61e7
add QPainterPath and additional QPainter functions (#552) 2020-05-12 09:43:32 +02:00
feng8848
527a18a1e5
fix issue #503 (#519)
* fix issue #481

* fix lint

* Add QTextEdit and QTextBrowser

* Add QGraphicsBlurEffect

* Add QGraphicsDropShadowEffect

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-04-14 19:10:34 +02:00
feng8848
e1906ff533
Add QTextEdit and QTextBrowser (#495)
* fix issue #481

* fix lint

* Add QTextEdit and QTextBrowser

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-04-06 19:30:12 +02:00
feng8848
0ec2b3f2cb
Export more class (#469)
* Add QDoubleSpinBox

* Add QBrush

* Add QListView and improve QListWidget

* Add QErrorMessage

* Add QFontDialog

* Add QProgressDialog

* Add QLCDNumber

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-28 18:15:23 +01:00
feng8848
5e241f43b0
Add QBrush (#468)
* Add QDoubleSpinBox

* Add QBrush

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-27 17:24:25 +01:00
mspencer92
6bc7f12746
Added QStandardModel (#467)
* Added QStandardModel

* Update demo.ts
2020-03-25 22:06:53 +01:00
feng8848
cf4e221fdf
Add QDoubleSpinBox (#463)
Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-24 20:15:57 +01:00
feng8848
d80d27a10c
Add QColorDialog (#455)
* fix issue #439

* Add QTabBar

* Add QColorDialog

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-22 10:49:21 +01:00
feng8848
d7060f3256
Add QTabBar (#451)
* fix issue #439

* Add QTabBar

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-17 08:25:54 +01:00
master-atul
110cb80e82 Fix qode shared library in windows
0.15.2
2020-03-07 11:10:05 +01:00
Atul R
86c3ef089c
Integration with Qode 2.0 (#400)
* Moves qt integration solely to the nodegui core addon

* Adds lint fixes

* moved to integration core

* cleans up export snippet

* revert package.json

* Add exit if app->exec finishes.

* lint fix

* Makes QApplication custom

* adds qobject to wrap of qapp

* Adds working qt run looper

* Adds font default

* Adds qt installer

* Updates qode integration to v2.0.1

* fix cpp lints

* Fixes lint and deps

* Adds miniqt installation

* adds setup mini qt script

* skips tests due to issues with jest

* fix config and download path for linux and windows

* Adds multiple artifact downloader

* fix qt config and compilation

* Fixes qode path for windows (now it can load dll's easily)

* Add compilation

* fix windows path setup

* use scripts directly

* enabled tests back

* fix ubuntu deps

* update to alpha release

* fix workflow

* adds more artifacts and funding field

* change to alpha v2

* update prebuild yml

* revert build action

* disabling prebuild for now

* switch to stable release 5.14.1

* version bump
2020-03-07 10:28:30 +01:00
feng8848
9e1e8e576c
Add QFrame and other improvements (#420) 2020-02-25 08:50:53 +01:00
feng8848
cf7d241b51
Add QTableView support (#406)
* Add QTableView support

* Fix template to move public expanded methods to private

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-02-20 07:53:31 +01:00
feng8848
ab6c28166e
Add QPicture and other improvements (#399) 2020-02-17 20:45:57 +01:00
Solant
07ac11c6ab
Qsettings (#401)
* initial qsettings implementation

* fix qsettings object constructor initialization

* added sync method

* added setValue method

* implemented value method

* pass actual app name and org name

* accept any value that can be converted to QVariant in setValue method

* implemented value method with proper QVariant wrap

* added tests

* removed testing data, fixed warning

* fixed cpp linting
2020-02-17 20:44:29 +01:00
feng8848
c47f788094
Add QScrollBar and other improvements (#383)
* Add QScrollBar and other improvements

* Add Windows plugin export

* Fixes QDateEdit and QTimeEdit.

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-02-07 20:22:49 +01:00
Atul R
ba088d441a
Adds Qinputdialog (#381)
* wip

* Adds qinputdialog

* fix lint

* revert package.json
2020-01-30 23:05:29 +01:00
Atul R
a84bc69a26
Adds prebuilt binary builder setup (#366)
* Prebuilt setup (#3)

* Adds prebuild

* Adds prebuild

* fix branch name

* adds prebuild upload

* fix windows build and performance bump for prebuild

* remove pre-release

* adds updated

* edited

* test

* move to all platforms

* change to master

* change to release event

* install qode explicitly

* Adds npm skip build flag

* Adds build triggers

* Repo dispatchs

* change to all events

* Update prebuild.yml

* test

* fix prevuild

* test

* test

* change to master release

* change to nodegui

* change the master tag check

* adds conditional before overwriting NAPI_VERSION
2020-01-24 19:11:01 +01:00
Atul R
7dcc329cf8
Adds plugin support for windows platform (#364)
* 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
2020-01-22 21:15:30 +01:00
robertkruis
50c55e090e QStatusBar support. Fixes #346 (#349)
* Add QStatusBar

* Add QStatusBar signals/events

* Lint fixes
2020-01-18 11:51:45 +01:00
feng8848
8d5b3ca476 Add QSlider and other improvements (#348) 2020-01-12 23:05:33 +05:30
mspencer92
6b92bc5676 Add QButtonGroup (#336)
* Added QButtonGroup

* Update

* Update

* Update demo.ts

* Updates

Changed buttonClicked for QButtonGroup to return the id of the button and updated the demo.

* Update QButtonGroup.ts

* Format main.cpp

* Fixes button qgroups

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-08 21:18:27 +05:30
feng8848
5d6806fe7d Add DateTime related Class (#332) 2020-01-06 20:06:37 +05:30
mspencer92
fd270c18ac Added QMessageBox (#326)
* 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>
2020-01-05 15:53:49 +05:30
feng8848
f409eeb7b0 Add QListWidget Support (#320) 2019-12-31 20:42:01 +05:30
slidinghotdog
9fada0e168 Move QColor from QtCore to QtGui (#311)
* Change QColor from QtCore to QtGui

* lint
2019-12-29 10:41:43 +05:30
slidinghotdog
609e243866 Add QFont and change QAction.setFont() to accept QFont (#309)
* Add QFont and change QAction.setFont() to accept QFont

* fix constructor

* fix .fromQVariant()
2019-12-29 09:55:33 +05:30
mspencer92
43d4ad7218 QPainter (#279)
* QPainter

* QPainter

* QPoint
drawConvexPolygon for QPainter

* QPoint
drawConvexPolygon for QPainter

* Added in QColor and expanded on the demo.

* Added some functions to QPainter and expanded on the demo.

* Expanded on the demo.

* Update package.json

* Update qcolor_wrap.h
2019-12-19 20:05:26 +05:30
Atul R
c90b2cb3ce
QTreeWidget PR (#277)
* Added the beginning of QTreeWidget and QTreeWidgetItem

* Fixed garbage collection

* Fixed garbage collection

* Rewrote the constructor for QTreeWidgetItem

* Code cleanup

* Fixed up the QTreeWidgetItem constructor to accept only a string list of columns. Code cleanup

* Add setHeaderHidden to QTreeWidget

* Started adding signals to QTreeWidget

* Started adding signals to QTreeWidget

* Started adding signals to QTreeWidget

* Added TreeWidget back to main.cpp

* Added more functions to QTreeWidgetItem and QPlainTextEdit

* linting and cleanup

* parenting fix

* Fixes garbage collection for treewidget items
2019-12-18 17:36:44 +05:30
Atul R
a593c53116
Throttle flex layout calculation calls to improve performance (#268)
* Throttling multiple calls to setGeometry

* Lint
2019-12-15 23:36:04 +05:30
feng8848
6c92f02edd Add QToolButton Mainly (#265) 2019-12-15 21:19:01 +05:30
slidinghotdog
a59e8b5e2e Qtablewidget rebase (#264)
* sync upstream

* Initial tablewidget

* methods from tableview and signals

* remove comment in CMakeLists

* inherits from QAbstractScrollArea

* revert demo
2019-12-14 09:27:34 +05:30
feng8848
19f786a0f1 Add font support (#261)
* Add font support

* Update qfontdatabase_wrap.h

* Update qfontdatabase_wrap.cpp

* Update QFontDatabase.ts

* make static method
2019-12-12 19:16:49 +05:30
slidinghotdog
4703dd4d27 Add QFileDialog (#256)
* Add QFileDialog

* fix missing return types
2019-12-09 20:11:00 +01:00
feng8848
32a1b97012 Add QGroupBox (#251) 2019-12-07 18:29:17 +01:00
slidinghotdog
ed84031fbb Add QComboBox (#250)
* Add QComboBox

* clean ts file
2019-12-07 11:37:55 +01:00
Bundyo (Kamen Bundev)
a8cc7d9441 Add style() getter in QApplication (#249)
Add minimal QStyle implementation with just pixelMetric getter
 (allow getting the scrollbars width)
2019-12-05 23:08:54 +01:00
Bundyo (Kamen Bundev)
98be88f8ae Add QStackedWidget (for page style navigation) (#245)
* Add possibility to set row, col, rowSpan, colSpan in QGridLayout's addWidget
Add QStackedWidget

* Add .idea to .gitignore

* Lint fixes

* Update Yoga configuration
2019-12-04 18:57:59 +01:00
slidinghotdog
3c36226b71 Add QBoxLayout 2019-12-03 02:02:51 -03:00
Atul R
6e6495f948
Load image from buffer, QMovie and QRect (#232)
* Adds qpixmap load from data

* Adds basic qrect and qmovie

* Adds more methods to QMovie and QLabel

* Adds QMovie, QRect and qlabel methods

* Adds custom method load from data to load from buffer easily

* Adds loading from buffer for qmovie
2019-11-29 00:39:35 +01:00
Atul R
22c7acd74e
Methods and exports needed for Webview support (#217)
* Adds basic qurl support

* allows building with custom qt installation using the env variable

* cleans up

* cleanup
2019-11-24 23:05:53 +01:00
Atul R
edcdbb510e
Adds dynamic content support for flex layout. (#199)
* layout performance fix

* adjust size, webdefaults

* Add flexlayout owner to the context

* revert

* reorders setlayout and setflexnode

* add defaults

* fix mainwindow rootNode

* properties to methods

* Adds defaultsAdds flexutils  measurewidget

* introduce configure for all types of nodes.

* lint fix

* Revams flexlayout to handle dynamic content

* Adds dynamic layout support for flex layout.

* lint fix

* fix few code updates
2019-11-18 00:52:29 +01:00
Pepijn
b9ca846835 QMouseEvent() wrapper (#197)
* ADDS initial support for wrapping native events in  QMouseEvent()

only x, y and button are wrapped

* ADDS global coordinates

Cleanup
2019-11-17 08:26:46 +01:00
Atul R
9e667c7a86
Adds qobject props to all layouts (#196) 2019-11-12 20:49:35 +01:00