Commit Graph

205 Commits

Author SHA1 Message Date
Atul R
20a23cb8ba Adds few methods to scroll area and qlabel 2019-11-03 20:06:42 +01:00
Dimitar Nestorov
0c4fabfa85 Added isSeparator and setSeparator to QAction 2019-11-01 21:59:09 +02:00
Dimitar Nestorov
576ba1ace6 Implemented QAction checkable and checked (#159) 2019-10-27 10:41:16 +01:00
Dimitar Nestorov
bd1c334722 Added QIcon isMask and setIsMask (#157) 2019-10-26 23:55:37 +02:00
Atul R
cb535e33e7
Adds support for keyboard shortcuts, systray menu and systray actions (now run nodegui apps as a service). (#156)
* Added actions and tooltips to qmenu

* Adds support for nested submenu creation

* Added supported for onclick handlers in actions

* Adds support for keyboard shortcuts

* adds enabled and shortcut context

* Adds support for shortcuts and menus

* Added support for keyboard shortcuts
2019-10-26 15:31:02 +02:00
Atul R
2541feebe7
fixes the crash on keyevent (#155) 2019-10-24 19:34:27 +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
Sebastián Gurin
4d617c9321 inherits (#125) 2019-09-30 21:33:30 +02:00
Sebastián Gurín
e29c0c1814 qpixmap save() 2019-09-29 02:03:48 -03:00
soonoo
c284558886 Changes QSystemTrayIcon to inherit EventWidget instead of NodeWidget 2019-09-25 12:18:57 +09:00
soonoo
22498953ba Adds basic support for QSystemTrayIcon 2019-09-25 01:09:09 +09:00
Atul R
e87485441e Adds include and linkings for plugins 2019-09-22 14:24:46 +02:00
Atul R
a287d9ca59 separates include headers and implementation 2019-09-21 22:53:25 +02:00
Atul R
1acb9e722e Adds exports and removed automoc script as we no longer need it (as cmake handles it for us) 2019-09-21 00:11:24 +02:00
Atul R
495071089a move ntabwidget over to cmake 2019-09-20 23:45:11 +02:00
Atul R
f593a34cf1 Working automatic moc 2019-09-20 23:42:03 +02:00
Atul R
8350747af2
Merge branch 'feature/tab' into feature/QTabWidgetV2 2019-09-20 23:20:07 +02:00
Balthild
fbb2b12d85 Fix mode arg 2019-09-17 14:58:16 +08:00
Balthild
ec5c560ca1 Fix code format 2019-09-17 11:37:36 +08:00
Balthild
ec82a760ed Converting QIcon ot QPixmap 2019-09-17 11:34:08 +08:00
Roy Sommer
0444c087e4 added support for QCheckBoxEvents.toggled 2019-09-12 11:47:40 +03:00
Atul R
4499bf05a7 Adds take widget for scrollarea and adds geometry getter for widgets 2019-09-10 00:06:23 +02:00
soonoo
07a2da0278 add setPlaceholderText for QPlainTextEdit 2019-09-09 18:44:01 +09:00
Atul R
e5a5425f0b brings back nwidget 2019-09-07 11:28:44 +02:00
Atul R
bf1aecfa8b fixes all flex layout issues 2019-09-07 08:12:41 +02:00
Atul R
34fc9c5621 Adds clipboard demo 2019-09-05 20:26:02 +02:00
Atul R
0ff2c8d2a9 Adds qclipboard 2019-09-05 19:56:53 +02:00
Atul R
6926bf940a Adds plain text edit methods and signals 2019-09-05 10:44:19 +02:00
Paweł Borecki
9363eb04b7 Added initial support for QTabWidget 2019-09-05 07:09:37 +02:00
Atul R
8703207b56 Adds gridlayout removeWidget 2019-09-03 23:39:47 +02:00
Atul R
8ea076d500 more duplicates removed 2019-09-03 22:51:41 +02:00
Atul R
625eb229c9 removed extra import 2019-09-03 22:47:06 +02:00
Atul R
40f3deff4d removes extra 2019-09-03 22:45:51 +02:00
Atul R
9467e46962 convert all references of using raw pointers to unique ptrs for better memory management 2019-09-03 22:44:16 +02:00
Paweł Borecki
fdc8d271d8 Added missing QWidget set methods and QCursor support 2019-08-31 18:42:17 +02:00
Atul
c68554c26d fix naming issues 2019-08-31 16:32:17 +02:00
Paweł Borecki
e85ebedb57
Update qdial_wrap.cpp 2019-08-30 23:47:19 +02:00
Paweł Borecki
6cbb433aaa Minor fixes for copied code and demo content 2019-08-30 22:02:20 +02:00
Paweł Borecki
9df9421baf Support for QDial and QAbstractSlider with docs 2019-08-30 21:48:01 +02:00
James Hibbard
28b0b6c90d Adds readOnly prop to QPlainTextEdit 2019-08-27 00:21:59 +02:00
Atul R
05c67d7882 adds checkbox check prop 2019-08-26 17:23:51 +02:00
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