84 Commits

Author SHA1 Message Date
alfrix
1e2f538210 job_status: fix metadata not updating after printer switch fixes #1301 2024-03-13 05:27:33 -03:00
Alfredo Monclus
ce884154d6
print panel refactor and new features (#1270)
Adds a grid/thumbnail mode (switchable to the list mode)
last mode used is saved
faster load and less memory usage
add sort by size
2024-02-29 15:07:50 -03:00
alfrix
8717dd8836 files: refactor and cleanups 2024-01-16 13:56:33 -03:00
alfrix
e7cbc1d2ca print logging minor change 2024-01-16 13:56:33 -03:00
alfrix
18f8d32aa6 klippygtk: dialog buttons height as variable 2024-01-15 14:42:10 -03:00
alfrix
f3c0daef1b minor refactors 2024-01-10 23:30:39 -03:00
alfrix
0a38b56aaa Print: show refresh loading 2024-01-07 23:08:59 -03:00
alfrix
989e3ce796 print: add loading message, completely hide path label while on the root 2024-01-06 08:35:03 -03:00
alfrix
25ecb891f5 print: simplificate header and create row 2024-01-06 08:35:03 -03:00
alfrix
6cf639c083 refactor widget creation
improves performance and makes the code cleaner

* add parameters instead of calling methods afterwards
* remove a a lot of size requests
* remove parameters that are being set to the default value
* simplify dialogs containers
2024-01-02 08:14:51 -03:00
Alfredo Monclus
1794d8aa24
feat: macro prompts close #1216 (#1219)
* feat: macro prompts close #1216

now the user can have confirmation on macros using this feature close #835

* prompt: remove separator and remove the header and close button if windowed

* prompt: wakeup screen

* prompt: slightly larger close icon
2024-01-02 08:04:02 -03:00
alfrix
34f80ce4aa print: fix directory dates fixes #1199 2023-12-23 16:38:00 -03:00
alfrix
f346c2f046 print: fix layout on small screens 2023-11-03 23:34:02 -03:00
alfrix
9d177d2afc job_status and print: revise the size of the thumbnail close #1136 2023-10-07 13:02:05 -03:00
alfrix
e80ef7eff5 dialogs: simplify dialog calls, fix layout issue 2023-08-30 01:21:17 -03:00
alfrix
8d9236a2df screen: simplify panel loading
this removes create_panel function from panels and mandates a class name Panel

remove panel_type param and only use a panel_name that is it's filename

remove load_panel dict

always reinit panel, (simpler and safer but slower)
2023-07-30 12:22:58 -03:00
alfrix
4920720c99 return False on Glib functions 2023-06-16 10:05:43 -03:00
alfrix
f7c12867d5 slimmer topbar buttons fixes #1006 2023-06-13 13:39:23 -03:00
alfrix
da9f970231 print: refactors 2023-03-22 06:51:34 -06:00
alfrix
41a8ebf084 print: add move/rename, make delete a visible button close #636 2022-12-11 09:17:18 -03:00
alfrix
4804f5a5e0 print: use am-pm if not 24h 2022-12-01 14:20:49 -03:00
alfrix
7651b892b8 print: allow directory deletion 2022-12-01 13:27:31 -03:00
alfrix
91b505bfef print: less os dependent path handling 2022-12-01 13:27:31 -03:00
alfrix
9de058b0d7 dialogs: set title 2022-11-30 11:51:24 -03:00
alfrix
56149e4148 print_list: refactor 2022-11-27 23:44:25 -03:00
alfrix
97106bc2e0 tweak print and macros topbars 2022-11-22 16:33:12 -03:00
alfrix
593d8c678b gtk: merge buttonimage and button 2022-11-22 14:55:42 -03:00
alfrix
0b1b2f0e19 dialog removal refactor 2022-11-22 14:55:42 -03:00
alfrix
d0d79a64df base_panel: simplify action bar buttons enable-disable 2022-11-21 09:20:05 -03:00
alfrix
fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix
45ab86204b panels: remove initialize from the panels that do not have a menu 2022-11-18 00:53:53 -03:00
alfrix
f588571bdd fix PEP E303 2022-10-27 23:18:21 -03:00
alfrix
792e1bf8bf print: improve initialization performance with async. load of images 2022-10-26 22:36:52 -03:00
alfrix
d3281379ee gtk: change scaling of images
This reduces the amount of magic numbers used, some images will scale to bigger sizes, most of the icons and images in vertical mode will be bigger, thumbnails should be bigger in both modes.
2022-10-26 22:36:52 -03:00
alfrix
1305b40c41 refactors and cleanup 2022-10-14 13:27:01 -03:00
alfrix
d0d171e676 print: hide files and directories starting with . 2022-10-14 10:19:44 -03:00
alfrix
28303573f9 print: shorter sort label (same as macros panel) 2022-09-02 19:58:35 -03:00
alfrix
97f170ba59 buttons: resize side images for better alignment 2022-09-02 19:58:35 -03:00
alfrix
38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -03:00
alfrix
eb17bb58ad screen_panel: remove unused parameters 2022-08-01 12:23:40 -03:00
alfrix
aa2bfcbaee print: add delete file
this is temporary, to delete a file click the thumbnail
TODO: context menu or other solution to be decided
2022-08-01 12:23:40 -03:00
alfrix
6510b2ec6b Refactor
Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
2022-08-01 12:23:40 -03:00
alfrix
5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix
b611491997 Optimize imports 2022-07-03 12:03:50 -03:00
alfrix
a445b89f13 config: deprecate get_main_config_option 2022-07-03 12:03:50 -03:00
alfrix
312d131db5 use images for the sort order, drop freefont dependency 2022-07-03 12:03:50 -03:00
alfrix
da26bf3143 base_panel: layout simplification 2022-07-03 12:03:50 -03:00
alfrix
33195f203f Simplify code 2022-05-31 11:14:42 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
a0a222c386 print: use the smaller thumb for the list if available 2022-05-31 11:14:42 -03:00