summaryrefslogtreecommitdiff
path: root/fluid/ExternalCodeEditor_UNIX.h
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-08 15:52:15 +0100
committerMatthias Melcher <git@matthiasm.com>2021-12-08 15:52:15 +0100
commit16dae3ea063ae134b8b87ca199575e904dfbb7d4 (patch)
treeff0ce9e635bb39f49bfcce2c5e7fe099334a0d15 /fluid/ExternalCodeEditor_UNIX.h
parent2d18c6f650c0001319c8883f8deb819d12984ac0 (diff)
Fluid: restructuring and commenting.
tl;dr : making Fluid maintainable, no changes in code execution and logic. This is a pretty extensive restructuring of the Fluid source tree. It was neccessary because source and header files were getting much too big to handle. Many source files had no header, and many headers declared functions that were in diffrent source files. Reorganized much of the include statements. Added comments to some of the files. Added Doxygen configuration file for standalone Fluid docs. Tested everything by rebuilding Fluid .fl designs with the resorted version of Fluid.
Diffstat (limited to 'fluid/ExternalCodeEditor_UNIX.h')
-rw-r--r--fluid/ExternalCodeEditor_UNIX.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fluid/ExternalCodeEditor_UNIX.h b/fluid/ExternalCodeEditor_UNIX.h
index d366a95c1..186a5b5ec 100644
--- a/fluid/ExternalCodeEditor_UNIX.h
+++ b/fluid/ExternalCodeEditor_UNIX.h
@@ -7,24 +7,29 @@
#ifndef _EXTCODEEDITOR_H
#define _EXTCODEEDITOR_H
+#include <FL/Fl.H>
+
#include <errno.h> /* errno */
#include <string.h> /* strerror() */
-
#include <sys/types.h> /* stat().. */
#include <sys/stat.h>
#include <unistd.h>
+// ---- ExternalCodeEditor declaration
+
class ExternalCodeEditor {
int pid_;
time_t file_mtime_; // last modify time of the file (used to determine if file changed)
size_t file_size_; // last file size (used to determine if changed)
const char *filename_;
+
protected:
void kill_editor();
const char *create_tmpdir();
const char *tmp_filename();
int start_editor(const char *cmd, const char *filename);
void set_filename(const char *val);
+
public:
ExternalCodeEditor();
~ExternalCodeEditor();