Commit graph

43 commits

Author SHA1 Message Date
Dave Davenport
50477a0b99 [Keys] Cleanup view a bit. 2017-03-17 14:07:11 +01:00
Dave Davenport
dfeb5940d4 Reduce scope and unneeded check. 2017-03-17 13:33:47 +01:00
Dave Davenport
ee931f5480 [Textbox] Remove unneeded calls to pango_layout_get_baseline.
Now bulk time is spend in drawing, not calculating.
2017-03-14 17:12:22 +01:00
Dave Davenport
d52c80d76f [Textbox] Remove unneeded calls to pango_layout_get_pixel_size.
This was 21% of the widget update time.
2017-03-14 17:02:03 +01:00
Dave Davenport
652749081a Fix missing doxygen documentation 2017-03-11 13:20:46 +01:00
Dave Davenport
cee753bd3c Zeltakmadness (#572)
* Allow modi to set extra pango attributes on displayed rows

* Fix some documentation, only highlight the mode name with color.

* Small rename.
2017-03-10 23:39:29 +01:00
Dave Davenport
3f4d58ef53 Indent code. 2017-03-04 19:41:06 +01:00
Dave Davenport
3d2491556e Fix small issue positioning top of text in entrybox. (I hope) 2017-02-24 09:54:11 +01:00
Dave Davenport
dc7e4aa96e Install some headers for use in plugins 2017-02-17 14:06:31 +01:00
Dave Davenport
8ef7b4b794 Don't recreate every string everytime. 2017-02-03 20:49:16 +01:00
Dave Davenport
8f4a4d51c6 Don't apply fonts that don't result in family name or have size 0.
Issue: 554
2017-02-03 09:54:18 +01:00
Dave Davenport
42a1eba275 Remove the extra layer each textbox keeps for drawing its text. (#553) 2017-02-02 20:31:47 +01:00
Dave Davenport
cc0ab10833 Fix malloc in textbox 2017-02-02 08:36:55 +01:00
Dave Davenport
b63e417e38 Add configurable fonts for testing. #544 2017-01-24 08:40:37 +01:00
Dave Davenport
f42e4ffbd7 Remove old cairo color set functions 2017-01-09 08:32:16 +01:00
Dave Davenport
baab2047ad Indent magic, rework makefile so lexer and yacc file are not passed. 2017-01-08 21:36:06 +01:00
Dave Davenport
8c0c43952d Make 'text' override foreground color for rendering text 2017-01-08 20:39:37 +01:00
Dave Davenport
a02de2c410 Textbox take height set, when bigger then desired in autowidth mode 2017-01-05 22:56:32 +01:00
Dave Davenport
9dd3cb312e Support linestyle on border 2017-01-04 22:27:27 +01:00
Dave Davenport
85a0e1a57e Remove class system from new theme format. Fix theme converter. 2017-01-04 15:05:39 +01:00
Dave Davenport
8163204320 Merge remote-tracking branch 'origin/master' into themer 2017-01-03 18:00:12 +01:00
Dave Davenport
22e2d7587d Update copyright to 2017. 2017-01-03 17:59:28 +01:00
Dave Davenport
a41d6c4ab4 textbox, draw better cursor, fix desired height query.
- update layout before query.
 - Correct autoheight logic.
2017-01-03 12:17:17 +01:00
Dave Davenport
ccf3f23d9b Update comments, rename Widget to ThemeWidget. 2017-01-01 18:08:49 +01:00
Dave Davenport
7d16d1a552 Slowly move more settings to the configuration convert. 2017-01-01 15:39:02 +01:00
Dave Davenport
f43bf3dc6a On textbox update tell it to update parent. 2017-01-01 02:00:54 +01:00
Dave Davenport
52e850dc33 Fix EM support, use char height 2016-12-31 23:00:06 +01:00
Dave Davenport
2bfbb464e6 Fix more sizing issues 2016-12-30 19:59:45 +01:00
Dave Davenport
5183c14b51 textbox use padding accessors 2016-12-29 17:31:37 +01:00
Dave Davenport
91baac3968 Fix desired size of listview, tweak textbox rendering 2016-12-28 14:10:27 +01:00
Dave Davenport
d63b9cb15e Padding to textbox. remove config.line_padding 2016-12-28 13:46:53 +01:00
Dave Davenport
843ccc1e41 Update drawing, background per widget. 2016-12-28 12:21:42 +01:00
Dave Davenport
dfc8a31126 Redo some of the redrawing methods, better padding support 2016-12-28 00:37:32 +01:00
Dave Davenport
efd1e07755 Fix typo in theme name. 2016-12-15 09:46:42 +01:00
Dave Davenport
be0677cf49 Update theme to new format.
- @class state {

}
- #name state {

}
2016-12-12 21:14:57 +01:00
Dave Davenport
3b850f4472 Fix theme_name generator for textbox 2016-12-11 18:00:45 +01:00
Dave Davenport
78abbeb710 Textbox uses new theme engine.. 2016-12-11 17:06:31 +01:00
Dave Davenport
d25ad4dac6 clang-check fix. 2016-10-22 21:34:19 +02:00
Dave Davenport
881056ea9b Add some more tests, make some textbox api's private 2016-10-20 09:41:32 +02:00
Dave Davenport
df26193096 Fix redrawing (call queue redraw, not need redraw) fix end of string check. 2016-10-17 20:54:02 +02:00
Dave Davenport
f0981d6697 Indenting, comments 2016-10-15 15:39:08 +02:00
Dave Davenport
9293c8b8ce More docu updates 2016-10-14 18:56:09 +02:00
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
Renamed from source/textbox.c (Browse further)