Commit Graph

27 Commits

Author SHA1 Message Date
Dave Davenport 3c64507f02 Qtk widgets (#478)
* Initial support for using boxes for packing widgets.

* Make CapiTalIzation more consistent

* Move widgets to subdirectory

* Removed nolonger needed resize function.

* Small cleanup

* When switching mode, reuse view, don't rebuild it. Reduces artifacts.

* Needs cleaning up.

* Remove separate prompt argument, use display_name

* Simplify run-switcher code.

* Add notion of parents, and trigger parent update on resize.

* Use widget_get_height wrapper, avoid crash

* Size separator width based on height. (indent)

 * TODO add margin to box.

* First draft version of listview.

* Add scrollbar to listview widget

* Add padding option to box

* Move access to global config out of widget. (1/2 done)

*  Remove printf

* Make listview not access global config

* Add click support, implement on mode buttons.

* Re-introduce mouse handling on list-view.

* TODO draggin on scrollbar.

* Fix multi-select

* Fix warnings

* Fix include
2016-10-08 18:57:59 +02:00
Dave Davenport 0da0587087 Make widget_free work on textbox and scrollbar, use widget specific free. 2016-09-27 22:38:26 +02:00
Dave Davenport 89acc7b6ed Make one widget_draw function, abstract rest (textbox, scrollbar) behind it. 2016-09-27 22:15:39 +02:00
Dave Davenport ef3c773097 Constness. 2016-08-24 00:39:56 +02:00
Dave Davenport 6e2d0b6319 Add selection counter in dmenu mode 2016-06-26 15:48:12 +02:00
Dave Davenport 73a0eb3e39 Remove X11/* include headers. 2016-02-28 12:22:10 +01:00
Dave Davenport 764992e4bb Remove more display usage 2016-02-28 00:25:53 +01:00
Quentin Glidic 2ef950eab9 WIP: Port window stuff to xcb
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:37:25 +01:00
Quentin Glidic e1f87a67b4 rofi: Migrate to libxkbcommon
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Dave Davenport d7dab65e5b Making widget class, moving stuff around 2016-01-09 16:22:09 +01:00
Dave Davenport 51b5511017 More doxygen sugar. 2016-01-07 16:01:56 +01:00
Dave Davenport 5a3c202423 Update copyright 2016-01-01 00:27:00 +01:00
QC 683632c36c Some cleanups 2015-10-18 19:02:19 +02:00
QC b0ceccb93e Use cairo for all drawing, also borders 2015-10-10 13:03:11 +02:00
QC 8f1f03e6d2 Use cairo to do drawing. 2015-09-26 20:34:34 +02:00
QC fc2d65df0c Playing with atom 2015-09-20 11:45:28 +02:00
QC 31fe5759b8 More line fixing. 2015-09-19 21:00:06 +02:00
QC 442e235c24 Some cleanups, tweak uncrustify. 2015-09-19 12:21:30 +02:00
Dave Davenport 4c970fe4da Properly resize content when window is resized. 2015-09-17 17:32:51 +02:00
Dave Davenport e53705de11 Fix scrolling on edges 2015-09-14 18:19:20 +02:00
Dave Davenport ae043d5246 Allow dragging scrollbar. 2015-09-14 18:14:01 +02:00
QC e10aa09f74 Add hide scrollbar option. 2015-09-04 21:08:23 +02:00
Dave Davenport 1e4721b275 Add linemargin between handle and rows. 2015-09-04 17:55:54 +02:00
Dave Davenport 72ef9c014f Document doc, fix small drawing things in scrollbar 2015-09-04 08:42:09 +02:00
Dave Davenport 380697b895 scrollbar: Handle mouse clicks, fix width, remove border. 2015-09-04 08:26:57 +02:00
QC d3481de3d6 Fix small 1 px. offset 2015-09-03 22:16:19 +02:00
Dave Davenport 4bbbecd17d Add scrollbar source code. 2015-09-03 22:12:20 +02:00