Commit graph

43 commits

Author SHA1 Message Date
John Preston
9b6e11db62 Add anim::repeat enumeration (loop / once). 2022-05-04 11:22:46 +04:00
23rd
9d07d6a476 Added ability to append pinned to top content to generic box. 2022-05-03 14:57:57 +04:00
23rd
35c84d7d54 Removed unused includes from BoxLayerWidget. 2022-05-03 14:57:51 +04:00
John Preston
b77fb45083 Add SeparatePanel and ShowMultilineToast. 2022-04-29 20:19:33 +04:00
Nicholas Guriev
258cacf7c5 Avoid conditional branching on uninitialized values
C++ initializes members in the order in which they are defined in class. So the
order is important if the members are accessed by other initializers or methods
called from them.

Class BoxLayerWidget:
  _roundRect is initialized based on _layerType through the st() method.

Class Checkbox:
  Arguments of _text constructor depend on _checkAlignment through the
  countTextMinWidth and the checkRect methods.
2022-04-14 15:35:38 +04:00
23rd
2779a7d036 Replaced timer for dragging scroll in Ui::BoxContent with manager. 2022-03-14 18:23:08 +03:00
23rd
d2e482dac3 Added Ui::Show implementation for Ui::BoxContent. 2022-03-04 11:24:55 +03:00
23rd
f0b800cdfb Introduced Ui::Show interface. 2022-03-03 16:45:51 +03:00
23rd
4ba28e2fec Renamed BoxContent::onScrollToY to BoxContent::scrollToY. 2022-02-25 12:56:10 +03:00
23rd
c369eb13bf Removed Q_OBJECT from BoxContent. 2022-02-25 12:56:10 +03:00
23rd
b69fcf6048 Added ability to hide layer from delegate of BoxContent. 2022-02-25 12:56:10 +03:00
John Preston
681da392eb Improve box rounding and buttons. 2022-02-08 11:06:19 +03:00
John Preston
f4a32c34f8 Move box divider colors to the palette. 2021-11-24 12:28:36 +04:00
John Preston
f18fbbc2a1 Allow custom-styled left button in BoxContent. 2021-11-16 09:51:24 +04:00
John Preston
aa16cd0c16 Allow custom rounded corners in boxes. 2021-10-21 21:23:08 +04:00
23rd
7182fad08a Removed Q_OBJECT from ScrollArea. 2021-09-29 19:40:47 +03:00
23rd
beb09445d1 Appended references to const auto type in loop to prevent copying. 2021-09-08 14:01:07 +03:00
John Preston
1b590f9e16 Expose topShownLayer from LayerStackWidget/LaayerManager. 2021-08-11 11:05:27 +03:00
Ilya Fedin
b8485c0d8a Fix -Wunused-variable warnings 2021-07-13 21:24:22 +03:00
23rd
8c7ebd89f6 Added ability to pass custom layer widgets to stack. 2021-07-02 23:00:21 +03:00
John Preston
a51db55ef2 Allow changing GenericBox later. 2021-04-07 15:42:12 +04:00
Ilya Fedin
af41bff7e4 Build with QT_NO_KEYWORDS 2021-03-03 22:34:02 +04:00
John Preston
7fd90cb38b Add onShowFinished callback to BoxContent. 2020-11-30 21:06:12 +03:00
John Preston
7287e235e0 Allow different styles for box layers. 2020-11-29 21:26:20 +03:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
23rd
1916823c98 Added skip for title in box when top button is present. 2020-09-30 12:14:29 +03:00
John Preston
566f301636 Fix box title dynamic change. 2020-06-29 22:24:46 +04:00
John Preston
d6e7aa6f63 Allow prepare + run layer hide animation. 2020-06-29 16:10:40 +04:00
John Preston
2a0d189ee2 Allow badge in main menu button. 2020-06-23 13:13:22 +04:00
John Preston
771f702056 Remove a slot from BoxContent. 2020-06-08 22:08:09 +04:00
John Preston
ce0619dadd Use the same margins for different controls. 2020-04-30 16:34:24 +04:00
John Preston
ed97ff0d4f Don't loose focus from layer in animation. 2020-03-18 16:14:19 +04:00
John Preston
c96119dcd1 Make GenericBox vertical-layout available outside. 2020-03-10 16:28:51 +04:00
John Preston
765e525458 Add Ui::AppInFocus() method. 2019-12-31 16:48:25 +03:00
John Preston
d0f2508863 Move box setNoContentMargin() to public interface. 2019-11-12 15:21:06 +03:00
John Preston
42209dc545 Support custom buttons padding in boxes. 2019-10-23 14:32:12 +03:00
John Preston
0dba641451 Allow GenericBox to have no content margins. 2019-10-19 16:07:31 +04:00
John Preston
f6e10c65f5 Fix GenericBox content size. 2019-10-16 19:06:08 +04:00
John Preston
d16007004a Set focus to layer after showing. 2019-10-15 18:36:56 +04:00
John Preston
d5c9ad77a9 Support nice Ui::Window under Windows. 2019-09-26 09:53:57 +03:00
John Preston
d68dfd3320 Allow triggering buttons in boxes from code. 2019-09-26 09:53:57 +03:00
John Preston
d3e8eb4292 Add LayerManager for any RpWidget. 2019-09-20 10:35:47 +03:00
John Preston
f4904e5ec4 Add layer and box management. 2019-09-18 14:17:24 +03:00