All include files were moved to a separate director
This commit is contained in:
parent
ab26baa47c
commit
28f3de0971
|
@ -21,27 +21,27 @@ libtool
|
||||||
/autom4te.cache
|
/autom4te.cache
|
||||||
src/.deps/
|
src/.deps/
|
||||||
src/.libs/
|
src/.libs/
|
||||||
test/.deps/
|
examples/.deps/
|
||||||
test/.libs/
|
examples/.libs/
|
||||||
test/calculator
|
examples/calculator
|
||||||
test/dialog
|
examples/dialog
|
||||||
test/string-operations
|
examples/string-operations
|
||||||
test/opti-move
|
examples/opti-move
|
||||||
test/termcap
|
examples/termcap
|
||||||
test/hello
|
examples/hello
|
||||||
test/watch
|
examples/watch
|
||||||
test/menu
|
examples/menu
|
||||||
test/scrollview
|
examples/scrollview
|
||||||
test/windows
|
examples/windows
|
||||||
test/term-attributes
|
examples/term-attributes
|
||||||
test/transparent
|
examples/transparent
|
||||||
test/input-dialog
|
examples/input-dialog
|
||||||
test/choice
|
examples/choice
|
||||||
test/listbox
|
examples/listbox
|
||||||
test/listview
|
examples/listview
|
||||||
test/treeview
|
examples/treeview
|
||||||
test/mandelbrot
|
examples/mandelbrot
|
||||||
test/keyboard
|
examples/keyboard
|
||||||
test/mouse
|
examples/mouse
|
||||||
test/timer
|
examples/timer
|
||||||
test/ui
|
examples/ui
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
2017-09-17 Markus Gans <guru.mail@muenster.de>
|
2017-09-17 Markus Gans <guru.mail@muenster.de>
|
||||||
* FObject has received the iterator child access methods
|
* FObject has received the iterator child access methods
|
||||||
begin() and end()
|
begin() and end()
|
||||||
|
* All include files were moved to a separate directory
|
||||||
|
|
||||||
2017-09-15 Markus Gans <guru.mail@muenster.de>
|
2017-09-15 Markus Gans <guru.mail@muenster.de>
|
||||||
* Fix byte access in data type char_data
|
* Fix byte access in data type char_data
|
||||||
|
|
|
@ -6,7 +6,7 @@ AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
SUBDIRS = src doc test
|
SUBDIRS = src doc examples
|
||||||
|
|
||||||
docdir = ${datadir}/doc/${PACKAGE}
|
docdir = ${datadir}/doc/${PACKAGE}
|
||||||
doc_DATA = AUTHORS COPYING ChangeLog
|
doc_DATA = AUTHORS COPYING ChangeLog
|
||||||
|
|
|
@ -352,7 +352,7 @@ top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
SUBDIRS = src doc test
|
SUBDIRS = src doc examples
|
||||||
doc_DATA = AUTHORS COPYING ChangeLog
|
doc_DATA = AUTHORS COPYING ChangeLog
|
||||||
all: config.h
|
all: config.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
|
@ -2351,7 +2351,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
ac_config_headers="$ac_config_headers config.h"
|
ac_config_headers="$ac_config_headers config.h"
|
||||||
|
|
||||||
|
|
||||||
ac_config_commands="$ac_config_commands src/fconfig.h"
|
ac_config_commands="$ac_config_commands include/final/fconfig.h"
|
||||||
|
|
||||||
|
|
||||||
am__api_version='1.14'
|
am__api_version='1.14'
|
||||||
|
@ -16978,7 +16978,7 @@ SO_VERSION="3:0:3"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile src/Makefile src/fonts/Makefile doc/Makefile test/Makefile"
|
ac_config_files="$ac_config_files Makefile src/Makefile src/fonts/Makefile doc/Makefile examples/Makefile"
|
||||||
|
|
||||||
|
|
||||||
# use GPM (General Purpose Mouse)
|
# use GPM (General Purpose Mouse)
|
||||||
|
@ -18191,14 +18191,14 @@ for ac_config_target in $ac_config_targets
|
||||||
do
|
do
|
||||||
case $ac_config_target in
|
case $ac_config_target in
|
||||||
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
||||||
"src/fconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/fconfig.h" ;;
|
"include/final/fconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/final/fconfig.h" ;;
|
||||||
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
||||||
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
||||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
||||||
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
||||||
"src/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES src/fonts/Makefile" ;;
|
"src/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES src/fonts/Makefile" ;;
|
||||||
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
||||||
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
|
"examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
|
||||||
|
|
||||||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||||
esac
|
esac
|
||||||
|
@ -18794,7 +18794,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
|
||||||
|
|
||||||
|
|
||||||
case $ac_file$ac_mode in
|
case $ac_file$ac_mode in
|
||||||
"src/fconfig.h":C) ac_prefix_conf_OUT=`echo src/fconfig.h`
|
"include/final/fconfig.h":C) ac_prefix_conf_OUT=`echo include/final/fconfig.h`
|
||||||
ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
|
ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
|
||||||
ac_prefix_conf_PKG=`echo F`
|
ac_prefix_conf_PKG=`echo F`
|
||||||
ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
|
ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
AC_INIT([finalcut], [0.3.0])
|
AC_INIT([finalcut], [0.3.0])
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADER([config.h])
|
||||||
AX_PREFIX_CONFIG_H([src/fconfig.h], [F])
|
AX_PREFIX_CONFIG_H([include/final/fconfig.h], [F])
|
||||||
AC_CONFIG_SRCDIR([src/fobject.cpp])
|
AC_CONFIG_SRCDIR([src/fobject.cpp])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
@ -54,7 +54,7 @@ AC_SUBST([LIBTOOL_DEPS])
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile src/Makefile src/fonts/Makefile doc/Makefile test/Makefile])
|
AC_CONFIG_FILES([Makefile src/Makefile src/fonts/Makefile doc/Makefile examples/Makefile])
|
||||||
|
|
||||||
# use GPM (General Purpose Mouse)
|
# use GPM (General Purpose Mouse)
|
||||||
AC_ARG_WITH([gpm],
|
AC_ARG_WITH([gpm],
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
test/.libs/* usr/lib/finalcut/examples
|
examples/.libs/* usr/lib/finalcut/examples
|
||||||
test/*.cpp usr/lib/finalcut/examples
|
examples/*.cpp usr/lib/finalcut/examples
|
||||||
test/Makefile.clang usr/lib/finalcut/examples
|
examples/Makefile.clang usr/lib/finalcut/examples
|
||||||
test/Makefile.gcc usr/lib/finalcut/examples
|
examples/Makefile.gcc usr/lib/finalcut/examples
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal
|
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal
|
||||||
AM_CPPFLAGS = -Wall -Werror -I$(top_srcdir)/src
|
AM_CPPFLAGS = -I$(top_srcdir)/include -Wall -Werror
|
||||||
|
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
hello \
|
hello \
|
||||||
|
|
|
@ -12,7 +12,7 @@ OBJS = $(SRCS:%.cpp=%)
|
||||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||||
MAKEFILE = -f Makefile.clang
|
MAKEFILE = -f Makefile.clang
|
||||||
LDFLAGS = -L../src -lfinal
|
LDFLAGS = -L../src -lfinal
|
||||||
INCLUDES = -I../src -I/usr/include/final/
|
INCLUDES = -I../include -I/usr/include/final
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
|
|
@ -12,7 +12,7 @@ OBJS = $(SRCS:%.cpp=%)
|
||||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||||
MAKEFILE = -f Makefile.gcc
|
MAKEFILE = -f Makefile.gcc
|
||||||
LDFLAGS = -L../src -lfinal
|
LDFLAGS = -L../src -lfinal
|
||||||
INCLUDES = -I../src -I/usr/include/final/
|
INCLUDES = -I../include -I/usr/include/final
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
|
|
@ -90,7 +90,7 @@ noinst_PROGRAMS = hello$(EXEEXT) dialog$(EXEEXT) input-dialog$(EXEEXT) \
|
||||||
transparent$(EXEEXT) keyboard$(EXEEXT) mouse$(EXEEXT) \
|
transparent$(EXEEXT) keyboard$(EXEEXT) mouse$(EXEEXT) \
|
||||||
timer$(EXEEXT) scrollview$(EXEEXT) windows$(EXEEXT) \
|
timer$(EXEEXT) scrollview$(EXEEXT) windows$(EXEEXT) \
|
||||||
menu$(EXEEXT) ui$(EXEEXT)
|
menu$(EXEEXT) ui$(EXEEXT)
|
||||||
subdir = test
|
subdir = examples
|
||||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||||
$(top_srcdir)/depcomp
|
$(top_srcdir)/depcomp
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
@ -374,7 +374,7 @@ top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal
|
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal
|
||||||
AM_CPPFLAGS = -Wall -Werror -I$(top_srcdir)/src
|
AM_CPPFLAGS = -I../include -I$(top_srcdir)/src -Wall -Werror
|
||||||
hello_SOURCES = hello.cpp
|
hello_SOURCES = hello.cpp
|
||||||
dialog_SOURCES = dialog.cpp
|
dialog_SOURCES = dialog.cpp
|
||||||
input_dialog_SOURCES = input-dialog.cpp
|
input_dialog_SOURCES = input-dialog.cpp
|
||||||
|
@ -410,9 +410,9 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
exit 1;; \
|
exit 1;; \
|
||||||
esac; \
|
esac; \
|
||||||
done; \
|
done; \
|
||||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
|
||||||
$(am__cd) $(top_srcdir) && \
|
$(am__cd) $(top_srcdir) && \
|
||||||
$(AUTOMAKE) --gnu test/Makefile
|
$(AUTOMAKE) --gnu examples/Makefile
|
||||||
.PRECIOUS: Makefile
|
.PRECIOUS: Makefile
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
@case '$?' in \
|
@case '$?' in \
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
const lDouble PI = 3.141592653589793238L;
|
const lDouble PI = 3.141592653589793238L;
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ Calc::Calc (FWidget* parent)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int x, y, n;
|
int x, y, n;
|
||||||
(key <= Three) ? n = 0 : n = 1;
|
( key <= Three ) ? n = 0 : n = 1;
|
||||||
x = (key + n) % 5 * 7 + 2;
|
x = (key + n) % 5 * 7 + 2;
|
||||||
y = (key + n) / 5 * 2 + 3;
|
y = (key + n) / 5 * 2 + 3;
|
||||||
btn->setGeometry(x, y, 5, 1);
|
btn->setGeometry(x, y, 5, 1);
|
||||||
|
@ -564,7 +564,7 @@ void Calc::onClose (FCloseEvent* ev)
|
||||||
FMessageBox::Yes,
|
FMessageBox::Yes,
|
||||||
FMessageBox::No );
|
FMessageBox::No );
|
||||||
|
|
||||||
(ret == FMessageBox::Yes) ? ev->accept() : ev->ignore();
|
( ret == FMessageBox::Yes ) ? ev->accept() : ev->ignore();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// File: os-choice.cpp
|
// File: os-choice.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fbutton.h"
|
#include <final/fbutton.h>
|
||||||
#include "fbuttongroup.h"
|
#include <final/fbuttongroup.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fradiobutton.h"
|
#include <final/fradiobutton.h>
|
||||||
#include "ftooltip.h"
|
#include <final/ftooltip.h>
|
||||||
|
|
||||||
// function prototypes
|
// function prototypes
|
||||||
void cb_quit (FWidget*, FWidget::data_ptr);
|
void cb_quit (FWidget*, FWidget::data_ptr);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: dialog.cpp
|
// File: dialog.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fbutton.h"
|
#include <final/fbutton.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
|
|
||||||
// function prototype
|
// function prototype
|
||||||
void cb_quit (FWidget*, FWidget::data_ptr);
|
void cb_quit (FWidget*, FWidget::data_ptr);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// File: hello.cpp
|
// File: hello.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
|
|
||||||
int main (int argc, char* argv[])
|
int main (int argc, char* argv[])
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// File: input-dialog.cpp
|
// File: input-dialog.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fbutton.h"
|
#include <final/fbutton.h>
|
||||||
#include "fbuttongroup.h"
|
#include <final/fbuttongroup.h>
|
||||||
#include "fcheckbox.h"
|
#include <final/fcheckbox.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flineedit.h"
|
#include <final/flineedit.h>
|
||||||
#include "fradiobutton.h"
|
#include <final/fradiobutton.h>
|
||||||
|
|
||||||
// function prototypes
|
// function prototypes
|
||||||
void cb_quit (FWidget*, FWidget::data_ptr);
|
void cb_quit (FWidget*, FWidget::data_ptr);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// File: keyboard.cpp
|
// File: keyboard.cpp
|
||||||
|
|
||||||
#include "final.h"
|
#include <final/final.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class keyboard
|
// class keyboard
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flistbox.h"
|
#include <final/flistbox.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
|
|
||||||
// Global application object
|
// Global application object
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flistview.h"
|
#include <final/flistview.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// File: mandelbrot.cpp
|
// File: mandelbrot.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class Mandelbrot
|
// class Mandelbrot
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// File: menu.cpp
|
// File: menu.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fcheckmenuitem.h"
|
#include <final/fcheckmenuitem.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fmenubar.h"
|
#include <final/fmenubar.h>
|
||||||
#include "fmenu.h"
|
#include <final/fmenu.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
#include "fradiomenuitem.h"
|
#include <final/fradiomenuitem.h>
|
||||||
#include "fstatusbar.h"
|
#include <final/fstatusbar.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: mouse.cpp
|
// File: mouse.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fvterm.h"
|
#include <final/fvterm.h>
|
||||||
|
|
||||||
|
|
||||||
// global FVTerm object
|
// global FVTerm object
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// File: scrollview.cpp
|
// File: scrollview.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fbutton.h"
|
#include <final/fbutton.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
#include "fscrollview.h"
|
#include <final/fscrollview.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class scrollview
|
// class scrollview
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fstring.h"
|
#include <final/fstring.h>
|
||||||
|
|
||||||
|
|
||||||
int main (int, char**)
|
int main (int, char**)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: term-attributes.cpp
|
// File: term-attributes.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fbutton.h"
|
#include <final/fbutton.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class AttribDlg
|
// class AttribDlg
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "ftermcap.h"
|
#include <final/ftermcap.h>
|
||||||
#include "fvterm.h"
|
#include <final/fvterm.h>
|
||||||
|
|
||||||
|
|
||||||
// global FVTerm object
|
// global FVTerm object
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// File: timer.cpp
|
// File: timer.cpp
|
||||||
|
|
||||||
#include "final.h"
|
#include <final/final.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class timer
|
// class timer
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// File: transparent.cpp
|
// File: transparent.cpp
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
#include "fstatusbar.h"
|
#include <final/fstatusbar.h>
|
||||||
#include "fstring.h"
|
#include <final/fstring.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "flistview.h"
|
#include <final/flistview.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -87,6 +87,10 @@ Treeview::Treeview (FWidget* parent)
|
||||||
//FObjectIterator iter_africa = listView->insert (egypt_line);
|
//FObjectIterator iter_africa = listView->insert (egypt_line);
|
||||||
listView->insert (egypt_line, iter_africa);
|
listView->insert (egypt_line, iter_africa);
|
||||||
|
|
||||||
|
FListViewItem* item_africa = static_cast<FListViewItem*>(*iter_africa);
|
||||||
|
FObjectIterator iter_egypt = item_africa->begin();
|
||||||
|
FListViewItem* item_egypt = static_cast<FListViewItem*>(*iter_egypt);
|
||||||
|
item_egypt = item_egypt;
|
||||||
|
|
||||||
// Quit button
|
// Quit button
|
||||||
FButton* Quit = new FButton (this);
|
FButton* Quit = new FButton (this);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "final.h"
|
#include <final/final.h>
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
#include "fswitch.h"
|
#include <final/fswitch.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class watch
|
// class watch
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include <final/fapplication.h>
|
||||||
#include "fdialog.h"
|
#include <final/fdialog.h>
|
||||||
#include "fdialoglistmenu.h"
|
#include <final/fdialoglistmenu.h>
|
||||||
#include "flabel.h"
|
#include <final/flabel.h>
|
||||||
#include "fmenubar.h"
|
#include <final/fmenubar.h>
|
||||||
#include "fmenu.h"
|
#include <final/fmenu.h>
|
||||||
#include "fmessagebox.h"
|
#include <final/fmessagebox.h>
|
||||||
#include "fstatusbar.h"
|
#include <final/fstatusbar.h>
|
||||||
#include "fstring.h"
|
#include <final/fstring.h>
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class smallWindow
|
// class smallWindow
|
||||||
|
@ -361,8 +361,8 @@ void Window::adjustSize()
|
||||||
h = getRootWidget()->getHeight();
|
h = getRootWidget()->getHeight();
|
||||||
X = int(1 + (w - 40) / 2);
|
X = int(1 + (w - 40) / 2);
|
||||||
Y = int(1 + (h - 22) / 2);
|
Y = int(1 + (h - 22) / 2);
|
||||||
dx = (w > 80) ? (w - 80) / 2 : 0;
|
dx = ( w > 80 ) ? (w - 80) / 2 : 0;
|
||||||
dy = (h > 24) ? (h - 24) / 2 : 0;
|
dy = ( h > 24 ) ? (h - 24) / 2 : 0;
|
||||||
|
|
||||||
if ( Y < 2)
|
if ( Y < 2)
|
||||||
Y = 2;
|
Y = 2;
|
||||||
|
@ -412,8 +412,8 @@ void Window::cb_createWindows (FWidget*, data_ptr)
|
||||||
iter = first = windows.begin();
|
iter = first = windows.begin();
|
||||||
w = getRootWidget()->getWidth();
|
w = getRootWidget()->getWidth();
|
||||||
h = getRootWidget()->getHeight();
|
h = getRootWidget()->getHeight();
|
||||||
dx = (w > 80) ? (w - 80) / 2 : 0;
|
dx = ( w > 80 ) ? (w - 80) / 2 : 0;
|
||||||
dy = (h > 24) ? (h - 24) / 2 : 0;
|
dy = ( h > 24 ) ? (h - 24) / 2 : 0;
|
||||||
|
|
||||||
while ( iter != windows.end() )
|
while ( iter != windows.end() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,9 +41,9 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "fevent.h"
|
#include "final/fevent.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifndef FBUTTON_H
|
#ifndef FBUTTON_H
|
||||||
#define FBUTTON_H
|
#define FBUTTON_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifndef FBUTTONGROUP_H
|
#ifndef FBUTTONGROUP_H
|
||||||
#define FBUTTONGROUP_H
|
#define FBUTTONGROUP_H
|
||||||
|
|
||||||
#include "fscrollview.h"
|
#include "final/fscrollview.h"
|
||||||
|
|
||||||
|
|
||||||
// class forward declaration
|
// class forward declaration
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#ifndef FC_H
|
#ifndef FC_H
|
||||||
#define FC_H
|
#define FC_H
|
||||||
|
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
|
|
||||||
// ascii sequences
|
// ascii sequences
|
||||||
#define ESC "\033" // Escape
|
#define ESC "\033" // Escape
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef FCHECKBOX_H
|
#ifndef FCHECKBOX_H
|
||||||
#define FCHECKBOX_H
|
#define FCHECKBOX_H
|
||||||
|
|
||||||
#include "ftogglebutton.h"
|
#include "final/ftogglebutton.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef FCHECKMENUITEM_H
|
#ifndef FCHECKMENUITEM_H
|
||||||
#define FCHECKMENUITEM_H
|
#define FCHECKMENUITEM_H
|
||||||
|
|
||||||
#include "fmenuitem.h"
|
#include "final/fmenuitem.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _SRC_FCONFIG_H
|
#ifndef _INCLUDE_FINAL_FCONFIG_H
|
||||||
#define _SRC_FCONFIG_H 1
|
#define _INCLUDE_FINAL_FCONFIG_H 1
|
||||||
|
|
||||||
/* src/fconfig.h. Generated automatically at end of configure. */
|
/* include/final/fconfig.h. Generated automatically at end of configure. */
|
||||||
/* config.h. Generated from config.h.in by configure. */
|
/* config.h. Generated from config.h.in by configure. */
|
||||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
@ -172,5 +172,5 @@
|
||||||
#define F_VERSION "0.3.0"
|
#define F_VERSION "0.3.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* once: _SRC_FCONFIG_H */
|
/* once: _INCLUDE_FINAL_FCONFIG_H */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,10 +33,10 @@
|
||||||
#ifndef FDIALOG_H
|
#ifndef FDIALOG_H
|
||||||
#define FDIALOG_H
|
#define FDIALOG_H
|
||||||
|
|
||||||
#include "fmenu.h"
|
#include "final/fmenu.h"
|
||||||
#include "fmenuitem.h"
|
#include "final/fmenuitem.h"
|
||||||
#include "ftooltip.h"
|
#include "final/ftooltip.h"
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#ifndef FDIALOGLISTMENU_H
|
#ifndef FDIALOGLISTMENU_H
|
||||||
#define FDIALOGLISTMENU_H
|
#define FDIALOGLISTMENU_H
|
||||||
|
|
||||||
#include "fmenu.h"
|
#include "final/fmenu.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -53,8 +53,8 @@
|
||||||
#ifndef FEVENT_H
|
#ifndef FEVENT_H
|
||||||
#define FEVENT_H
|
#define FEVENT_H
|
||||||
|
|
||||||
#include "fc.h"
|
#include "final/fc.h"
|
||||||
#include "fpoint.h"
|
#include "final/fpoint.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -48,14 +48,14 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fbutton.h"
|
#include "final/fbutton.h"
|
||||||
#include "fcheckbox.h"
|
#include "final/fcheckbox.h"
|
||||||
#include "fdialog.h"
|
#include "final/fdialog.h"
|
||||||
#include "flineedit.h"
|
#include "final/flineedit.h"
|
||||||
#include "flistbox.h"
|
#include "final/flistbox.h"
|
||||||
#include "fmessagebox.h"
|
#include "final/fmessagebox.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
#include "fterm.h"
|
#include "final/fterm.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
#define FLABEL_H
|
#define FLABEL_H
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "fwidget.h"
|
|
||||||
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
#ifndef FLINEEDIT_H
|
#ifndef FLINEEDIT_H
|
||||||
#define FLINEEDIT_H
|
#define FLINEEDIT_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
#include "flabel.h"
|
#include "final/flabel.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
#include "ftermbuffer.h"
|
#include "final/ftermbuffer.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
// class forward declaration
|
// class forward declaration
|
||||||
class FListView;
|
class FListView;
|
||||||
|
@ -288,7 +288,7 @@ inline FListViewItem* FListView::getCurrentItem()
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FListView::setTreeView (bool on)
|
inline bool FListView::setTreeView (bool on)
|
||||||
{ return tree_view = (on) ? true : false; }
|
{ return tree_view = ( on ) ? true : false; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FListView::setTreeView()
|
inline bool FListView::setTreeView()
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
#ifndef FMENU_H
|
#ifndef FMENU_H
|
||||||
#define FMENU_H
|
#define FMENU_H
|
||||||
|
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
#include "fmenubar.h"
|
#include "final/fmenubar.h"
|
||||||
#include "fmenulist.h"
|
#include "final/fmenulist.h"
|
||||||
#include "fmenuitem.h"
|
#include "final/fmenuitem.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
#ifndef FMENUBAR_H
|
#ifndef FMENUBAR_H
|
||||||
#define FMENUBAR_H
|
#define FMENUBAR_H
|
||||||
|
|
||||||
#include "fmenu.h"
|
#include "final/fmenu.h"
|
||||||
#include "fmenulist.h"
|
#include "final/fmenulist.h"
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#ifndef FMENUITEM_H
|
#ifndef FMENUITEM_H
|
||||||
#define FMENUITEM_H
|
#define FMENUITEM_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
// class forward declaration
|
// class forward declaration
|
||||||
class FDialog;
|
class FDialog;
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fmenuitem.h"
|
#include "final/fmenuitem.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -89,7 +89,7 @@ inline uInt FMenuList::getCount() const
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline FMenuItem* FMenuList::getItem (int index) const
|
inline FMenuItem* FMenuList::getItem (int index) const
|
||||||
{ return (index > 0) ? item_list[uInt(index - 1)] : 0; }
|
{ return ( index > 0 ) ? item_list[uInt(index - 1)] : 0; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline FMenuItem* FMenuList::getSelectedItem() const
|
inline FMenuItem* FMenuList::getSelectedItem() const
|
||||||
|
@ -109,7 +109,7 @@ inline void FMenuList::setSelectedItem (FMenuItem* menuitem)
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FMenuList::isSelected(int index) const
|
inline bool FMenuList::isSelected(int index) const
|
||||||
{ return (index > 0) ? item_list[uInt(index - 1)]->isSelected() : false; }
|
{ return ( index > 0 ) ? item_list[uInt(index - 1)]->isSelected() : false; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FMenuList::hasSelectedItem() const
|
inline bool FMenuList::hasSelectedItem() const
|
||||||
|
|
|
@ -40,9 +40,9 @@
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "fbutton.h"
|
#include "final/fbutton.h"
|
||||||
#include "fdialog.h"
|
#include "final/fdialog.h"
|
||||||
#include "fterm.h"
|
#include "final/fterm.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fc.h"
|
#include "final/fc.h"
|
||||||
#include "fevent.h"
|
#include "final/fevent.h"
|
||||||
#include "ftypes.h"
|
#include "final/ftypes.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <algorithm> // need for std::swap
|
#include <algorithm> // need for std::swap
|
||||||
|
|
||||||
#include "fc.h"
|
#include "final/fc.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifndef FPROGRESSBAR_H
|
#ifndef FPROGRESSBAR_H
|
||||||
#define FPROGRESSBAR_H
|
#define FPROGRESSBAR_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef FRADIOBUTTON_H
|
#ifndef FRADIOBUTTON_H
|
||||||
#define FRADIOBUTTON_H
|
#define FRADIOBUTTON_H
|
||||||
|
|
||||||
#include "ftogglebutton.h"
|
#include "final/ftogglebutton.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef FRADIOMENUITEM_H
|
#ifndef FRADIOMENUITEM_H
|
||||||
#define FRADIOMENUITEM_H
|
#define FRADIOMENUITEM_H
|
||||||
|
|
||||||
#include "fmenuitem.h"
|
#include "final/fmenuitem.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#define FRECT_H
|
#define FRECT_H
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "fpoint.h"
|
#include "final/fpoint.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifndef FSCROLLBAR_H
|
#ifndef FSCROLLBAR_H
|
||||||
#define FSCROLLBAR_H
|
#define FSCROLLBAR_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
#ifndef FSCROLLVIEW_H
|
#ifndef FSCROLLVIEW_H
|
||||||
#define FSCROLLVIEW_H
|
#define FSCROLLVIEW_H
|
||||||
|
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
|
|
||||||
// class forward declaration
|
// class forward declaration
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "ftypes.h"
|
#include "final/ftypes.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -331,11 +331,11 @@ class FString
|
||||||
// FString inline functions
|
// FString inline functions
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FString::isNull() const
|
inline bool FString::isNull() const
|
||||||
{ return ( ! string ); }
|
{ return ! string; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FString::isEmpty() const
|
inline bool FString::isEmpty() const
|
||||||
{ return (! string ) || (! *string); }
|
{ return ( ! string ) || ( ! *string ); }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline uInt FString::getLength() const
|
inline uInt FString::getLength() const
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef FSWITCH_H
|
#ifndef FSWITCH_H
|
||||||
#define FSWITCH_H
|
#define FSWITCH_H
|
||||||
|
|
||||||
#include "ftogglebutton.h"
|
#include "final/ftogglebutton.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef FTCAPMAP_H
|
#ifndef FTCAPMAP_H
|
||||||
#define FTCAPMAP_H
|
#define FTCAPMAP_H
|
||||||
|
|
||||||
#include "ftermcap.h"
|
#include "final/ftermcap.h"
|
||||||
|
|
||||||
static FTermcap::tcap_map term_caps[] =
|
static FTermcap::tcap_map term_caps[] =
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#ifndef FTERM_H
|
#ifndef FTERM_H
|
||||||
#define FTERM_H
|
#define FTERM_H
|
||||||
|
|
||||||
#include <fconfig.h>
|
#include "final/fconfig.h"
|
||||||
|
|
||||||
#ifdef F_HAVE_LIBGPM
|
#ifdef F_HAVE_LIBGPM
|
||||||
#include <gpm.h>
|
#include <gpm.h>
|
||||||
|
@ -67,14 +67,14 @@
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "fc.h"
|
#include "final/fc.h"
|
||||||
#include "fobject.h"
|
#include "final/fobject.h"
|
||||||
#include "foptiattr.h"
|
#include "final/foptiattr.h"
|
||||||
#include "foptimove.h"
|
#include "final/foptimove.h"
|
||||||
#include "fpoint.h"
|
#include "final/fpoint.h"
|
||||||
#include "frect.h"
|
#include "final/frect.h"
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
#include "ftermcap.h"
|
#include "final/ftermcap.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef F_HAVE_LIBGPM
|
#ifdef F_HAVE_LIBGPM
|
||||||
|
@ -511,11 +511,11 @@ inline int FTerm::getMaxColor()
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline const FString& FTerm::getAnswerbackString()
|
inline const FString& FTerm::getAnswerbackString()
|
||||||
{ return (answer_back) ? *answer_back : *fc::empty_string; }
|
{ return ( answer_back ) ? *answer_back : *fc::empty_string; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline const FString& FTerm::getSecDAString()
|
inline const FString& FTerm::getSecDAString()
|
||||||
{ return (sec_da) ? *sec_da : *fc::empty_string; }
|
{ return ( sec_da ) ? *sec_da : *fc::empty_string; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -620,7 +620,7 @@ inline bool FTerm::isUTF8_linux_terminal()
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FTerm::setCursorOptimisation (bool on)
|
inline bool FTerm::setCursorOptimisation (bool on)
|
||||||
{ return cursor_optimisation = (on) ? true : false; }
|
{ return cursor_optimisation = ( on ) ? true : false; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline void FTerm::setXTermDefaultColors (bool on)
|
inline void FTerm::setXTermDefaultColors (bool on)
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fvterm.h"
|
#include "final/fvterm.h"
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
#include "fstring.h"
|
#include "final/fstring.h"
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#ifndef FTOGGLEBUTTON_H
|
#ifndef FTOGGLEBUTTON_H
|
||||||
#define FTOGGLEBUTTON_H
|
#define FTOGGLEBUTTON_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
// class forward declaration
|
// class forward declaration
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -26,9 +26,10 @@
|
||||||
#ifndef FVTERM_H
|
#ifndef FVTERM_H
|
||||||
#define FVTERM_H
|
#define FVTERM_H
|
||||||
|
|
||||||
#include "fterm.h"
|
|
||||||
#include <sstream> // std::stringstream
|
#include <sstream> // std::stringstream
|
||||||
|
|
||||||
|
#include "final/fterm.h"
|
||||||
|
|
||||||
// Preprocessing handler macro
|
// Preprocessing handler macro
|
||||||
#define F_PREPROC_HANDLER(i,h) \
|
#define F_PREPROC_HANDLER(i,h) \
|
||||||
reinterpret_cast<FVTerm*>((i)) \
|
reinterpret_cast<FVTerm*>((i)) \
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fvterm.h"
|
#include "final/fvterm.h"
|
||||||
|
|
||||||
|
|
||||||
// Callback macros
|
// Callback macros
|
||||||
|
@ -697,7 +697,7 @@ inline bool FWidget::setDisable()
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FWidget::setVisibleCursor (bool on)
|
inline bool FWidget::setVisibleCursor (bool on)
|
||||||
{ return visible_cursor = (on) ? true : ((hideable) ? false : true); }
|
{ return visible_cursor = ( on ) ? true : (( hideable ) ? false : true); }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline bool FWidget::setVisibleCursor()
|
inline bool FWidget::setVisibleCursor()
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#ifndef FWINDOW_H
|
#ifndef FWINDOW_H
|
||||||
#define FWINDOW_H
|
#define FWINDOW_H
|
||||||
|
|
||||||
#include "fwidget.h"
|
#include "final/fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -4,6 +4,6 @@ if [ $# -gt 0 ]
|
||||||
then
|
then
|
||||||
eval cppcheck --enable=all "$@"
|
eval cppcheck --enable=all "$@"
|
||||||
else
|
else
|
||||||
eval cppcheck --enable=all ../src/ ../test/
|
eval cppcheck --enable=all ../include/final/ ../src/ ../examples/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LD_LIBRARY_PATH=../src/.libs/ LD_PRELOAD="/usr/lib64/libprofiler.so.0" CPUPROFILE=../test/.libs/ui.prof ../test/.libs/ui
|
LD_LIBRARY_PATH=../src/.libs/ LD_PRELOAD="/usr/lib64/libprofiler.so.0" CPUPROFILE=../examples/.libs/ui.prof ../examples/.libs/ui
|
||||||
pprof --gv ../test/.libs/ui ../test/.libs/ui.prof
|
pprof --gv ../examples/.libs/ui ../examples/.libs/ui.prof
|
||||||
rm -f ../test/.libs/ui.prof
|
rm -f ../examples/.libs/ui.prof
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
hte ../test/.libs/ui
|
hte ../examples/.libs/ui
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LD_LIBRARY_PATH=../src/.libs/ valgrind --tool=callgrind -v ../test/.libs/ui 2>/dev/null
|
LD_LIBRARY_PATH=../src/.libs/ valgrind --tool=callgrind -v ../examples/.libs/ui 2>/dev/null
|
||||||
kcachegrind
|
kcachegrind
|
||||||
rm -f callgrind.out.*
|
rm -f callgrind.out.*
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
PROG="ui"
|
PROG="ui"
|
||||||
|
|
||||||
LD_LIBRARY_PATH=../src/.libs/ ltrace -o ./$PROG.ltrace ../test/.libs/$PROG
|
LD_LIBRARY_PATH=../src/.libs/ ltrace -o ./$PROG.ltrace ../examples/.libs/$PROG
|
||||||
less ./$PROG.ltrace
|
less ./$PROG.ltrace
|
||||||
rm -f ./$PROG.ltrace ./gmon.out
|
rm -f ./$PROG.ltrace ./gmon.out
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR="$PWD"
|
DIR="$PWD"
|
||||||
cd ../test/.libs/ || exit
|
cd ../examples/.libs/ || exit
|
||||||
LD_LIBRARY_PATH=../../src/.libs/ ./ui
|
LD_LIBRARY_PATH=../../src/.libs/ ./ui
|
||||||
gprof ./ui >./profile.txt
|
gprof ./ui >./profile.txt
|
||||||
rm ./gmon.out
|
rm ./gmon.out
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
find ../src/ \
|
find ../src/ \
|
||||||
../test/ \
|
../include/final/ \
|
||||||
|
../examples/ \
|
||||||
-regextype posix-egrep \
|
-regextype posix-egrep \
|
||||||
-regex ".*\.(cpp|h)$" \
|
-regex ".*\.(cpp|h)$" \
|
||||||
-exec sed -i 's/ *$//' "{}" \;
|
-exec sed -i 's/ *$//' "{}" \;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
strace -c ../test/.libs/ui
|
strace -c ../examples/.libs/ui
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
PROG="../test/.libs/ui"
|
PROG="../examples/.libs/ui"
|
||||||
else
|
else
|
||||||
PROG="$1"
|
PROG="$1"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
luit -encoding POSIX ../test/ui
|
luit -encoding POSIX ../examples/ui
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
SUBDIRS = fonts
|
SUBDIRS = fonts
|
||||||
|
|
||||||
AM_CPPFLAGS = -Wall -Werror
|
AM_CPPFLAGS = -I../include -Wall -Werror
|
||||||
|
|
||||||
lib_LTLIBRARIES = libfinal.la
|
lib_LTLIBRARIES = libfinal.la
|
||||||
|
|
||||||
|
@ -54,52 +54,53 @@ libfinal_la_LDFLAGS = -version-info @SO_VERSION@
|
||||||
finalcutincludedir = $(includedir)/final
|
finalcutincludedir = $(includedir)/final
|
||||||
|
|
||||||
finalcutinclude_HEADERS = \
|
finalcutinclude_HEADERS = \
|
||||||
fapplication.h \
|
../include/final/fapplication.h \
|
||||||
fbutton.h \
|
../include/final/fbutton.h \
|
||||||
fbuttongroup.h \
|
../include/final/fbuttongroup.h \
|
||||||
fcharmap.h \
|
../include/final/fcharmap.h \
|
||||||
fcheckbox.h \
|
../include/final/fcheckbox.h \
|
||||||
fconfig.h \
|
../include/final/fconfig.h \
|
||||||
fswitch.h \
|
../include/final/fswitch.h \
|
||||||
fdialog.h \
|
../include/final/fdialog.h \
|
||||||
fc.h \
|
../include/final/fc.h \
|
||||||
fevent.h \
|
../include/final/ftypes.h \
|
||||||
ffiledialog.h \
|
../include/final/fevent.h \
|
||||||
final.h \
|
../include/final/ffiledialog.h \
|
||||||
fkey_map.h \
|
../include/final/final.h \
|
||||||
flabel.h \
|
../include/final/fkey_map.h \
|
||||||
flineedit.h \
|
../include/final/flabel.h \
|
||||||
flistbox.h \
|
../include/final/flineedit.h \
|
||||||
flistview.h \
|
../include/final/flistbox.h \
|
||||||
fmenu.h \
|
../include/final/flistview.h \
|
||||||
fdialoglistmenu.h \
|
../include/final/fmenu.h \
|
||||||
fmenubar.h \
|
../include/final/fdialoglistmenu.h \
|
||||||
fmenuitem.h \
|
../include/final/fmenubar.h \
|
||||||
fradiomenuitem.h \
|
../include/final/fmenuitem.h \
|
||||||
fcheckmenuitem.h \
|
../include/final/fradiomenuitem.h \
|
||||||
fmenulist.h \
|
../include/final/fcheckmenuitem.h \
|
||||||
fmessagebox.h \
|
../include/final/fmenulist.h \
|
||||||
ftooltip.h \
|
../include/final/fmessagebox.h \
|
||||||
fobject.h \
|
../include/final/ftooltip.h \
|
||||||
fpoint.h \
|
../include/final/fobject.h \
|
||||||
foptiattr.h \
|
../include/final/fpoint.h \
|
||||||
foptimove.h \
|
../include/final/foptiattr.h \
|
||||||
ftermbuffer.h \
|
../include/final/foptimove.h \
|
||||||
fprogressbar.h \
|
../include/final/ftermbuffer.h \
|
||||||
fradiobutton.h \
|
../include/final/fprogressbar.h \
|
||||||
frect.h \
|
../include/final/fradiobutton.h \
|
||||||
fscrollbar.h \
|
../include/final/frect.h \
|
||||||
fscrollview.h \
|
../include/final/fscrollbar.h \
|
||||||
fstatusbar.h \
|
../include/final/fscrollview.h \
|
||||||
fstring.h \
|
../include/final/fstatusbar.h \
|
||||||
ftcap_map.h \
|
../include/final/fstring.h \
|
||||||
ftermcap.h \
|
../include/final/ftcap_map.h \
|
||||||
fterm.h \
|
../include/final/ftermcap.h \
|
||||||
fvterm.h \
|
../include/final/fterm.h \
|
||||||
ftextview.h \
|
../include/final/fvterm.h \
|
||||||
ftogglebutton.h \
|
../include/final/ftextview.h \
|
||||||
fwidget.h \
|
../include/final/ftogglebutton.h \
|
||||||
fwindow.h
|
../include/final/fwidget.h \
|
||||||
|
../include/final/fwindow.h
|
||||||
|
|
||||||
#uninstall:
|
#uninstall:
|
||||||
# rm -R -f $(includedir)/final
|
# rm -R -f $(includedir)/final
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
# This is where make install will install the library
|
# This is where make install will install the library
|
||||||
VERSION = "0.3.0"
|
VERSION = "0.3.0"
|
||||||
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
||||||
LIBDIR = /usr/local/lib64
|
LIBDIR = /usr/local/lib
|
||||||
INCLUDEDIR = /usr/local/include/final
|
INCLUDEDIR1 = ../include/final
|
||||||
|
INCLUDEDIR2 = /usr/local/include/final
|
||||||
INCLUDE_HEADERS = \
|
INCLUDE_HEADERS = \
|
||||||
fapplication.h \
|
fapplication.h \
|
||||||
fbuttongroup.h \
|
fbuttongroup.h \
|
||||||
|
@ -53,7 +54,7 @@ CXX = clang++
|
||||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) $(VER) $(GPM) -march=x86-64 -frtti -fexceptions
|
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) $(VER) $(GPM) -march=x86-64 -frtti -fexceptions
|
||||||
MAKEFILE = -f Makefile.clang
|
MAKEFILE = -f Makefile.clang
|
||||||
LDFLAGS = $(TERMCAP) -lgpm
|
LDFLAGS = $(TERMCAP) -lgpm
|
||||||
INCLUDES = -I./
|
INCLUDES = -I../include
|
||||||
GPM = -D F_HAVE_LIBGPM
|
GPM = -D F_HAVE_LIBGPM
|
||||||
VER = -D F_VERSION=$(VERSION)
|
VER = -D F_VERSION=$(VERSION)
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
@ -133,19 +134,19 @@ install: $(LIB)
|
||||||
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
ldconfig
|
ldconfig
|
||||||
mkdir -p $(INCLUDEDIR)
|
mkdir -p $(INCLUDEDIR2)
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
install -m 644 $$h $(INCLUDEDIR)/$$h; \
|
install -m 644 $(INCLUDEDIR1)/$$h $(INCLUDEDIR2)/$$h; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: $(INCLUDE_HEADERS)
|
uninstall: $(OBJS)
|
||||||
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
$(RM) $(INCLUDEDIR)/$$h; \
|
$(RM) $(INCLUDEDIR2)/$$h; \
|
||||||
done
|
done
|
||||||
rmdir $(INCLUDEDIR)
|
rmdir $(INCLUDEDIR2)
|
||||||
|
|
||||||
.PHONY: clean dep
|
.PHONY: clean dep
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
# This is where make install will install the library
|
# This is where make install will install the library
|
||||||
VERSION = "0.3.0"
|
VERSION = "0.3.0"
|
||||||
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
MAJOR := $(shell echo ${VERSION} | cut -d. -f1)
|
||||||
LIBDIR = /usr/local/lib64
|
LIBDIR = /usr/local/lib
|
||||||
INCLUDEDIR = /usr/local/include/final
|
INCLUDEDIR1 = ../include/final
|
||||||
|
INCLUDEDIR2 = /usr/local/include/final
|
||||||
INCLUDE_HEADERS = \
|
INCLUDE_HEADERS = \
|
||||||
fapplication.h \
|
fapplication.h \
|
||||||
fbuttongroup.h \
|
fbuttongroup.h \
|
||||||
|
@ -53,7 +54,7 @@ CXX = g++
|
||||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) $(VER) $(GPM) -march=x86-64 -frtti -fexceptions
|
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) $(VER) $(GPM) -march=x86-64 -frtti -fexceptions
|
||||||
MAKEFILE = -f Makefile.gcc
|
MAKEFILE = -f Makefile.gcc
|
||||||
LDFLAGS = $(TERMCAP) -lgpm
|
LDFLAGS = $(TERMCAP) -lgpm
|
||||||
INCLUDES = -I./
|
INCLUDES = -I../include
|
||||||
GPM = -D F_HAVE_LIBGPM
|
GPM = -D F_HAVE_LIBGPM
|
||||||
VER = -D F_VERSION=$(VERSION)
|
VER = -D F_VERSION=$(VERSION)
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
@ -133,19 +134,19 @@ install: $(LIB)
|
||||||
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
ln -s -f $(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR)
|
||||||
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
ln -s -f $(LIB).$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
ldconfig
|
ldconfig
|
||||||
mkdir -p $(INCLUDEDIR)
|
mkdir -p $(INCLUDEDIR2)
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
install -m 644 $$h $(INCLUDEDIR)/$$h; \
|
install -m 644 $(INCLUDEDIR1)/$$h $(INCLUDEDIR2)/$$h; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: $(INCLUDE_HEADERS)
|
uninstall: $(OBJS)
|
||||||
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
$(RM) $(LIBDIR)/$(LIB).$(VERSION) $(LIBDIR)/libfinal.so.$(MAJOR) $(LIBDIR)/libfinal.so
|
||||||
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
@list='$(INCLUDE_HEADERS)'; for h in $$list; \
|
||||||
do \
|
do \
|
||||||
$(RM) $(INCLUDEDIR)/$$h; \
|
$(RM) $(INCLUDEDIR2)/$$h; \
|
||||||
done
|
done
|
||||||
rmdir $(INCLUDEDIR)
|
rmdir $(INCLUDEDIR2)
|
||||||
|
|
||||||
.PHONY: clean dep
|
.PHONY: clean dep
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -373,7 +373,7 @@ top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
SUBDIRS = fonts
|
SUBDIRS = fonts
|
||||||
AM_CPPFLAGS = -Wall -Werror
|
AM_CPPFLAGS = -I../include -Wall -Werror
|
||||||
lib_LTLIBRARIES = libfinal.la
|
lib_LTLIBRARIES = libfinal.la
|
||||||
libfinal_la_SOURCES = \
|
libfinal_la_SOURCES = \
|
||||||
fstring.cpp \
|
fstring.cpp \
|
||||||
|
@ -419,52 +419,53 @@ libfinal_la_SOURCES = \
|
||||||
libfinal_la_LDFLAGS = -version-info @SO_VERSION@
|
libfinal_la_LDFLAGS = -version-info @SO_VERSION@
|
||||||
finalcutincludedir = $(includedir)/final
|
finalcutincludedir = $(includedir)/final
|
||||||
finalcutinclude_HEADERS = \
|
finalcutinclude_HEADERS = \
|
||||||
fapplication.h \
|
../include/final/fapplication.h \
|
||||||
fbutton.h \
|
../include/final/fbutton.h \
|
||||||
fbuttongroup.h \
|
../include/final/fbuttongroup.h \
|
||||||
fcharmap.h \
|
../include/final/fcharmap.h \
|
||||||
fcheckbox.h \
|
../include/final/fcheckbox.h \
|
||||||
fconfig.h \
|
../include/final/fconfig.h \
|
||||||
fswitch.h \
|
../include/final/fswitch.h \
|
||||||
fdialog.h \
|
../include/final/fdialog.h \
|
||||||
fc.h \
|
../include/final/fc.h \
|
||||||
fevent.h \
|
../include/final/ftypes.h \
|
||||||
ffiledialog.h \
|
../include/final/fevent.h \
|
||||||
final.h \
|
../include/final/ffiledialog.h \
|
||||||
fkey_map.h \
|
../include/final/final.h \
|
||||||
flabel.h \
|
../include/final/fkey_map.h \
|
||||||
flineedit.h \
|
../include/final/flabel.h \
|
||||||
flistbox.h \
|
../include/final/flineedit.h \
|
||||||
flistview.h \
|
../include/final/flistbox.h \
|
||||||
fmenu.h \
|
../include/final/flistview.h \
|
||||||
fdialoglistmenu.h \
|
../include/final/fmenu.h \
|
||||||
fmenubar.h \
|
../include/final/fdialoglistmenu.h \
|
||||||
fmenuitem.h \
|
../include/final/fmenubar.h \
|
||||||
fradiomenuitem.h \
|
../include/final/fmenuitem.h \
|
||||||
fcheckmenuitem.h \
|
../include/final/fradiomenuitem.h \
|
||||||
fmenulist.h \
|
../include/final/fcheckmenuitem.h \
|
||||||
fmessagebox.h \
|
../include/final/fmenulist.h \
|
||||||
ftooltip.h \
|
../include/final/fmessagebox.h \
|
||||||
fobject.h \
|
../include/final/ftooltip.h \
|
||||||
fpoint.h \
|
../include/final/fobject.h \
|
||||||
foptiattr.h \
|
../include/final/fpoint.h \
|
||||||
foptimove.h \
|
../include/final/foptiattr.h \
|
||||||
ftermbuffer.h \
|
../include/final/foptimove.h \
|
||||||
fprogressbar.h \
|
../include/final/ftermbuffer.h \
|
||||||
fradiobutton.h \
|
../include/final/fprogressbar.h \
|
||||||
frect.h \
|
../include/final/fradiobutton.h \
|
||||||
fscrollbar.h \
|
../include/final/frect.h \
|
||||||
fscrollview.h \
|
../include/final/fscrollbar.h \
|
||||||
fstatusbar.h \
|
../include/final/fscrollview.h \
|
||||||
fstring.h \
|
../include/final/fstatusbar.h \
|
||||||
ftcap_map.h \
|
../include/final/fstring.h \
|
||||||
ftermcap.h \
|
../include/final/ftcap_map.h \
|
||||||
fterm.h \
|
../include/final/ftermcap.h \
|
||||||
fvterm.h \
|
../include/final/fterm.h \
|
||||||
ftextview.h \
|
../include/final/fvterm.h \
|
||||||
ftogglebutton.h \
|
../include/final/ftextview.h \
|
||||||
fwidget.h \
|
../include/final/ftogglebutton.h \
|
||||||
fwindow.h
|
../include/final/fwidget.h \
|
||||||
|
../include/final/fwindow.h
|
||||||
|
|
||||||
all: all-recursive
|
all: all-recursive
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "fmenu.h"
|
#include "final/fmenu.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
#include "fwindow.h"
|
#include "final/fwindow.h"
|
||||||
|
|
||||||
// global application object
|
// global application object
|
||||||
static FApplication* rootObj = 0;
|
static FApplication* rootObj = 0;
|
||||||
|
@ -418,7 +418,7 @@ void FApplication::cmd_options ()
|
||||||
int FApplication::gpmEvent (bool clear)
|
int FApplication::gpmEvent (bool clear)
|
||||||
{
|
{
|
||||||
register int result;
|
register int result;
|
||||||
register int max = (gpm_fd > stdin_no) ? gpm_fd : stdin_no;
|
register int max = ( gpm_fd > stdin_no ) ? gpm_fd : stdin_no;
|
||||||
fd_set ifds;
|
fd_set ifds;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
|
@ -463,7 +463,7 @@ inline bool FApplication::KeyPressed()
|
||||||
if ( FD_ISSET(stdin_no, &ifds) )
|
if ( FD_ISSET(stdin_no, &ifds) )
|
||||||
FD_CLR (stdin_no, &ifds);
|
FD_CLR (stdin_no, &ifds);
|
||||||
|
|
||||||
return (result > 0);
|
return ( result > 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -1673,7 +1673,7 @@ void FApplication::processMouseEvent()
|
||||||
{
|
{
|
||||||
// determine the widget at the current click position
|
// determine the widget at the current click position
|
||||||
FWidget* child = childWidgetAt (window, mouse_position);
|
FWidget* child = childWidgetAt (window, mouse_position);
|
||||||
clicked_widget = (child != 0) ? child : window;
|
clicked_widget = ( child != 0 ) ? child : window;
|
||||||
}
|
}
|
||||||
|
|
||||||
// unset the move/size mode
|
// unset the move/size mode
|
||||||
|
@ -1996,5 +1996,5 @@ bool FApplication::processNextEvent()
|
||||||
sendQueuedEvents();
|
sendQueuedEvents();
|
||||||
num_events += processTimerEvent();
|
num_events += processTimerEvent();
|
||||||
|
|
||||||
return (num_events > 0);
|
return ( num_events > 0 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: fbutton.cpp
|
// File: fbutton.cpp
|
||||||
// Provides: class FButton
|
// Provides: class FButton
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "fbutton.h"
|
#include "final/fbutton.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// File: fbuttongroup.cpp
|
// File: fbuttongroup.cpp
|
||||||
// Provides: class FButtonGroup
|
// Provides: class FButtonGroup
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "fbuttongroup.h"
|
#include "final/fbuttongroup.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
#include "ftogglebutton.h"
|
#include "final/ftogglebutton.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// File: fcheckbox.cpp
|
// File: fcheckbox.cpp
|
||||||
// Provides: class FCheckBox
|
// Provides: class FCheckBox
|
||||||
|
|
||||||
#include "fcheckbox.h"
|
#include "final/fcheckbox.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// File: fcheckmenuitem.cpp
|
// File: fcheckmenuitem.cpp
|
||||||
// Provides: class FCheckMenuItem
|
// Provides: class FCheckMenuItem
|
||||||
|
|
||||||
#include "fcheckmenuitem.h"
|
#include "final/fcheckmenuitem.h"
|
||||||
#include "fmenu.h"
|
#include "final/fmenu.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class FCheckMenuItem
|
// class FCheckMenuItem
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: fdialog.cpp
|
// File: fdialog.cpp
|
||||||
// Provides: class FDialog
|
// Provides: class FDialog
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "fdialog.h"
|
#include "final/fdialog.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Provides: class FDialogListMenu
|
// Provides: class FDialogListMenu
|
||||||
|
|
||||||
|
|
||||||
#include "fdialoglistmenu.h"
|
#include "final/fdialoglistmenu.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class FDialogListMenu
|
// class FDialogListMenu
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "fevent.h"
|
#include "final/fevent.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -185,13 +185,13 @@ FFocusEvent::~FFocusEvent() // destructor
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool FFocusEvent::gotFocus() const
|
bool FFocusEvent::gotFocus() const
|
||||||
{
|
{
|
||||||
return (type() == fc::FocusIn_Event);
|
return ( type() == fc::FocusIn_Event );
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
bool FFocusEvent::lostFocus() const
|
bool FFocusEvent::lostFocus() const
|
||||||
{
|
{
|
||||||
return (type() == fc::FocusOut_Event);
|
return ( type() == fc::FocusOut_Event );
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "ffiledialog.h"
|
#include "final/ffiledialog.h"
|
||||||
|
|
||||||
|
|
||||||
// non-member functions
|
// non-member functions
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: flabel.cpp
|
// File: flabel.cpp
|
||||||
// Provides: class FLabel
|
// Provides: class FLabel
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "flabel.h"
|
#include "final/flabel.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// File: flineedit.cpp
|
// File: flineedit.cpp
|
||||||
// Provides: class FLineEdit
|
// Provides: class FLineEdit
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "flineedit.h"
|
#include "final/flineedit.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "flistbox.h"
|
#include "final/flistbox.h"
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "fapplication.h"
|
#include "final/fapplication.h"
|
||||||
#include "flistview.h"
|
#include "final/flistview.h"
|
||||||
#include "fscrollbar.h"
|
#include "final/fscrollbar.h"
|
||||||
#include "fstatusbar.h"
|
#include "final/fstatusbar.h"
|
||||||
#include "ftermbuffer.h"
|
#include "final/ftermbuffer.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class FListViewItem
|
// class FListViewItem
|
||||||
|
@ -1396,7 +1396,7 @@ void FListView::drawListLine ( const FListViewItem* item
|
||||||
uInt i;
|
uInt i;
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
print (element_str[i]);
|
*this << element_str[i];
|
||||||
|
|
||||||
for (; i < uInt(getWidth() - nf_offset - 2); i++)
|
for (; i < uInt(getWidth() - nf_offset - 2); i++)
|
||||||
print (' ');
|
print (' ');
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue