diff --git a/confdefs.h b/confdefs.h new file mode 100644 index 00000000..28a75ba7 --- /dev/null +++ b/confdefs.h @@ -0,0 +1,46 @@ +/* confdefs.h */ +#define PACKAGE_NAME "finalcut" +#define PACKAGE_TARNAME "finalcut" +#define PACKAGE_VERSION "0.6.1" +#define PACKAGE_STRING "finalcut 0.6.1" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_URL "" +#define STDC_HEADERS 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_UNISTD_H 1 +#define __EXTENSIONS__ 1 +#define _ALL_SOURCE 1 +#define _GNU_SOURCE 1 +#define _POSIX_PTHREAD_SEMANTICS 1 +#define _TANDEM_SOURCE 1 +#define PACKAGE "finalcut" +#define VERSION "0.6.1" +#define STDC_HEADERS 1 +#define HAVE_LINUX_FB_H 1 +#define HAVE_SYS_IO_H 1 +#define HAVE_SYS_KD_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_FCNTL_H 1 +#define HAVE_LANGINFO_H 1 +#define HAVE_TERM_H 1 +#define HAVE_TERMIOS_H 1 +#define HAVE_TTYENT_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_GETUID 1 +#define HAVE_GETEUID 1 +#define HAVE_GETTTYNAM 1 +#define HAVE_SELECT 1 +#define HAVE_STRDUP 1 +#define HAVE_STRSTR 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_DLFCN_H 1 +#define LT_OBJDIR ".libs/" +#define HAVE_LIBGPM 1 diff --git a/doc/first-steps.md b/doc/first-steps.md index ff1de5b5..f184b0dd 100644 --- a/doc/first-steps.md +++ b/doc/first-steps.md @@ -13,10 +13,10 @@ Table of Contents - [Event handler reimplementation](#event-handler-reimplementation) - [Signals and Callbacks](#signals-and-callbacks) - [Default signals](#the-final-cut-widgets-emit-the-following-default-signals) -- [Callback function](#example-of-a-callback-function) -- [Callback lambda expression](#example-of-an-lambda-expression-callback) -- [Callback method](#example-of-a-callback-function) -- [Custom signals](#send-custom-signals) + - [Callback function](#example-of-a-callback-function) + - [Callback lambda expression](#example-of-an-lambda-expression-callback) + - [Callback method](#example-of-a-callback-function) + - [Custom signals](#send-custom-signals) - [Widget layout](#widget-layout) - [Coordinates](#coordinates) - [Lengths](#lengths) @@ -616,7 +616,7 @@ class dialogWidget : public FDialog { public: explicit dialogWidget (FWidget* parent = nullptr) - : FDialog(parent) + : FDialog{parent} { setText ("Callback method"); setGeometry (FPoint{25, 5}, FSize{25, 7}); diff --git a/test/flogger-test.cpp b/test/flogger-test.cpp index 0056d43a..176f6e89 100644 --- a/test/flogger-test.cpp +++ b/test/flogger-test.cpp @@ -303,7 +303,11 @@ void FLoggerTest::fileTest() //---------------------------------------------------------------------- void FLoggerTest::applicationObjectTest() { + // Generation of a logger in a shared_ptr via a pointer + finalcut::FApplication::setLog (std::make_shared()); + // Get the shared_ptr with the base class std::shared_ptr log = finalcut::FApplication::getLog(); + std::ostringstream buf{}; log->setOutputStream(buf); @@ -351,6 +355,9 @@ void FLoggerTest::applicationObjectTest() log->debug("myLogger 4"); CPPUNIT_ASSERT ( buf.str() == "Debug: myLogger 4\n" ); buf.str(""); // Clear buffer + + std::shared_ptr* logger = &(finalcut::FApplication::getLog()); + delete logger; }