1
0
Fork 0
mirror of synced 2024-05-08 14:33:31 +12:00
Commit graph

94 commits

Author SHA1 Message Date
Rafał Mikrut 975b285c1f
Make UI take less space (#500) 2021-12-13 19:13:53 +01:00
Rafał Mikrut 89f24f14b5
Use translated strings in more places (#498) 2021-12-12 12:02:53 +01:00
Rafał Mikrut 77a48ca6aa
Add support for translations (#469)
* Reformat code with idea tool

* Pierwsza działająca wersja tłumaczeń

* Działa? I dobrze, bo ma działać

* Ćma szła i się potkła

* Ściął śmiałek źółty rząd pąków.
2021-12-11 16:16:14 +01:00
Rafał Mikrut 457b55ada5
Allow to hide upper notebook (#491) 2021-12-06 14:30:29 +01:00
Rafał Mikrut 51271dcdf0
Remove HashMB mode (#476)
* Remove HashMB mode

* Add some explanation and remove this from GUI

* Not needing to handle everything
2021-12-01 12:37:17 +01:00
Rafał Mikrut b7e4eaccaf Modified include organization 2021-11-27 20:49:20 +01:00
Rafał Mikrut 5836e3e5b3
GTK 4 compatibility fixes (#467)
App still require GTK 3.22(3.24 in near future), but converting to GTK 4 should be easier and faster
2021-11-27 16:44:30 +01:00
Rafał Mikrut c9719758c7
Clean GUI code, make it easier to understand and change (#462)
* Add static variable for basic notebook data

* Opening, selecting results by space, enter and mouse

* Now hard/symbolic links

* Now deleting

* Now popovers

* Move tests to different function

* Don't crash when there is no selected records

* Button symlinks

* Now move

* Compute results

* Move again

* Again Popovers

* More popovers and more

* Key clicking, removing

* KEY_DELETE

* No more GuiData clone

* Adding directories

* Reorganize a little files
2021-11-25 08:36:49 +01:00
Rafał Mikrut 78b49dee3d
Remove support for zeroed files (#461) 2021-11-23 11:38:37 +01:00
Rafał Mikrut 29129d3ec0
Support for finding similar videos (#460)
* Add support for similar videos to CLI

* Add GUI support for similar videos

* Video duplicates

* git_dup

* Documentation
2021-11-23 11:10:24 +01:00
Rafał Mikrut 052711bb4b
Add button for moving files/folders to choosen folder (#449)
* Add button for moving files/folders to choosen folder

* Add support for moving folders to other locations
2021-11-20 08:32:28 +01:00
Rafał Mikrut 96e7af0d25
Add support for multiple hashes in similar images to GUI (#448)
* Add support for multiple hashes in similar images to GUI

* Needs a little more testing

* General fixes
2021-11-19 06:35:26 +01:00
Rafał Mikrut bb2fea2b92
Select things by checkbox (#392) 2021-07-16 06:51:54 +02:00
Rafał Mikrut 775b6b4f10
Fix crashes with too small message queue (#316) 2021-04-14 08:23:59 +02:00
Rafał Mikrut 13add1cbed
Add hardlinking support for GUI (#276) 2021-02-24 13:53:46 +01:00
Rafał Mikrut 35c47b3230
Add new settings window (#262) 2021-02-23 09:40:19 +01:00
krzysdz 4c205ce098
Windows taskbar progress support (#264)
* Initial Windows taskbar progress support

* Changes to COM (un)init

It turns out winapi exposes IIDs through a `uuidof()` function of interfaces, so the copied one can be removed.

* Don't return error codes

Now the `TaskbarProgress` functions fail silently.
The `TaskbarProgress` struct now will always be created (even in case of errors in initialisation), but it won't do anything.

* Fix builds for other systems

* Formatted code

* Fix progress shown after the operation finished

A progress update was received after the stop event.
Also `as_ref()` was removed in many places (I don't even know why it was there).

* Remove redundant call to hide

It's already called by the `glib_stop_receiver` receiver.

* Release the ITaskbarList3 and call CoUninitialize at exit

Because objects moved to closures used as fallbacks in GTK have [static lifetimes](https://gtk-rs.org/docs-src/tutorial/closures#closures), the `TaskbarProgress` will never be dropped.
To workaround this problem a `release` function is called when the main window is closed. This function behaves like `drop`, but sets the struct in a valid "empty" state, so that calling `release`/`drop` again won't cause problems.

* Don't set the NORMAL state manually

Because only NOPROGRESS and INDETERMINATE states are used, there is no need to set the NORMAL state when changing the progress value.

Now `set_progress_value` will also change the `TaskbarProgress::current_state` if such situation occurs.

> Unless [SetProgressState](https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setprogressstate)
> has set a blocking state (TBPF_ERROR or TBPF_PAUSED) for the window, a call to **SetProgressValue** assumes the TBPF_NORMAL
> state even if it is not explicitly set. A call to **SetProgressValue** overrides and clears the TBPF_INDETERMINATE state.

See the [SetProgressValue documentation](https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setprogressvalue#how-the-taskbar-button-chooses-the-progress-indicator-for-a-group)
2021-02-20 12:24:36 +01:00
Rafał Mikrut 49ddc041ee
Add about dialog (#226) 2021-01-24 12:01:02 +01:00
Rafał Mikrut eeaaea20cc
Add broken files support (#202) 2021-01-12 20:06:12 +01:00
Rafał Mikrut ff85453394
Split Gui code into multiple files (#194) 2021-01-10 20:12:08 +01:00
Rafał Mikrut 683e0f9117
Use directly TreeView instead ScrolledWindow->TreeView (#190) 2021-01-10 13:45:05 +01:00
Rafał Mikrut 30bab75a5d
Modernize notebook handling (#189) 2021-01-10 12:06:25 +01:00
Rafał Mikrut 1d59199bb2
Add support for checking for invalid symlinks (#124) 2020-12-21 16:09:39 +01:00
Rafał Mikrut 4a33ff7d86
Add support for symbolic links (#123) 2020-12-19 14:39:42 +01:00
Rafał Mikrut ff353c7014
Remove console window in Windows (#116) 2020-12-13 16:35:27 +01:00
Rafał Mikrut 7148abb8be
Add button to hide/show text view errors (#115) 2020-12-13 00:21:43 +01:00
Rafał Mikrut 6fab1a9368
Add option to save file, store settings and load them (#108) 2020-12-07 15:25:44 +01:00
Rafał Mikrut 7ac4a26229
Add progress bar (#106) 2020-12-02 10:25:27 +01:00
Rafał Mikrut 88d47e49cf
Add select for all modes (#102) 2020-11-09 10:09:22 +01:00
Rafał Mikrut 4429df2861
Refactore GUI into multiple files (#89) 2020-10-31 14:23:31 +01:00
Rafał Mikrut 777ac50f07
Add support for checking for zeroed files (#88) 2020-10-31 10:29:11 +01:00
Rafał Mikrut 7112ff6b92
Add support for checking same file names (#84) 2020-10-24 20:44:21 +02:00
Rafał Mikrut d996c3c46b
Add pre hash check (#83) 2020-10-24 06:56:39 +02:00
Rafał Mikrut 4d90e3170e
Remove warnings about non existent directories in Windows (#79) 2020-10-21 22:44:09 +02:00
Rafał Mikrut aa63a14f68
Improve deleting files in Similar files in GUI (#75) 2020-10-17 12:14:25 +02:00
Rafał Mikrut beb14f9f1d
Improve similar images GUI a little and add sorting to Similarity Enum (#73) 2020-10-15 17:51:47 +02:00
Rafał Mikrut 4fed419856
Added support for opening files by double clicks (#70) 2020-10-15 10:42:27 +02:00
Rafał Mikrut 1178e145ae
Add similar images support for GUI (#69) 2020-10-15 09:04:02 +02:00
Dariusz Niedoba acfecd7ca3
Replace String with PathBuf for paths (#59) 2020-10-14 18:41:37 +02:00
Rafał Mikrut 67a775beff Release version 1.1 2020-10-10 21:36:25 +02:00
Rafał Mikrut d001592c3f
Fix not removing from GUI empty folders which contains another empty folder (#57) 2020-10-10 12:56:07 +02:00
Rafał Mikrut 8bbb12c7d4
Add ability to stop task from GUI (#55) 2020-10-10 11:15:20 +02:00
Caduser2020 085da0369e
Improve code quality. (#52)
* Remove verbose constructs in core.

* Use self and const fn where appropriate.

* Remove needless borrows.

* Fix name in function arguments.

* Merge 'master' into quality

* Decrease function complexity.

* Run fmt.

* Fix clippy.

* Fix duplicate extension files.

* Fix excluded items.

* Fix allowed extensions (Part 2).

* Fix temporary files.
2020-10-09 22:32:08 +02:00
Rafał Mikrut be30afdac6
Add support for searching in other thread (#51) 2020-10-07 22:22:39 +02:00
Rafał Mikrut c725d1b850 Add /snap and /run to excluded directories by default 2020-10-06 21:12:14 +02:00
Rafał Mikrut 3065e0e2dd Added flexible notebook tabs at the top 2020-10-04 11:47:10 +02:00
Rafał Mikrut 8d263fdff2 Minimal file size in duplicate finder should be always greater than 0 2020-10-03 09:51:02 +02:00
Rafał Mikrut df065115f6 Add confirmation dialog when deleting files 2020-10-02 08:57:40 +02:00
Rafał Mikrut d7529cb64b Added support for Big, Temporary and empty file finder in GUI 2020-10-01 19:26:25 +02:00
Rafał Mikrut d3bea0db85 Small general changes 2020-10-01 16:54:26 +02:00