Type definition exported into a separate header file

This commit is contained in:
Markus Gans 2017-09-07 23:35:24 +02:00
parent 92af0e811c
commit f941da79e7
8 changed files with 47 additions and 35 deletions

View File

@ -1,4 +1,7 @@
2017-91-03 Markus Gans <guru.mail@muenster.de>
2017-09-07 Markus Gans <guru.mail@muenster.de>
* Type definition exported into a separate header file
2017-09-03 Markus Gans <guru.mail@muenster.de>
* Fixes wrong maximum line width in FListView
2017-08-26 Markus Gans <guru.mail@muenster.de>

View File

@ -13,6 +13,17 @@
#include "fstring.h"
// ascii sequences
#define ESC "\033" // Escape
#define CSI ESC "[" // Control sequence introducer (7-bit)
#define ENQ "\005" // Enquiry
#define BEL "\007" // Bell (ctrlg)
#define BS "\010" // Backspace
#define SO "\016" // Shift out (alternative character set)
#define SI "\017" // Shift in (regular character set)
#define OSC ESC "]" // Operating system command (7-bit)
#define SECDA ESC "[>c" // Secondary Device Attributes
//----------------------------------------------------------------------
// class fc

View File

@ -20,7 +20,7 @@
#include "fc.h"
#include "fevent.h"
#include "ftypes.h"
#define null NULL

View File

@ -16,11 +16,7 @@
#include <assert.h>
#include <term.h> // need for tparm
// ascii sequences
#define ESC "\033" // Escape
#define CSI ESC "[" // Control sequence introducer (7-bit)
typedef unsigned char uChar;
#include "fc.h"
//----------------------------------------------------------------------

View File

@ -11,8 +11,6 @@
#ifndef FSTRING_H
#define FSTRING_H
#include <sys/types.h>
#include <langinfo.h>
#include <stdint.h>
@ -33,23 +31,7 @@
#include <string>
#include <vector>
typedef unsigned char uChar;
typedef unsigned int uInt;
typedef unsigned long uLong;
typedef uint8_t uInt8;
typedef uint16_t uInt16;
typedef uint32_t uInt32;
typedef uint64_t uInt64;
typedef signed int sInt;
typedef signed long sLong;
typedef int8_t sInt8;
typedef int16_t sInt16;
typedef int32_t sInt32;
typedef int64_t sInt64;
typedef long double lDouble;
#include "ftypes.h"
//----------------------------------------------------------------------

View File

@ -81,15 +81,6 @@
#undef buttons // from term.h
#endif
// ascii sequences
#define ENQ "\005" // Enquiry
#define BEL "\007" // Bell (ctrlg)
#define BS "\010" // Backspace
#define SO "\016" // Shift out (alternative character set)
#define SI "\017" // Shift in (regular character set)
#define OSC ESC "]" // Operating system command (7-bit)
#define SECDA ESC "[>c" // Secondary Device Attributes
//----------------------------------------------------------------------
// class FTerm

26
src/ftypes.h Normal file
View File

@ -0,0 +1,26 @@
// File: ftypes.h
#ifndef FTYPES_H
#define FTYPES_H
#include <sys/types.h>
typedef unsigned char uChar;
typedef unsigned int uInt;
typedef unsigned long uLong;
typedef uint8_t uInt8;
typedef uint16_t uInt16;
typedef uint32_t uInt32;
typedef uint64_t uInt64;
typedef signed int sInt;
typedef signed long sLong;
typedef int8_t sInt8;
typedef int16_t sInt16;
typedef int32_t sInt32;
typedef int64_t sInt64;
typedef long double lDouble;
#endif // FTYPES_H

View File

@ -75,6 +75,9 @@ Treeview::Treeview (FWidget* parent)
listView->insert (line);
}
// Enable the tree view
listView->setTreeView();
// Quit button
FButton* Quit = new FButton (this);
Quit->setGeometry(24, 16, 10, 1);