Commit Graph

56 Commits

Author SHA1 Message Date
Atul R
20cf4cc080
Cleans up (fixes build errors) (#310) 2019-12-29 09:37:05 +05:30
Atul R
392aa3cd4c
Adds automatic docs for now (#308)
* adds basic typedoc

* backup

* Adds all docs to source code

* Adds autogenerated docs

* Fixes doc links

* Updates docs
2019-12-29 00:42:06 +05:30
Atul R
d1e5d499fb
Inherit implemented Qt signals from base classes (#290)
* Adds abstract signals

* basic layout and filedialogs

* Adds all remaining signal heirarchies

* fix lint
2019-12-23 01:26:02 +05:30
Atul R
42e92ecbff
Adds Signals inheritance (#288)
* Inherit signals

* export signals

* Fix Qvariant build

* Adds Abstract button signals

* added more test cases
2019-12-20 23:48:53 +05:30
Atul R
01a6476f9c
Separate events and signals (#287)
* Wip

* Improve constructor typings

* Fixes types for Gui and Core

* QtGui

* Remove unnecessary imports and fix types on abstract classes

* Adds half of qwidgets

* Add all widgets

* cleans up

* fix failing test

* lint fix

* fix demo
2019-12-20 18:33:05 +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
d79ba0620d
bugifx: layout insertion and qvariant (#255) 2019-12-08 22:33:27 +01:00
Atul R
f8c9557166
Feature/bug fixes (#254)
* cleanup

* Check for preventing double addition due to the way reconciler works

* set scrollarea as resizeable by default
2019-12-08 20:55:13 +01:00
Atul R
1a02ded4be
Fixes flexlayout calculations (#223) 2019-11-25 23:25:47 +01:00
Atul R
cce917681f
Bug fixes: Flexlayout. Fixes layout issues (#211)
* bump version

* Fixes size control for the flex layout

* Bumps version
2019-11-22 00:02:49 +01:00
Atul R
11ff1be321
Fixes sizepolicies for FlexLayout. (#205)
* update package.lock

* Fixes the flexlayout to follow sizehints by yoga.

* fix lint
2019-11-19 00:07:18 +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
Atul R
9e667c7a86
Adds qobject props to all layouts (#196) 2019-11-12 20:49:35 +01:00
Atul R
95cdcb37be
Adds QObject exports (#184)
* Adds QObject wrapper

* disable source map in the dist since its of no use

* rename to nodeobject

* Adds qobject setProperty and auto conversion of napi to qvariant (mvp version)

* fix

* moved qobject methods to qobject from qwidget

* added qobject test cases
2019-11-10 01:04:37 +01:00
Atul R
6035b5d038
Re arrange folders to make more sense (#180)
* Re-arranged qtgui and core

* Re arranges qt widgets
2019-11-08 20:33:17 +01:00
Atul R
f56bf965ee
Fixes warnings in eslint (#179) 2019-11-08 20:03:50 +01:00
Atul R
bd65329641
Adds linters, code formatters for both js and c++ and adds prepush hook (#178) 2019-11-08 19:30:01 +01:00
Dimitar Nestorov
242abf9079 Renaming children to nodeChildren
Renaming `parent` to `nodeParent`
2019-11-03 20:28:14 +02:00
Atul R
36329a44b3
Experimental menu and tests (#139)
* Adds basic tests for window and label

* Adds few test cases for QWidget

* Adds working tests setup

* Adds inital code for menus
2019-10-07 19:24:17 +02:00
Atul R
15a48e6723 cleanup 2019-09-21 23:26:58 +02:00
Atul R
12b08baed9 Cleans up addon import 2019-09-21 00:05:46 +02:00
Atul R
5e6dd2ad46 rename qtnode to nodegui_core 2019-09-20 23:42:03 +02:00
Atul R
4cc0ab1eef Adds bootstrap example 2019-09-11 22:30:10 +02:00
Atul R
22496e77a8 prevents double removal of a widget 2019-09-02 23:33:56 +02:00
Atul R
dcb2aa5d8b Adds abstract scroll area 2019-08-24 11:14:17 +02:00
Atul R
49873c01e1 Moves examples to a separate repo and removes dependency on bindings node module 2019-08-17 19:28:26 +02:00
Atul R
4f9e27d36a Adds inline styling support and other native methods 2019-08-10 11:21:36 +02:00
Atul R
26fd58d8d1 Adds basic stylesheet autoprefixer 2019-08-07 23:50:27 +02:00
Atul R
3694215fcb Adds type = native property to all wrapped elements in the nodegui world. Also fixes scaled QPixmap 2019-08-04 08:49:33 +02:00
Atul R
839c4ae223 Adds flex layout documentation 2019-08-02 23:36:13 +02:00
Atul R
255d0eef91 Adds documentation for all internal widgets. 2019-08-02 22:46:03 +02:00
Atul R
790fec5fd6 adds removeEventListener and cleanup 2019-07-11 00:29:55 +02:00
Atul R
3fed29d6fe Adds insertbefore method on flex layout 2019-07-10 00:08:39 +02:00
Atul R
687fcc1052 remove widget from layout 2019-07-09 21:22:09 +02:00
Atul R
fcb2bdccee Makes flexNode optional in addWidget 2019-06-27 23:13:12 +02:00
Atul R
e15d6b14ac Adds custom keyevent handler. And remove dependency on napi-thread-safe-callback 2019-06-23 17:34:54 +02:00
Atul R
ba409c8c14 Adds more type helpers 2019-06-22 21:36:24 +02:00
Atul R
c651775eca Convert flexNode to Napi::External. 2019-06-22 21:26:26 +02:00
Atul R
e77ee16c6e Single api for events and signals on JS side 2019-06-15 23:59:42 +02:00
Atul R
3d08908f9a Added event listener to all widgets 2019-06-15 23:43:11 +02:00
Atul R
001d83b860 changed to class properties instead. Added calculator base example starting 2019-06-09 21:05:02 +02:00
Atul R
44a88390fe Changing to setSignalListener since signals and events mean different things in qt. So changing it to match it 2019-06-08 20:58:46 +02:00
Atul R
6ddc6167e2 Abstracted away the logic for event listeners from JS side 2019-06-08 18:14:19 +02:00
Atul R
37bafaa64d Fixes segmentation fault due to garbage collection of flex nodes 2019-06-06 18:40:52 +02:00
Atul R
0d10ad8215 Fix minor heirarchy bugs 2019-06-06 12:13:24 +02:00
Atul R
201ab3657f Fix layout heirarchy 2019-06-06 11:50:49 +02:00
Atul R
f9a209f34a All layouts inherit from qlayout on js side. 2019-06-06 11:34:06 +02:00
Atul R
0ea9675005 Adds test flow for yoga widgets 2019-06-06 10:00:04 +02:00
Atul R
e757f38eb5 removed unnecessary code and cleans up Flexlayout 2019-06-06 08:42:26 +02:00
Atul R
2aeda4a556 Adds supprt for getting flex nodes from c++ side 2019-06-06 08:20:47 +02:00