Commit Graph

264 Commits

Author SHA1 Message Date
Atul R
95a60496e6 Adds QAbstractScrollArea and QScrollArea 2019-08-24 12:10:20 +02:00
Atul R
dcb2aa5d8b Adds abstract scroll area 2019-08-24 11:14:17 +02:00
Atul R
6d3e436070
Merge pull request #55 from Uriziel01/feature/SetWindowTitle
Added setWindowTitle widget method with docs
2019-08-24 00:34:17 +02:00
Paweł Borecki
9ee9dcd09a Added setWindowTitle widget method with docs 2019-08-23 23:55:34 +02:00
Paweł Borecki
0e730afbaf Added support for spinBox widget with docs 2019-08-23 23:41:27 +02:00
Atul R
038d567a59
Merge pull request #50 from Uriziel01/feature/WidgetMoveAndPosition
widget move and position capabilities
2019-08-22 21:54:05 +02:00
Paweł Borecki
a6d8012a8e Added move/get position widget capability 2019-08-22 21:30:05 +02:00
rgabs
58e425fd62 Support clear method in QPlainTextEdit 2019-08-23 00:07:45 +05:30
Paweł Borecki
a05181a2e3 Fixed indentation symbols consistency 2019-08-22 04:35:01 +02:00
Paweł Borecki
6d64f7ae15 Added orientation support for QProgressBar 2019-08-22 04:13:43 +02:00
Atul
95818b078e cleans up more handlers 2019-08-20 19:42:44 +02:00
master-atul
1af5d8bf68 Fixed QPaint error 2019-08-20 16:56:00 +02:00
Atul R
b11f32aa4c adds clear to linedit 2019-08-20 18:09:44 +02:00
rgabs
bcb6b8b3be Rename plaintext to toPlainText and add docs 2019-08-20 01:41:50 +05:30
rgabs
8c936b46da Change implementation to make it similar to qt usage 2019-08-20 01:29:21 +05:30
rgabs
0151246d95 Add textChange event for QPlainTextEdit 2019-08-20 00:47:14 +05:30
Atul R
65becffd52 Adds plaintext c++ functions 2019-08-18 23:55:17 +02:00
Atul R
ed3085f88f
Merge pull request #26 from nodegui/feature/QTextEdit
Basic usability of QPlainTextEdit component
2019-08-18 20:23:50 +02:00
Kakul Gupta
432b7701f4 Added setIcon to PushButton and IconWrap 2019-08-18 20:06:32 +02:00
rgabs
b9c3224aaf Basic usability of QPlainTextEdit component 2019-08-18 23:34:25 +05:30
Kakul Gupta
5ca694639f Added setFlat for QPushButton widget 2019-08-17 16:25:51 +02:00
rgabs
151d9842c1 Add QLineEdit.setReadOnly method 2019-08-17 00:43:01 +05:30
Atul R
fd100b6c54 removed napi in extra utils 2019-08-14 08:39:49 +02:00
Atul R
12207d3bea Fixes directory for QWidget 2019-08-12 23:10:13 +02:00
Atul R
69a4897ce3 Adds progress bar value, max, min 2019-08-12 22:46:23 +02:00
Atul R
493a61de1b Adds QApplication methods 2019-08-11 20:39:17 +02:00
Atul R
a5b0bbcb28 Adds window flags and attributes 2019-08-10 22:15:41 +02:00
Atul R
4f9e27d36a Adds inline styling support and other native methods 2019-08-10 11:21:36 +02:00
Atul R
c3de181e32 Namespaced all yoga properties on qt properties to avoid name collision 2019-08-09 19:24:19 +02:00
Atul R
3b8794f5e2 Adds update geometry 2019-08-07 21:22:23 +02:00
Atul R
df7a0ab565 Adds common layout methods and adds basic react docs 2019-08-07 20:05:38 +02:00
Atul R
b0df94bdf7 Adds qlineedit methods and properties 2019-08-04 20:32:18 +02:00
Atul R
942c96e546 Adds scalable image via aspect ratio setting 2019-08-04 11:52:02 +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
401b99dc85 Added scaled pixmap 2019-08-04 07:17:05 +02:00
Atul R
e6eccd06a9 Added Image rendering support via qlabel and qpixmap 2019-08-03 23:35:11 +02:00
Atul R
255d0eef91 Adds documentation for all internal widgets. 2019-08-02 22:46:03 +02:00
master-atul
a3112f5b48 Fixes yogalayout in windows and code cleanup 2019-07-24 23:47:02 +02:00
Atul R
ad438780e9 Added more exports 2019-07-14 14:10:31 +02:00
Atul R
22178c074a maxSize,minSize,repaint,update 2019-07-14 13:00:47 +02:00
Atul R
85af0c209a Fix for setLayout on mainwindow 2019-07-14 00:41:52 +02:00
Atul R
789d28ed99 added enabled prop to widgets 2019-07-13 13:38:16 +02:00
Atul R
b8b3dd53e7 add set text on radio button 2019-07-12 20:25:15 +02:00
Atul R
275c4b2d64 Adds measuremode to leafnode widgets 2019-07-11 23:40:42 +02:00
Atul R
68cb6515ab remove unnecessary log 2019-07-11 20:26:51 +02:00
Atul R
f9841c6ad6 Adds mouse tracking and fixes events for QWidget 2019-07-11 20:24:19 +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
b47b2144a0 Bugfix: NWidget can now be painted using qstylesheet 2019-06-28 23:19:50 +02:00
Atul R
fd95251c8c Adds calculator key board listener 2019-06-23 18:26:05 +02:00
Atul R
93608e2e75 Renamed to QKeyEvent 2019-06-23 17:56:46 +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
1bdf06c4c4 Added native event payload on the event listener 2019-06-22 20:00:44 +02:00
master-atul
9f6ecc19dc Fixes windows build for addon 2019-06-21 18:49:04 +02:00
Atul
a39165a659 revert to latest spec 2019-06-19 00:31:01 +02:00
Atul
0beebabd10 fix linux issues 2019-06-19 00:27:24 +02:00
Atul R
92a705b663 cleaned up readme 2019-06-16 16:57:44 +02:00
Atul R
085c05dd85 Organised code so that its easier to modify all widgets at once. 2019-06-16 15:55:17 +02:00
Atul R
3d08908f9a Added event listener to all widgets 2019-06-15 23:43:11 +02:00
Atul R
229ecddeb1 events support 2019-06-15 18:29:16 +02:00
Atul R
3fe22cdc12 not needed to include yogawidget macro separately. 2019-06-12 20:24:57 +02:00
Atul R
7a39ee0fd3 Fixes resize needed for layout issue. 2019-06-12 00:45:23 +02:00
Atul R
ab6ced2bfd Updated calculator UI and added setObjectName 2019-06-10 19:30:49 +02:00
Atul R
3b4ec63771 adds web defaults for flex layout and int cleanups 2019-06-09 23:43:17 +02:00
Atul R
a2bbc24f3d Added more logging 2019-06-09 21:53:26 +02:00
Atul R
695d1df039 Adds text measuring support for button and label 2019-06-09 20:36:44 +02:00
Atul R
ac0a544565 Adds size methods to qmainwindow and setText accepts number 2019-06-09 08:46:01 +02:00
Atul R
5fccc207f7 Adds Yoga props to all widgets 2019-06-09 08:08:03 +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
rgabs
d9237d65e5 Added getter method for label widget 2019-06-09 00:04:37 +05:30
Atul R
e835a8be86 Cleanup 2019-06-08 18:30:30 +02:00
Atul R
d0ef8472a3 Adds all button event listeners 2019-06-08 17:41:23 +02:00
Atul R
120e45f583 cleanest implementation for now. No dependency on main widget class 2019-06-08 14:26:01 +02:00
Atul R
8883ff1e91 Best implementation for now 2019-06-08 14:09:54 +02:00
Atul R
092e44fbb6 Fixes non destructing widgets on close 2019-06-08 11:25:48 +02:00
Atul R
f5b962f65b change to unique ptr still works -> but i beleive we have a memory leak now. 2019-06-08 10:01:28 +02:00
Atul R
383186a102 Working events !! 2019-06-08 09:29:49 +02:00
Atul R
3e69096544 Fixes crash on close issue 2019-06-08 00:08:21 +02:00
Atul R
5987ef7eca Added automoc 2019-06-07 21:41:08 +02:00
Atul R
98494f50d6 added yoga properties to all widgets 2019-06-07 20:13:09 +02:00
Atul R
c674bcd275 changed to spdlog 2019-06-06 17:00:17 +02:00
Atul R
74b87d9c52 convert some logs to spdlog 2019-06-06 16:51:24 +02:00
Atul R
99b73ed46d fix todos and cleanup names 2019-06-06 16:15:15 +02:00
Atul R
eaa9c55390 MOC is working with macros now. 2019-06-06 15:13:24 +02:00
Atul R
9657c3f792 Working flex model 2019-06-06 14:26:19 +02:00
Atul R
599290bf97 fix for uncaught exception 2019-06-06 13:47:07 +02:00
Atul R
feef6c13b9 reduced no of files by optimising moc generation 2019-06-06 12:29:20 +02:00
Atul R
0ea9675005 Adds test flow for yoga widgets 2019-06-06 10:00:04 +02:00
Atul R
bd246c77ee Adds yoga widget macro and nwidget 2019-06-06 09:18:39 +02:00
Atul R
3b673b2ba3 Added more dev docs 2019-06-06 08:47:20 +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
Atul R
34ba68be5a Added checks to make it more resilient 2019-06-05 22:54:16 +02:00
Atul R
26cbc465f0 Adds all yoga stylesheet props to qlabel 2019-06-03 19:10:41 +02:00
Kakul Gupta
539b343007 QLineEdit 2019-06-03 19:02:31 +02:00
Kakul Gupta
3e9a230404 Radio button 2019-06-03 18:46:46 +02:00
Kakul Gupta
5d0fe00795 Renamed back 2019-06-03 18:24:50 +02:00
Kakul Gupta
9452f1b9d0 Rename 2019-06-03 18:24:50 +02:00
Kakul Gupta
f14111bc96 yolo 2019-06-03 18:22:29 +02:00
Atul R
8486f40a99 Added YogaWidget : Adds stylesheet support for all yoga related stuff.
Added guards for the macros.
2019-06-03 07:36:25 +02:00
Kakul Gupta
cb0bdfa08d Added QCheckBox 2019-06-01 16:19:52 +02:00
Atul R
e2686afff2 Added hide to all widgets 2019-05-27 23:18:47 +02:00
Atul R
84a314f80c convert to absolute paths for better understanding 2019-05-27 23:10:32 +02:00
Atul R
29cab9d42a Remove partial event listener code. 2019-05-27 23:03:48 +02:00
Atul R
8fccb3847e Now all widgets gets all public methods of QWidget 2019-05-27 21:40:32 +02:00
Atul R
8459fc47fe Adds custom flex layout manager based on yoga 2019-05-26 20:25:45 +02:00
Atul R
40e8a0a743 refactored a bit and changed name 2019-05-21 20:55:49 +02:00
Atul R
6f8db2db1c Adds basic push button 2019-05-21 18:46:34 +02:00
Atul R
9c322da9f2 Added few basic widgets and a working kickass demo 2019-05-19 23:14:28 +02:00
Atul R
3e17864ec5 basic qt wrap 2019-05-15 18:49:12 +02:00
Atul R
13a6db4162 boilerplate 2019-05-14 20:47:30 +02:00