summaryrefslogtreecommitdiff
path: root/src/Fl_Tabs.cxx
AgeCommit message (Collapse)Author
44 hourswipmaxim nikonov
2025-03-16Fluid: restructuring and rejuvenation of the source code.Matthias Melcher
* Add classes for application and project * Removed all globals from Fluid.h * Extracting args and project history into their own classes * Moving globals into Application class * Initialize values inside headers for some classes. * Undo functionality wrapped in a class inside Project. * File reader and writer are now linked to a project. * Avoid global project access * Nodes (former Types) will be managed by a new Tree class. * Removed static members (hidden globals) form Node/Fl_Type. * Adding Tree iterator. * Use nullptr instead of 0, NULL, or 0L * Renamed Fl_..._Type to ..._Node, FL_OVERRIDE -> override * Renaming ..._type to ...::prototype * Splitting Widget Panel into multiple files. * Moved callback code into widget panel file. * Cleaning up Fluid_Image -> Image_asset * Moving Fd_Snap_Action into new namespace fld::app::Snap_Action etc. * Moved mergeback into proj folder. * `enum ID` is now `enum class Type`.
2025-01-15Fix typos in documentation of Fl_TabsAlbrecht Schlosser
2024-12-03Clarify use of Fl_Tabs::clieant_area()Matthias Melcher
2024-09-25Fix issue about Fl_Tabs and maximizing window under Windows (#1075)ManoloFLTK
2024-08-03Pulldown button size in Fl_Tag configurable with OV_BORDER now.Matthias Melcher
2024-08-03Improve visibility of selected tab in Fl_Tabs (#1032).Matthias Melcher
2024-08-03Fixes Fl_Tags close button and pulldown button color.Matthias Melcher
2024-08-03Better Fl_Tabs callback handling.Matthias Melcher
2024-08-02Fix Fl_Tabs callback in Overflow mode (#1031).Matthias Melcher
2023-10-11Synchronize all arrow colors and inactive drawing (#791)Matthias Melcher
2023-09-30Fixes Fl_Tabs clipping offsetMatthias Melcher
2023-09-29Remove unused variable, silence compiler warningAlbrecht Schlosser
warning: unused variable ‘dy’ [-Wunused-variable]
2023-09-29Fixes overlapping tabs (#718)Matthias Melcher
* corrects clipping of overlapping tabs * fixes some issues with exotic box types like rounded boxes
2023-09-29Draw parent window backdrop on Fl_Tabs (#718)Matthias Melcher
2023-09-06Fixes Fl_Tabs to be more robust.Matthias Melcher
No children in Fl_Tabs should no longer crash the draw method. Also, drawing an Fl_Tabs with no children inside is now defined and documented.
2023-09-02#718: Fixes drawing issues for Fl_TabsMatthias Melcher
Tabs were drawn incorrectly when children's box was not FL_NO_BOX Current solution is cleaned up and always redraws tabs area without leaving breadcrumbs behind
2023-08-31Remove Doxygen warnings in processing of class Fl_TabsManoloFLTK
2023-08-30#718: Fixes Fl_Tabs overlapping calculationsMatthias Melcher
This method should greatly improve the overlapping calculations. Tested with super wide and super many tabs. Also documented every method in the class.
2023-08-29Document some protected methods and variables of Fl_TabsAlbrecht Schlosser
Todo: There are more protected methods that should be documented, particularly the virtual ones that might be overridden by subclasses.
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-02-21Silence false positive gcc warning (#682)Albrecht Schlosser
... and fix a typo. This warning was reported for gcc 12.2 (MinGW-w64 / MSYS2) but may have appeared in earlier gcc versions (gcc 9.4 is not affected). It's very likely that this warning needs '-O2' or '-O3' to be issued.
2023-01-05Add Fl_Tabs dragging in pulldown modeMatthias Melcher
2023-01-05Add close buttons for individual tabs in Fl_Tabs (#628)Matthias Melcher
Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features
2022-01-14Improve focus box drawing and documentationAlbrecht Schlosser
Add new method Fl_Widget::draw_focus(Fl_Boxtype t, int x, int y, int w, int h, Fl_Color bg) ... with background color for correct contrast testing (in Fl_Tabs) Draw the focus box of the "tabs" of Fl_Tabs widgets with the correct boxtype and background color. Make 'unsigned int visible_focus()' const so it can be used in 'const' methods. Do not draw the focus box if the per-widget focus box option is off.
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-02-11Fix static analyzer errors and warningsAlbrecht Schlosser
Fix several bugs found by scan-build (more to come). https://clang-analyzer.llvm.org/scan-build.html See also current travis-ci build log with static analyzer, e.g. https://travis-ci.com/fltk/fltk/jobs/285426415 (link may become invalid in the future).
2019-02-02STR #2714: remove new shadow lint for MacOSMatthias Melcher
2018-05-22Fl_Tabs: fix allocation of tab_width[] (STR #3472).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-21Code formatting only. No significant changes.Albrecht Schlosser
In preparation of adding Fl_Scroll_Tabs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-07Fix tab alignment.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-06Fl_Tabs: improve tab label drawing (STR #3075, STR #3076).Albrecht Schlosser
New method Fl_Tabs::tab_align() supports icons in tabs (STR #3076). This commit also enables drawing labels of Fl_Window children (STR #3075). Setting tab_align(FL_IMAGE_NEXT_TO_TEXT) draws images (icons) in the tab labels if the child has an image(). Currently this draws the image() even if the child is deactived (so it should presumably draw the deimage()). Todo: Label measurement and Fl_Windows as children still need fixups. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-05Simplify Fl_Tabs label drawing code (remove code duplication).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23Fix potential crash when using keyboard nav. on Fl_Tabs (STR #3333).Albrecht Schlosser
Also: more consistent use of 'const int nc = children()'. Added 'const' qualifier for clarity only. This does not change the behavior. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26Remove FLTK_ABI_VERSION from all but *tree*.* and documentation.Albrecht Schlosser
Everything related to Fl_Tree and its test and demo programs has been cleaned. Documentation needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17Fix and adjust documentation, remove trailing white space.Albrecht Schlosser
This is a comment/white space only commit to prepare for following code changes in a later commit. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19Fixes STR #3169, comment #3.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24Fixing STR#3009 as a two step process:Greg Ercolano
1) Undo r9867 (a fix for STR#2939) which made more changes than needed Doing this will also fix #3009. 2) Apply just the small mod needed to fix STR#2939 so that both #3009 and #2939 are solved. This commit resolves (2), which re-fixes STR #2939. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24Fixing STR#3009 as a two step process:Greg Ercolano
1) Undo r9867 (a fix for STR#2939) which made more changes than needed Doing this will also fix #3009. 2) Apply just the small mod needed to fix STR#2939 so that both #3009 and #2939 are solved. This commit resolves (1). Next commit will resolve (2). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24Fix some warnings for IRIX 6.5Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08Solves STR #2939; adding when() support to Fl_Tabs.Greg Ercolano
Also added a general Fl_Tabs code example to the docs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29Document Fl_Tabs::value()'s integer return value.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29Documenting the public methods Fl_Tabs::push()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-26Added docs for undocumented public 'which()' method.Greg Ercolano
Added a \todo marker for undocumented public 'push()' method. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12Fix for STR #2628: keep focus within an Fl_Tab after moving to another ↵Manolo Gouy
window and back. This had been partially fixed following STR #2552. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30Documentation updates and typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06Fix for STR #2552: focus was lost from within a tab when back from visiting ↵Manolo Gouy
another window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22Added Fl_Tabs::client_area() (STR #2480).Albrecht Schlosser
Fixed some typos in CHANGES. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121