93 Commits

Author SHA1 Message Date
Markus Gans
5a43a018cf FRect has now got a scaleBy() method 2019-08-11 18:15:57 +02:00
Markus Gans
2b9c64a445 Reduce include entries in the header files 2019-07-21 23:31:21 +02:00
Markus Gans
52c5b412f7 Fixes problem with scroll bar view after first draw 2019-06-12 11:37:34 +02:00
Markus Gans
7c46d52ef4 Avoid drawing the scroll bars if the widget is non-visible 2019-06-02 19:11:17 +02:00
Markus Gans
c93c0b6e33 Further segfault bug fixes in FListView 2019-05-27 09:55:29 +02:00
Marek Habersack
c4d9b33628 Fix a segfault when processing input to empty FListView
If the application has a list view with no items and the user clicks the widget
or sends any key (space, plus, minus etc) which acts on the items, the
application will segfault as the item returned from `getCurrentItem()` is
`nullptr` and there's no check made for this condition.

Instead of checking whether current item `!= nullptr` just check whether the
item list is empty and avoid running any code at all in such case.
2019-05-26 23:35:39 +02:00
Markus Gans
439b8310ef Add a "scroll view" chapter to the first steps document 2019-03-24 20:15:17 +01:00
Markus Gans
2270f4cde5 Three new methods in FLineEdit 2019-02-24 00:25:36 +01:00
Markus Gans
d91cd10311 Printing FColorPair to change foreground and background color 2019-01-30 12:17:48 +01:00
Markus Gans
96cdaa2450 Print function can set the cursor position with an FPoint 2019-01-27 13:44:13 +01:00
Markus Gans
eeb32bd66e More accurate interfaces through the strict use of FPoint() and FSize() 2019-01-21 03:42:18 +01:00
Markus Gans
cb090e8aff A bit of refactoring 2019-01-12 09:11:22 +01:00
Markus Gans
016f15c860 Generalize hide() method 2019-01-11 22:16:59 +01:00
Markus Gans
60e64be37b Better widget visibility handling with the methods hide() and show() 2019-01-09 20:05:29 +01:00
Markus Gans
2b110d87d8 Use of initializer_list for FListBox, FListView and FTextView 2019-01-05 22:58:06 +01:00
Markus Gans
0d1f6a5e51 Cygwin compiled fix for C++11 2018-12-30 04:24:46 +01:00
Markus Gans
250c04cefd Small data type changes 2018-12-28 22:57:43 +01:00
Markus Gans
831e9fe05e Global use of FDataPtr for void* 2018-12-27 00:14:46 +01:00
Markus Gans
2a06915f1c Use constexpr for fixed values 2018-12-26 23:41:49 +01:00
Markus Gans
81a4e72916 bool on -> bool enable 2018-12-22 23:50:10 +01:00
Markus Gans
f6c21db7e7 Use of smart pointers 2018-12-20 01:41:04 +01:00
Markus Gans
554d26ca00 Reactivate the event queue 2018-12-17 02:06:22 +01:00
Markus Gans
cef13611d1 Use of the C++11 auto specifier in the program code 2018-12-15 00:50:09 +01:00
Markus Gans
6ce8c5cb27 Use nullptr instead of 0 to initialize a pointer values 2018-12-10 01:48:26 +01:00
Markus Gans
7ef9b154b9 Better handling of the scrollbar maximum 2018-12-09 18:24:31 +01:00
Markus Gans
9ba1b77069 Easier handling of fc::SpecialCharacter 2018-12-06 02:28:24 +01:00
Markus Gans
3537152c28 Use delegated constructors and in-class default member initializers 2018-12-03 03:22:36 +01:00
Markus Gans
c3847b6b05 Correct vertical scrollbar position after sorting in FListView 2018-11-27 01:32:21 +01:00
Markus Gans
820ef81377 bad_alloc_str in now usable in the entire namespace finalcut 2018-11-22 21:51:32 +01:00
Markus Gans
1f64843fb6 New type FKey for key inputs 2018-11-21 20:07:08 +01:00
Markus Gans
167b7c97bc install fix with final/ftermdata.h 2018-11-20 21:11:04 +01:00
Markus Gans
2cb08ce928 checkable FListViewItem now shows the input cursor 2018-11-18 22:48:55 +01:00
Markus Gans
3953dc19fa FListViewItem now provides checkable list view items 2018-11-18 01:15:38 +01:00
Markus Gans
e40a233d64 FColor fix 2018-11-13 02:51:41 +01:00
Markus Gans
9b3f30f006 Clicking on the column header in FListView now changes the sort order 2018-11-12 23:22:45 +01:00
Markus Gans
b451f0047a Clicking on the column header in FListView now changes the sort order 2018-11-12 22:40:16 +01:00
Markus Gans
d39e85d4c5 FListView now has a sort indicator (▼/▲) to display the sort order 2018-11-10 00:53:57 +01:00
Markus Gans
5a356664b2 The widget flags are now stored in a bit field 2018-11-04 23:00:06 +01:00
Markus Gans
e359d16417 Some code formatting 2018-10-24 00:16:45 +02:00
Markus Gans
689199efe2 createBlankArray + destroyBlankArray 2018-10-20 22:50:35 +02:00
Markus Gans
94e00051c5 Changed more variables from int to std::size_t 2018-10-17 22:12:52 +02:00
Markus Gans
cfc1c4ef25 change from int to std::size_t for width or height 2018-10-14 06:25:33 +02:00
Markus Gans
0b51df32b5 Move all termcap code into FTermcap 2018-10-08 04:14:20 +02:00
Markus Gans
8407a9d2b6 Extract FTerm data members into the data class FTermData 2018-10-01 22:27:54 +02:00
Markus Gans
8ea63da899 FListView sort bug fix for negative numbers 2018-09-28 06:53:27 +02:00
Markus Gans
851e3db49c FListView now has the ability to sort by columns 2018-09-28 06:45:02 +02:00
Markus Gans
4ad8335556 Stricter use of the keyword virtual 2018-09-24 04:02:35 +02:00
Markus Gans
b0039e78c4 The entire library source code is now encapsulated under the namespace finalcut 2018-09-20 23:59:01 +02:00
Markus Gans
fc45c3c1a5 Some small code improvements 2018-09-02 22:46:01 +02:00
Markus Gans
03c3c79946 Struct to pass the FOptiAttr environment 2018-06-25 00:14:53 +02:00