Last minor changes

This commit is contained in:
Markus Gans 2020-11-07 21:51:55 +01:00
parent 1d3522f35b
commit d71ca6f028
17 changed files with 3859 additions and 5689 deletions

View File

@ -1,3 +1,6 @@
2019-11-07 Markus Gans <guru.mail@muenster.de>
* Version 0.7.0
2020-11-04 Markus Gans <guru.mail@muenster.de> 2020-11-04 Markus Gans <guru.mail@muenster.de>
* Elimination of unnecessary terminal flushes * Elimination of unnecessary terminal flushes

View File

@ -4,7 +4,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_INIT([finalcut], [0.6.1]) AC_INIT([finalcut], [0.7.0])
AC_CONFIG_HEADER([config.h]) AC_CONFIG_HEADER([config.h])
AX_PREFIX_CONFIG_H([src/include/final/fconfig.h], [F]) AX_PREFIX_CONFIG_H([src/include/final/fconfig.h], [F])
AC_CONFIG_SRCDIR([src/fobject.cpp]) AC_CONFIG_SRCDIR([src/fobject.cpp])
@ -64,7 +64,7 @@ LT_OUTPUT
### This defines the version number of the installed .so files ### This defines the version number of the installed .so files
### Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B) ### Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
### using libtool's versioning system. ### using libtool's versioning system.
AC_SUBST(SO_VERSION, ["6:1:6"]) AC_SUBST(SO_VERSION, ["7:0:7"])
AC_SUBST([LIBTOOL_DEPS]) AC_SUBST([LIBTOOL_DEPS])

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
finalcut (0.7.0) unstable; urgency=low
* Release (version 0.7.0)
-- Markus Gans <guru.mail@muenster.de> Sat, 07 Nov 2020 11:24:39 +0100
finalcut (0.6.0) unstable; urgency=low finalcut (0.6.0) unstable; urgency=low
* Release (version 0.6.0) * Release (version 0.6.0)

View File

@ -3,21 +3,34 @@ COPYING
COPYING.LESSER COPYING.LESSER
ChangeLog ChangeLog
README.md README.md
doc/calendar-draft.png doc/benchmark.md
doc/calculator.png doc/calculator.png
doc/calendar-draft.png
doc/class-diagram.txt doc/class-diagram.txt
doc/class_template.cpp doc/class_template.cpp
doc/class_template.h doc/class_template.h
doc/coding-style.txt
doc/console_codes-manual.sh doc/console_codes-manual.sh
doc/console_ioctl-manual.sh doc/console_ioctl-manual.sh
doc/faq.md doc/faq.md
doc/fileopen-dialog.png doc/fileopen-dialog.png
doc/final-cut-application-structure.svg
doc/final-cut-widget-tree.svg
doc/first-steps_callback-function.cpp.png
doc/first-steps_callback-lambda.cpp.png
doc/first-steps_callback-method.cpp.png
doc/first-steps_dialog.cpp.png
doc/first-steps_emit-signal.cpp.png
doc/first-steps.md doc/first-steps.md
doc/first-steps_memory.cpp.png
doc/first-steps_scrollview.cpp.png
doc/first-steps_size-adjustment.cpp.png
doc/first-steps_timer.cpp.png
doc/first-steps_user-event.cpp.png
doc/framebuffer.txt doc/framebuffer.txt
doc/Mandelbrot.png doc/Mandelbrot.png
doc/mouse-control.md
doc/ncurses.supp doc/ncurses.supp
doc/newfont1.png
doc/newfont2.png
doc/progress-bar.png doc/progress-bar.png
doc/readme.txt doc/readme.txt
doc/coding-style.txt doc/coding-style.txt
@ -25,9 +38,20 @@ doc/terminfo-capabilities.sh
doc/terminfo-manual.sh doc/terminfo-manual.sh
doc/textview.png doc/textview.png
doc/TODO doc/TODO
doc/user-theme-bee-palette.svg
doc/user-theme-fc16-dark-palette.svg
doc/user-theme-fc16-palette.svg
doc/user-theme-fc8-palette.svg
doc/user-theme.md
doc/user-theme.png
doc/user-theme-vga-palette.svg
doc/vga.txt doc/vga.txt
doc/vt100_line_drawing_graphics.png
doc/virtual-terminal.txt doc/virtual-terminal.txt
doc/xterm.txt doc/vt100_line_drawing_graphics.png
doc/widget-coordinates.svg
doc/widget-geometry.svg
doc/widget-lengths.svg
doc/xgraphics doc/xgraphics
doc/xterm.txt
fonts/newfont.txt fonts/newfont.txt

View File

@ -1 +1 @@
libfinal 0 libfinal0 (>= 0.6.0) libfinal 0 libfinal0 (>= 0.7.0)

9441
debian/libfinal0.symbols vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
-------------------------------------------------------------------
Sat Nov 07 11:24:39 UTC 2020 - Markus Gans <guru.mail@muenster.de>
- Release (version 0.7.0)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 14 23:49:57 UTC 2019 - Markus Gans <guru.mail@muenster.de> Mon Oct 14 23:49:57 UTC 2019 - Markus Gans <guru.mail@muenster.de>
- Release (version 0.6.0) - Release (version 0.6.0)

3
m4/libtool.m4 vendored
View File

@ -4063,7 +4063,8 @@ _LT_EOF
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols. # Now try to grab the symbols.
nlist=conftest.nm nlist=conftest.nm
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
# Try sorting and uniquifying the output. # Try sorting and uniquifying the output.
if sort "$nlist" | uniq > "$nlist"T; then if sort "$nlist" | uniq > "$nlist"T; then
mv -f "$nlist"T "$nlist" mv -f "$nlist"T "$nlist"

View File

@ -1,6 +1,6 @@
sonar.projectKey=gansm_finalcut sonar.projectKey=gansm_finalcut
sonar.projectName=finalcut sonar.projectName=finalcut
sonar.projectVersion=0.6.1 sonar.projectVersion=0.7.0
sonar.projectDescription=A text-based widget toolkit sonar.projectDescription=A text-based widget toolkit
#---------------------------------------------------------------------- #----------------------------------------------------------------------

View File

@ -3,7 +3,7 @@
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# This is where make install will install the library # This is where make install will install the library
VERSION = "0.6.1" VERSION = "0.7.0"
MAJOR := $(shell echo ${VERSION} | cut -d. -f1) MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
LIBDIR = /usr/local/lib LIBDIR = /usr/local/lib
INCLUDEDIR1 = include/final INCLUDEDIR1 = include/final

View File

@ -3,7 +3,7 @@
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# This is where make install will install the library # This is where make install will install the library
VERSION = "0.6.1" VERSION = "0.7.0"
MAJOR := $(shell echo ${VERSION} | cut -d. -f1) MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
LIBDIR = /usr/local/lib LIBDIR = /usr/local/lib
INCLUDEDIR1 = include/final INCLUDEDIR1 = include/final

View File

@ -23,9 +23,10 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#if defined(__CYGWIN__) #if defined(__sun) && defined(__SVR4)
#include <sys/filio.h> // need for FIONREAD
#elif defined(__CYGWIN__)
#include <sys/select.h> // need for FD_ZERO, FD_SET, FD_CLR, ... #include <sys/select.h> // need for FD_ZERO, FD_SET, FD_CLR, ...
#include <sys/socket.h> // need for FIONREAD
#endif #endif
#include <algorithm> #include <algorithm>
@ -467,10 +468,12 @@ FKey FKeyboard::UTF8decode (const char utf8[]) const
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline ssize_t FKeyboard::readKey() inline ssize_t FKeyboard::readKey()
{ {
#if !defined(__CYGWIN__)
int len{0}; int len{0};
if ( ioctl(FTermios::getStdIn(), FIONREAD, &len) < 0 || len == 0 ) if ( ioctl(FTermios::getStdIn(), FIONREAD, &len) < 0 || len == 0 )
return 0; return 0;
#endif
setNonBlockingInput(); setNonBlockingInput();
const ssize_t bytes = read(FTermios::getStdIn(), &read_character, 1); const ssize_t bytes = read(FTermios::getStdIn(), &read_character, 1);

View File

@ -271,7 +271,8 @@ void FTermcapQuirks::vte()
if ( term_detection->getGnomeTerminalID() >= 5300 ) // vte >= 0.53.0 if ( term_detection->getGnomeTerminalID() >= 5300 ) // vte >= 0.53.0
{ {
if ( ! std::strstr(TCAP(fc::t_enter_ca_mode), "\033[22;0;0t") ) if ( TCAP(fc::t_enter_ca_mode)
&& ! std::strstr(TCAP(fc::t_enter_ca_mode), "\033[22;0;0t") )
{ {
// Save the cursor position, enter alternate screen buffer // Save the cursor position, enter alternate screen buffer
// and save xterm icon and window title on stack // and save xterm icon and window title on stack
@ -279,7 +280,8 @@ void FTermcapQuirks::vte()
CSI "?1049h" CSI "22;0;0t"; CSI "?1049h" CSI "22;0;0t";
} }
if ( ! std::strstr(TCAP(fc::t_exit_ca_mode), "\033[23;0;0t") ) if ( TCAP(fc::t_exit_ca_mode)
&& ! std::strstr(TCAP(fc::t_exit_ca_mode), "\033[23;0;0t") )
{ {
// Use normal screen buffer, restore the cursor position // Use normal screen buffer, restore the cursor position
// and restore xterm icon and window title from stack // and restore xterm icon and window title from stack

View File

@ -271,7 +271,7 @@ bool FVTerm::updateTerminal() const
// Updates pending changes to the terminal // Updates pending changes to the terminal
// Check if terminal updates were stopped, application is stopping, // Check if terminal updates were stopped, application is stopping,
// VTerm has changes or the drawing is not completed // VTerm has no changes, or the drawing is not completed
if ( no_terminal_updates || FApplication::isQuit() if ( no_terminal_updates || FApplication::isQuit()
|| ! (hasPendingUpdates(vterm) && draw_completed) ) || ! (hasPendingUpdates(vterm) && draw_completed) )
{ {

View File

@ -183,7 +183,7 @@
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#ifndef F_PACKAGE_STRING #ifndef F_PACKAGE_STRING
#define F_PACKAGE_STRING "finalcut 0.6.1" #define F_PACKAGE_STRING "finalcut 0.7.0"
#endif #endif
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
@ -198,7 +198,7 @@
/* Define to the version of this package. */ /* Define to the version of this package. */
#ifndef F_PACKAGE_VERSION #ifndef F_PACKAGE_VERSION
#define F_PACKAGE_VERSION "0.6.1" #define F_PACKAGE_VERSION "0.7.0"
#endif #endif
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
@ -230,7 +230,7 @@
/* Version number of package */ /* Version number of package */
#ifndef F_VERSION #ifndef F_VERSION
#define F_VERSION "0.6.1" #define F_VERSION "0.7.0"
#endif #endif
/* Define to 1 if on MINIX. */ /* Define to 1 if on MINIX. */

View File

@ -419,8 +419,6 @@ class FVTerm
void appendLowerRight (FChar&) const; void appendLowerRight (FChar&) const;
static void characterFilter (FChar&); static void characterFilter (FChar&);
static void appendOutputBuffer (const std::string&); static void appendOutputBuffer (const std::string&);
template <std::size_t N>
static void appendOutputBuffer (const char (&)[N]);
static int appendOutputBuffer (int); static int appendOutputBuffer (int);
// Data members // Data members
@ -988,13 +986,6 @@ inline bool FVTerm::isCursorHideable() const
inline void FVTerm::hideVTermCursor() const inline void FVTerm::hideVTermCursor() const
{ vterm->input_cursor_visible = false; } { vterm->input_cursor_visible = false; }
//----------------------------------------------------------------------
template <std::size_t N>
inline void FVTerm::appendOutputBuffer (const char (&str)[N])
{
for (auto&& ch : str)
FVTerm::appendOutputBuffer(int(ch));
}
} // namespace finalcut } // namespace finalcut

View File

@ -444,7 +444,8 @@ void FStringTest::assignmentTest()
CPPUNIT_ASSERT ( ! s1 ); CPPUNIT_ASSERT ( ! s1 );
// Move assignment operator // Move assignment operator
const finalcut::FString s9 = std::move(finalcut::FString(0)); auto empty = finalcut::FString(0);
const finalcut::FString s9 = std::move(empty);
CPPUNIT_ASSERT ( ! s9 ); CPPUNIT_ASSERT ( ! s9 );
CPPUNIT_ASSERT ( s9.isNull() ); CPPUNIT_ASSERT ( s9.isNull() );
CPPUNIT_ASSERT ( s9.isEmpty() ); CPPUNIT_ASSERT ( s9.isEmpty() );