48 Commits

Author SHA1 Message Date
Lawrence37
ed7f2d0690
Merge pull request #7255 from digitalcarp/cleanup-includes
Get rid of relative include paths
2024-12-26 22:25:58 -08:00
Daniel Gao
96ad7051cf Refactor aspect ratios out of crop.cc 2024-11-18 15:33:53 -05:00
Daniel Gao
711f274403 Get rid of relative include paths
* Use target_include_directories to specify include paths
* Specify project root (parent of rtgui and rtengine) as include path
* Replace relative includes with normal includes
2024-11-16 17:20:02 -05:00
Pandagrapher
c28d5aab97 Merge with "Beep6581/dev" 2023-03-11 11:02:29 +01:00
Pandagrapher
89d2bdce5b Initial commit for real hidpi support
Note: This commit has only been tested on MacOS

Changes:
- Icons now use the native hidpi support from Gtk (through Icon Theme)
- Icons are now directly generated from scalable file (i.e. SVG file)
- Widget sizes are scaled based on DPI and scale factor
- Font size is scaled based on DPI and scale factor
2022-08-19 16:47:28 +02:00
Lawrence Lee
40678f67b0 Refactor tool name code 2021-12-11 21:21:54 -08:00
Ingo Weyrich
8bd9bddfc7
New crop guide: square center, closes #6342 (#6345)
* New crop guide: square center, closes #6342

* Turn `CropParams::guide` into an `enum`

This saves recurring string comparisons.

Co-authored-by: Flössie <floessie.mail@gmail.com>
2021-08-25 15:25:59 +02:00
Thanatomanic
fc031ccb5a
Remove deprecated GTK3 code, fixes #6103 (#6113)
Replaces the following deprecated Gtk classes throughout the codebase by their non-deprecated counterparts. Style, HBox, VBox, HPaned, VPaned, HScrollbar, VScrollbar, VSeparator, HSeparator, Stock, Table, VScale and HScale.
2021-02-17 11:44:25 +01:00
shapirus
dcabfe9cf0
Add a 13:18 photo paper crop aspect ratio (#5939) 2020-10-07 09:04:46 +02:00
Thanatomanic
9cc744b1f6 Reset all options in crop. Fixes #5138 and #5045 2020-04-13 11:40:28 +02:00
Flössie
15db8cdb57 Guard accesses to Crop::crop_ratios (#5701) 2020-04-05 11:26:47 +02:00
Ingo Weyrich
b2443b0e7e more double promote fixes, still not complete 2020-01-21 00:16:27 +01:00
Ingo Weyrich
ba8dda1836 Further cleanup of include dependencies 2019-10-30 16:38:02 +01:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
Ingo Weyrich
46cbb652d5 cppcheck: further fixes 2019-08-01 14:02:38 +02:00
Morgan Hardwood
5b50b2d059 Various interface fixes, closes #5211 2019-03-25 01:53:07 +01:00
Flössie
57d030881d More procparams.h relaxation 2019-03-01 17:40:02 +01:00
Flössie
b08fb04dae Convert almost all IdleRegister::add() calls to add(std::function<>) 2019-01-01 15:53:39 +01:00
Flössie
5af3f64a9d Merge branch 'dev' into review-idle_register-calls 2018-12-31 14:58:26 +01:00
TooWaBoo
59e2eb04e9
crop tool, fix Gui glitch & replace box with grid 2018-12-16 14:08:13 +01:00
Alberto Griggio
e29ff3cce2 crop: added new locked ratio "Current" 2018-12-01 11:47:47 +01:00
Alberto Griggio
4a6449b310 Crop: improve alignment with fixed ratios
Fixes #4981
2018-11-27 15:45:53 +01:00
Alberto Griggio
23aa0562aa crop tool: fix grid spacing for gtkmm < 3.20 2018-11-25 00:00:40 +01:00
Roel Baars
c8300b137c
Add Crop reset button - 2nd attempt (#5015)
Add dedicated reset button for Crop, rearrange some GUI, disable crop buttons in batch mode
2018-11-23 19:10:04 +01:00
Flössie
5906329485 Review IdleRegister (#4892)
This turns `IdleRegister::add()` into a template function to make the
provided function pointers type safe. It also adds a `delete_data`
parameter to manage the provided data pointer even in `destroy()`.
2018-10-28 13:12:01 +01:00
Flössie
2125f42116 Turn almost all Listeners into abstract interfaces 2018-10-09 20:32:40 +02:00
luz.paz
5f867be0c3 Misc. typo tixes 2018-07-31 13:14:14 -04:00
Morgan Hardwood
5309307c7b Theme tweaks in light of new icons, #4469
- Button and combobox sizes consistent.
- Padding around left and right edges of comboboxes.
- Fixed bug in green channel preview togglebutton icon always being
  shown as "off".
- Added CSS classes to various elements.
2018-07-18 19:37:24 +02:00
Morgan Hardwood
bb6282fad3 Icons tweaked #4469
- The "light" icon theme is now a little lighter, to increase contrast.
- Toolbox icons are now small.
- Buttons:
  - Buttons without labels which use icons as their only source of info regarding what the button does (e.g. the white-balance pipette button) use normal-sized icons.
  - Labeled buttons which use icons as an auxiliary source of information (e.g. Auto-Crop) now use small icons. Curve type icons are also small even though they have no labels.
- Colored circles are smaller.
- Curve type icons redesigned and small.
- Hand icons (when panning the preview) redesigned to have a clear outline regardless of background color.
- Magnifier icons redesigned to have a thinner magnifier frame and larger inner parts.
- Perspective, distortion and crop icons redesigned.
- Some small icons were missing the `-small` suffix, now renamed.
2018-07-16 12:41:40 +02:00
Alberto Griggio
6591551a7c added "As Image" crop ratio 2018-01-03 16:02:48 +01:00
Morgan Hardwood
211d194c26 Crop ratio code streamlined by Floessie #4053 2017-09-07 14:54:08 +02:00
Morgan Hardwood
5e40049297 Added new crop ratio 64:27, #4053 2017-09-03 17:18:34 +02:00
Morgan Hardwood
d434a09055 Commented crop ratios 2017-09-03 17:00:31 +02:00
heckflosse
655d66a859 Fix some coverity issues 2017-06-18 00:10:31 +02:00
heckflosse
97e558a040 Fixed some coverity issues 2017-06-12 17:54:34 +02:00
Alberto Griggio
7a25641139 implement feature request #1489 (custom crop ratio by holding shift while resizing the crop area) 2017-04-10 21:14:45 +02:00
Flössie
79ff7f5997 Replace all add_idle()s with IdleRegister 2017-02-10 21:22:42 +01:00
Morgan Hardwood
5fc26c1e58 Merge branch 'master' into gtk3 2017-01-22 21:55:05 +01:00
Flössie
4649e1306f Fix #3619 and some minor clean-ups 2017-01-22 19:28:46 +01:00
Morgan Hardwood
15e0875df2 Merge branch 'master' into gtk3 2017-01-22 18:32:54 +01:00
Morgan Hardwood
ddc05d8ac8 Minimum crop size 1x1, closes #3619, closes #3620 2017-01-22 16:42:53 +01:00
Morgan Hardwood
15c5453884 Added labels and icons to wide buttons, #3594 2017-01-06 21:46:40 +01:00
heckflosse
b16ef8d1f5 Merge master into gtk3 2016-10-28 17:59:47 +02:00
Flössie
aeaff29ac0 Apply readability-simplify-boolean-expr 2016-10-12 20:01:30 +02:00
Flössie
0731975ff0 Apply modernize-use-nullptr
Setup:
- `mkdir tidy; cd tidy`
- `cmake .. -DCMAKE_BUILD_TYPE=debug -DPROC_TARGET_NUMBER=1 -DCACHE_NAME_SUFFIX=4 -DBINDIR=. -DDATADIR=. -DBUILD_BUNDLE=ON -DWITH_LTO=OFF -DOPTION_OMP=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`
- `cd ..`
- `find -name '*.cc' -exec clang-tidy-3.8 -header-filter=.* -p=tidy -fix-errors -checks=modernize-use-nullptr {} \;`
2016-10-12 17:48:40 +02:00
Morgan Hardwood
56a0805bc7 Gtk3 by Hombre, issue 2807 2015-08-12 16:07:19 +02:00
DrSlony
0e0cfb9b25 Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle 2015-08-11 11:55:03 +02:00
torger
d5ca351c20 Issue 2134: removed obsolete raw highlight preservation setting from GUI (still left in procparams for backwards compatilibility) 2015-07-10 12:00:36 +02:00