777fff3776
locales: remove redundant locales in json file
...
* locales in policy_check.json are included in advotracker.json
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 19:27:30 +02:00
c949b5fe32
Cargo.toml: update package dependencies
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:53:19 +02:00
0afe1f3bf8
Nodes.toml: application settings for nodes module
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:53:19 +02:00
bf54cb2242
.env: adapt test defaults for environment variables
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:53:19 +02:00
5b79229c00
advotracker: change localization handling
...
* main: adapt resource path for localization information
* data/constants: Stings used in policycheck state/view
* widgets/policycheck_view: change the used localization strings
* callbacks/policycheck_state: change child ID'S to use constants and localization strings
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:53:19 +02:00
16a538a805
resources: cleanup unneeded files since
...
* now using ron based files for localization
* resources are referencing application path names
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:53:19 +02:00
a887ffef1f
services: adapte/update used strings
...
* for importp module
* for export module
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:52:15 +02:00
65c2da7706
advotracker-db: update to new head
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:52:15 +02:00
0467f601f0
locales: adapt language identifiers
...
* use lang in logging/tracing
* typo cleanup
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-26 17:51:55 +02:00
8a50e1ea78
widget: main_view: add obtk ron based localization support
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-24 10:18:14 +02:00
c54cca5f22
main: include orbtk ron based localization
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-24 10:18:14 +02:00
06e68adce6
callbacks/policycheck_state: convert to new API (orbtk-alpha4)
...
Before
* let text = *button(&mut ctx.widget()).text();
* let text = Button::get(&mut ctx.widget()).text();
* let text = *button(&mut ctx.widget()).clone_text();
* let text = Button::get(&mut ctx.widget()).clone_text();
* button(&mut ctx.widget()).text_mut().push_str("test");
* Button::get(&mut ctx.widget()).text_mut().push_str("test");
* button(&mut ctx.widget()).set_text(String16::from("test"));
* Button::get(&mut ctx.widget()).set_text(String16::from("test"));
Now
* let text = Button::text_clone(&ctx.widget());
* Button::text_mut(&mut ctx.widget()).push_str("test");
* Button::text_set(&mut ctx.widget(), String16::from("test"));
* ProgressBar::val_set(&mut ctx.child(ID_POLICY_CHECK_PROGRESS_BAR), new_width);
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-09-17 16:24:02 +02:00
645ea50350
callbacks: update commenting code in policycheck_state
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-28 11:56:22 +02:00
13d56e2e05
examples: new increment_progress_bar source
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-28 11:55:42 +02:00
ef63f62734
Main: update position
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-22 19:08:51 +02:00
5aff69c526
widgets/policycheck_view: template id's
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-22 19:03:52 +02:00
70e2e7f1e5
callbacks/policycheck_state: update theme, popup
...
* popup handling update
* handling of themes
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-22 19:02:18 +02:00
3697bc567a
widgets/main_view: update use statement for our crate
...
* just a style update
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-15 19:34:37 +02:00
ece95344bf
Grid .add() to .push()
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-15 19:34:13 +02:00
69405aaa76
main: initialize orbtk with initialize() functions
...
* needed at least for wayland client
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-15 19:33:24 +02:00
cd82f62a82
widgets/policycheck: update new syntax for Grid
...
* Columns,Row use create() functions
* update from .add() to new .push() method
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-15 19:31:51 +02:00
eb7a3608d7
data/structures: derive PartialEq macro
...
* enable PartialEq needed from new wayland client backend
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-08-15 19:30:32 +02:00
b6b12c45bb
u64 update
...
* policynumber has 10 unsigned integers. usize is 32bit on
on 32 machines. So we need to use u64 to assign the needed ram
space to fit numbers like '9999999999'
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 20:55:53 +02:00
9b9afc2b5a
examples: advowidgets: update to upstream orbtk example
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 20:55:11 +02:00
094fb6d0ea
Node.toml: adapt fonts and app options
...
* remove unused fonts
* correct typo in app name
* correct active font name
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 20:54:25 +02:00
f983eca9aa
widgets: policycheck_view: hinting NumericBox, typo correction
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:57:06 +02:00
bceec88741
Cargo.toml: reference to upstream orbtk (branch develop)
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:57:06 +02:00
daaa544e93
main: remove unused comments
...
* implement lazy pointer to struct if orbtk can handle it
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:57:06 +02:00
33da48b1b1
stylesheets: use explicit theme name
...
* Cargo.toml: add feature
* policy_state.rs: add handling of feature for choosen theme
* advotracker_dark.ron: advotrackers dark theme
* advotracker_light.ron: advotrackers light theme
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:57:06 +02:00
046812e04f
README.md: typo correction
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:57:00 +02:00
bd70ad653b
main: move theming support to callback code, cleanup
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:33:22 +02:00
ac855d0a54
widgets: policycheck_view: global "lang" and styling
...
* use ron styling
* language variable in struct
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:33:22 +02:00
b099064776
services: imports: refine tests in allianzdirectcall.rs
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-24 19:33:14 +02:00
65bec5a4a1
callbacks: introduce theming, i18n truning, introduce menu
...
* global_state: use global "lang", support env
* policycheck_state: use global "lang", new menu function, ron theming
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-22 18:11:39 +02:00
276c0fb5f0
bin: policycheck: simplified core to check policy number
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-22 18:10:51 +02:00
0f97202fbb
widgets: policycheck_menu: update styling
...
* not used, since menu is dynamically created via function
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-22 18:08:16 +02:00
e91b91a2db
i18n: update constants and translation messages
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-22 18:07:43 +02:00
25de70e75c
examples: remove unused code
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-22 18:07:11 +02:00
9fffb093c3
resources: stylesheets: switching to ron bases CSS
...
* remove unused old theme.css files
* advotracker.ron: new ron based theming style
* main.rs: extend the dark theme with our stylesheet
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-20 16:43:51 +02:00
11d12718e8
README.md: update to version 1.0.3
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:33:37 +02:00
6e4ba029b7
Cargo.toml: bump version to 0.1.3
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:21:20 +02:00
fd61f90277
callbacks: policycheck_state refine popup widget handling
...
* on first access, show a processing popup
* calculate the processing time
* update process status
* show processing time in popup
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:18:27 +02:00
ffa8c18efb
services: imports: refine to use SystemTime
...
* Use standard library to calculate SystemTime and Duration
* exporse results to be accessible in orbtk views
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:18:27 +02:00
3d913e7127
widgets: policycheck_view - use constants
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:17:16 +02:00
8ca257bf5c
advotracker: rename 'keys' to 'constants'
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:17:16 +02:00
6907c0c393
callbacks: progressing I18n handling
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:17:16 +02:00
9e1a1e7359
widgets: policycheck_view typo cleanup
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:17:07 +02:00
16f174d53a
I18N: update translation constants
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-15 00:16:46 +02:00
4406efc955
data: define constanst to be static strings
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-14 11:11:19 +02:00
20ddd78a8d
Cargo.toml: enable cross-compile to target Windows x86_64
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2020-07-14 11:09:59 +02:00