Type definition exported into a separate header file
This commit is contained in:
parent
92af0e811c
commit
f941da79e7
|
@ -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
|
* Fixes wrong maximum line width in FListView
|
||||||
|
|
||||||
2017-08-26 Markus Gans <guru.mail@muenster.de>
|
2017-08-26 Markus Gans <guru.mail@muenster.de>
|
||||||
|
|
11
src/fc.h
11
src/fc.h
|
@ -13,6 +13,17 @@
|
||||||
|
|
||||||
#include "fstring.h"
|
#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 (ctrl‐g)
|
||||||
|
#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
|
// class fc
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include "fc.h"
|
#include "fc.h"
|
||||||
#include "fevent.h"
|
#include "fevent.h"
|
||||||
|
#include "ftypes.h"
|
||||||
|
|
||||||
#define null NULL
|
#define null NULL
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <term.h> // need for tparm
|
#include <term.h> // need for tparm
|
||||||
|
|
||||||
// ascii sequences
|
#include "fc.h"
|
||||||
#define ESC "\033" // Escape
|
|
||||||
#define CSI ESC "[" // Control sequence introducer (7-bit)
|
|
||||||
|
|
||||||
typedef unsigned char uChar;
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -11,8 +11,6 @@
|
||||||
#ifndef FSTRING_H
|
#ifndef FSTRING_H
|
||||||
#define FSTRING_H
|
#define FSTRING_H
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include <langinfo.h>
|
#include <langinfo.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -33,23 +31,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "ftypes.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;
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -81,15 +81,6 @@
|
||||||
#undef buttons // from term.h
|
#undef buttons // from term.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ascii sequences
|
|
||||||
#define ENQ "\005" // Enquiry
|
|
||||||
#define BEL "\007" // Bell (ctrl‐g)
|
|
||||||
#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
|
// class FTerm
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -75,6 +75,9 @@ Treeview::Treeview (FWidget* parent)
|
||||||
listView->insert (line);
|
listView->insert (line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable the tree view
|
||||||
|
listView->setTreeView();
|
||||||
|
|
||||||
// Quit button
|
// Quit button
|
||||||
FButton* Quit = new FButton (this);
|
FButton* Quit = new FButton (this);
|
||||||
Quit->setGeometry(24, 16, 10, 1);
|
Quit->setGeometry(24, 16, 10, 1);
|
||||||
|
|
Loading…
Reference in New Issue