Skip to content

Commit

Permalink
Version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed May 21, 2023
1 parent 6617d49 commit 2d5e0be
Show file tree
Hide file tree
Showing 59 changed files with 133 additions and 71 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-05-18 Markus Gans <guru.mail@muenster.de>
* Version 0.9.0

2023-04-15 Markus Gans <guru.mail@muenster.de>
* Terminal focus-in and focus-out events can be disabled with
the --no-terminal-focus-events parameter
Expand Down Expand Up @@ -235,7 +238,7 @@
* Move the border label methods from FButtonGroup to FScrollView

2021-12-13 Markus Gans <guru.mail@muenster.de>
* Faster string comparison between FString, char* std::string,
* Faster string comparison between FString, char*, std::string,
wchar_t and std:wstring

2021-12-11 Markus Gans <guru.mail@muenster.de>
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Process this file with autoconf to produce a configure script.

AC_INIT([finalcut], [0.8.1])
AC_INIT([finalcut], [0.9.0])
AC_CONFIG_HEADERS([config.h])
AX_PREFIX_CONFIG_H([final/fconfig.h], [F])
AC_CONFIG_SRCDIR([final/fobject.cpp])
Expand Down Expand Up @@ -75,7 +75,7 @@ LT_OUTPUT
### 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)
### using libtool's versioning system.
AC_SUBST(SO_VERSION, ["8:1:8"])
AC_SUBST(SO_VERSION, ["9:0:9"])

AC_SUBST([LIBTOOL_DEPS])

Expand Down
2 changes: 1 addition & 1 deletion final/Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#-----------------------------------------------------------------------------

# This is where make install will install the library
VERSION = "0.8.1"
VERSION = "0.9.0"
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
LIBDIR = /usr/local/lib
INCLUDEDIR1 = .
Expand Down
2 changes: 1 addition & 1 deletion final/Makefile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#-----------------------------------------------------------------------------

# This is where make install will install the library
VERSION = "0.8.1"
VERSION = "0.9.0"
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
LIBDIR = /usr/local/lib
INCLUDEDIR1 = .
Expand Down
3 changes: 2 additions & 1 deletion final/dialog/fdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
***********************************************************************/

#include <memory>
#include <utility>

#include "final/dialog/fdialog.h"
#include "final/fapplication.h"
Expand Down Expand Up @@ -776,7 +777,7 @@ void FDialog::init()
ignorePadding();
setDialogWidget();
// Initialize geometry values
setGeometry (FPoint{1, 1}, FSize{10, 10}, false);
FWindow::setGeometry (FPoint{1, 1}, FSize{10, 10}, false);
setMinimumSize (FSize{15, 4});
mapKeyFunctions();
addDialog(this);
Expand Down
5 changes: 3 additions & 2 deletions final/dialog/ffiledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2014-2022 Markus Gans *
* Copyright 2014-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand All @@ -21,6 +21,7 @@
***********************************************************************/

#include <array>
#include <utility>
#include <vector>

#if defined(__CYGWIN__)
Expand Down Expand Up @@ -278,7 +279,7 @@ void FFileDialog::init()
int x{};
int y{};

setGeometry(FPoint{1, 1}, FSize{w, h}, false);
FWindow::setGeometry(FPoint{1, 1}, FSize{w, h}, false);
const auto& parent_widget = getParentWidget();

if ( parent_widget )
Expand Down
6 changes: 3 additions & 3 deletions final/dialog/fmessagebox.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2014-2022 Markus Gans *
* Copyright 2014-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand Down Expand Up @@ -57,10 +57,10 @@
#error "Only <final/final.h> can be included directly."
#endif

#include <cstring>

#include <array>
#include <cstring>
#include <memory>
#include <utility>

#include "final/dialog/fdialog.h"
#include "final/fwidgetcolors.h"
Expand Down
5 changes: 2 additions & 3 deletions final/fapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1327,10 +1327,9 @@ auto FApplication::processNextEvent() -> bool
flush();
processLogger();
}
else
else if ( isKeyPressed(next_event_wait) )
{
if ( isKeyPressed(next_event_wait) )
time_last_event = TimeValue{};
time_last_event = TimeValue{};
}

processExternalUserEvent();
Expand Down
6 changes: 3 additions & 3 deletions final/fconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

/* Define to the full name and version of this package. */
#ifndef F_PACKAGE_STRING
#define F_PACKAGE_STRING "finalcut 0.8.1"
#define F_PACKAGE_STRING "finalcut 0.9.0"
#endif

/* Define to the one symbol short name of this package. */
Expand All @@ -208,7 +208,7 @@

/* Define to the version of this package. */
#ifndef F_PACKAGE_VERSION
#define F_PACKAGE_VERSION "0.8.1"
#define F_PACKAGE_VERSION "0.9.0"
#endif

/* Define to 1 if you have the ANSI C header files. */
Expand Down Expand Up @@ -240,7 +240,7 @@

/* Version number of package */
#ifndef F_VERSION
#define F_VERSION "0.8.1"
#define F_VERSION "0.9.0"
#endif

/* Define to 1 if on MINIX. */
Expand Down
2 changes: 2 additions & 0 deletions final/fstartoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* <http://www.gnu.org/licenses/>. *
***********************************************************************/

#include <memory>

#include "final/fapplication.h"
#include "final/fstartoptions.h"
#include "final/util/flog.h"
Expand Down
6 changes: 4 additions & 2 deletions final/ftimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2022 Markus Gans *
* Copyright 2022-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand All @@ -20,6 +20,8 @@
* <http://www.gnu.org/licenses/>. *
***********************************************************************/

#include <limits>

#include "final/fobject.h"
#include "final/ftimer.h"

Expand Down Expand Up @@ -57,7 +59,7 @@ auto FTimer<FObject>::globalTimerList() -> const FTimerListUniquePtr&

// FTimer non-member functions
//----------------------------------------------------------------------
int getNextId()
auto getNextId() -> int
{
static int id{0};
return ( id != std::numeric_limits<int>::max() ) ? ++id : 1;
Expand Down
6 changes: 4 additions & 2 deletions final/ftimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2022 Markus Gans *
* Copyright 2022-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand Down Expand Up @@ -37,7 +37,9 @@

#include <algorithm>
#include <chrono>
#include <memory>
#include <mutex>
#include <vector>

#include "final/fevent.h"
#include "final/util/fstring.h"
Expand Down Expand Up @@ -129,7 +131,7 @@ class FTimer

// non-member function forward declarations
//----------------------------------------------------------------------
int getNextId();
auto getNextId() -> int;

// public methods of FTimer
//----------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions final/fwidget_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <algorithm>
#include <array>
#include <memory>

#include "final/dialog/fdialog.h"
#include "final/fapplication.h"
Expand Down
5 changes: 5 additions & 0 deletions final/input/fkey_hashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
#error "Only <final/final.h> can be included directly."
#endif

#include <algorithm>
#include <memory>
#include <string>
#include <unordered_map>

#include "final/fc.h"
#include "final/input/fkey_map.h"

Expand Down
1 change: 1 addition & 0 deletions final/input/fkey_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
***********************************************************************/

#include <array>
#include <memory>

#include "final/fc.h"
#include "final/input/fkey_map.h"
Expand Down
1 change: 1 addition & 0 deletions final/input/fkey_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#endif

#include <array>
#include <string>

#include "final/ftypes.h"
#include "final/util/fstring.h"
Expand Down
4 changes: 2 additions & 2 deletions final/input/fkeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ inline auto FKeyboard::getMouseProtocolKey() const -> FKey
{
if ( buf_len < 9 || (fifo_buf[buf_len - 1] != 'M' && fifo_buf[buf_len - 1] != 'm') )
return FKey::Incomplete; // Incomplete mouse sequence
else
return FKey::Extended_mouse;

return FKey::Extended_mouse;
}

// urxvt mouse tracking
Expand Down
1 change: 1 addition & 0 deletions final/input/fkeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <functional>
#include <memory>
#include <string>
#include <utility>

#include "final/ftypes.h"
#include "final/input/fkey_hashmap.h"
Expand Down
2 changes: 1 addition & 1 deletion final/input/fmouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ void FMouseGPM::drawPointer() const
//----------------------------------------------------------------------
auto FMouseGPM::gpmEvent (bool clear) const -> gpmEventType
{
const int max = ( gpm_fd > stdin_no ) ? gpm_fd : stdin_no;
const int max = std::max(gpm_fd, stdin_no);
fd_set ifds{};
struct timeval tv{};

Expand Down
2 changes: 1 addition & 1 deletion final/input/fmouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class FMouse : public FMouseData

// Methods
template <typename ClassT>
static auto createMouseObject() -> std::unique_ptr<ClassT> ;
static auto createMouseObject() -> std::unique_ptr<ClassT>;
virtual void setRawData (FKeyboard::keybuffer&) = 0;
virtual void processEvent (const TimeValue&) = 0;

Expand Down
4 changes: 3 additions & 1 deletion final/menu/fcheckmenuitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2015-2022 Markus Gans *
* Copyright 2015-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand Down Expand Up @@ -52,6 +52,8 @@
#error "Only <final/final.h> can be included directly."
#endif

#include <utility>

#include "final/menu/fmenuitem.h"

namespace finalcut
Expand Down
4 changes: 3 additions & 1 deletion final/menu/fdialoglistmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2016-2022 Markus Gans *
* Copyright 2016-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand All @@ -20,6 +20,8 @@
* <http://www.gnu.org/licenses/>. *
***********************************************************************/

#include <utility>

#include "final/fapplication.h"
#include "final/fc.h"
#include "final/menu/fdialoglistmenu.h"
Expand Down
3 changes: 2 additions & 1 deletion final/menu/fmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <memory>
#include <tuple>
#include <utility>
#include <vector>

#include "final/dialog/fdialog.h"
Expand Down Expand Up @@ -412,7 +413,7 @@ void FMenu::init()
setLeftPadding(1);
setBottomPadding(1);
setRightPadding(1);
setGeometry (FPoint{1, 1}, FSize{10, 2}, false); // initialize geometry values
FWindow::setGeometry (FPoint{1, 1}, FSize{10, 2}, false); // initialize geometry values
setTransparentShadow();
setMenuWidget();
FMenu::hide();
Expand Down
3 changes: 2 additions & 1 deletion final/menu/fmenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2015-2022 Markus Gans *
* Copyright 2015-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand Down Expand Up @@ -54,6 +54,7 @@
#error "Only <final/final.h> can be included directly."
#endif

#include <memory>
#include <tuple>

#include "final/fevent.h"
Expand Down
2 changes: 1 addition & 1 deletion final/menu/fmenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void FMenuBar::init()
auto r = getRootWidget();
auto w = r->getWidth();
// initialize geometry values
setGeometry (FPoint{1, 1}, FSize{w, 1}, false);
FWindow::setGeometry (FPoint{1, 1}, FSize{w, 1}, false);
setAlwaysOnTop();
setMenuBar(this);
ignorePadding();
Expand Down
2 changes: 1 addition & 1 deletion final/menu/fmenuitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ void FMenuItem::init()
text_width--;
}

setGeometry (FPoint{1, 1}, FSize{text_width + 2, 1}, false);
FWidget::setGeometry (FPoint{1, 1}, FSize{text_width + 2, 1}, false);
const auto& parent = getParentWidget();

if ( ! parent )
Expand Down
3 changes: 2 additions & 1 deletion final/output/tty/fcharmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* *
* This file is part of the FINAL CUT widget toolkit *
* *
* Copyright 2015-2021 Markus Gans *
* Copyright 2015-2023 Markus Gans *
* *
* FINAL CUT is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
Expand All @@ -21,6 +21,7 @@
***********************************************************************/

#include <array>
#include <memory>

#include "final/fc.h"
#include "final/ftypes.h"
Expand Down
Loading

0 comments on commit 2d5e0be

Please sign in to comment.