antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/flshell Makefile args.cc args.hh call...


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/flshell Makefile args.cc args.hh call...
Date: Sat, 12 Aug 2006 03:40:51 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 06/08/12 03:40:51

Modified files:
        flshell        : Makefile args.cc args.hh callbacks.cc 
                         callbacks.hh flshell.hh main.cc 
Added files:
        flshell        : button.cc button.hh label.cc label.hh update.cc 
                         update.hh 

Log message:
        Added clock and updated text output.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/Makefile?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/args.cc?cvsroot=antiright&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/args.hh?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/callbacks.cc?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/callbacks.hh?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/flshell.hh?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/main.cc?cvsroot=antiright&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/button.cc?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/button.hh?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/label.cc?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/label.hh?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/update.cc?cvsroot=antiright&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/antiright/flshell/update.hh?cvsroot=antiright&rev=1.1

Patches:
Index: Makefile
===================================================================
RCS file: /sources/antiright/antiright/flshell/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Makefile    24 Jul 2006 21:53:15 -0000      1.1
+++ Makefile    12 Aug 2006 03:40:51 -0000      1.2
@@ -2,15 +2,13 @@
 .include "../config.mk"
 
 CXXFLAGS+=`fltk-config --cxxflags`
+LDFLAGS+=-L../libantiright -lantiright
 LDFLAGS+=`fltk-config --ldflags`
 
-objects=main.o args.o callbacks.o
+objects=main.o args.o callbacks.o label.o update.o button.o
 all: ${objects}
        c++ -o flshell ${objects} ${LDFLAGS}
 
-main.o: main.cc
-       c++ -c main.cc ${CXXFLAGS}
-
 clean:
        rm -f flshell *.o
 

Index: args.cc
===================================================================
RCS file: /sources/antiright/antiright/flshell/args.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- args.cc     8 Aug 2006 20:17:51 -0000       1.2
+++ args.cc     12 Aug 2006 03:40:51 -0000      1.3
@@ -1,3 +1,26 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
 #include "flshell.hh"
 
 namespace flsh
@@ -30,17 +53,24 @@
 
                switch(arg)
                {
+      case 'C':
+       {
+         Fl_Clock *clock;
+         clock=new 
Fl_Clock(0,0,globals::widget_width,globals::widget_height*(globals::rows-globals::row_counter));
+         globals::row_counter=globals::rows;
+       }
+       break;
                        case 'h':
                                cout    << "Usage:\n"
                                        << "flshell -[bhr] [button commands 
...]\n";
                                exit(0);
                                break;
-                       case 'b':
-                               globals::use_border=(Bool)atoi(option);
-                               break;
                        case 'r':
                                row_globals::rows=atoi(option);
                                break;
+      case 'u':
+       updater_argument(option);
+       break;
                }
        }
 

Index: args.hh
===================================================================
RCS file: /sources/antiright/antiright/flshell/args.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- args.hh     24 Jul 2006 21:53:15 -0000      1.1
+++ args.hh     12 Aug 2006 03:40:51 -0000      1.2
@@ -1,3 +1,26 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
 #ifndef ARGS_HH
 #define ARGS_HH
 

Index: callbacks.cc
===================================================================
RCS file: /sources/antiright/antiright/flshell/callbacks.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- callbacks.cc        24 Jul 2006 21:53:15 -0000      1.1
+++ callbacks.cc        12 Aug 2006 03:40:51 -0000      1.2
@@ -1,3 +1,26 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
 #include "flshell.hh"
 
 namespace flsh
@@ -6,7 +29,13 @@
        void
        callbacks::system_cb(Fl_Widget* widget, void *data)
        {
-               system((const char*)data);
+               antiright_system((char*)data);
+       }
+       void
+       callbacks::system_label_cb(void *data)
+       {
+               puts("TICK");
+               Fl::repeat_timeout(1.0, callbacks::system_label_cb, 
(void*)data);
        }
 
        void

Index: callbacks.hh
===================================================================
RCS file: /sources/antiright/antiright/flshell/callbacks.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- callbacks.hh        24 Jul 2006 21:53:15 -0000      1.1
+++ callbacks.hh        12 Aug 2006 03:40:51 -0000      1.2
@@ -1,3 +1,25 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
 
 #ifndef CALLBACKS_HH
 #define CALLBACKS_HH
@@ -9,6 +31,7 @@
        {
        public:
                static void system_cb(Fl_Widget* widget, void *data);
+               static void system_label_cb(void *data);
                static void exit_cb(Fl_Widget* widget, void *data);
                static void ace_cb(Fl_Widget* widget, void *data);
        };

Index: flshell.hh
===================================================================
RCS file: /sources/antiright/antiright/flshell/flshell.hh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- flshell.hh  24 Jul 2006 21:53:15 -0000      1.1
+++ flshell.hh  12 Aug 2006 03:40:51 -0000      1.2
@@ -1,8 +1,33 @@
 // flshell.hh
 
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
 #ifndef FLSHELL_HH
 #define FLSHELL_HH
-
+extern "C"
+{
+#include "../libantiright/library.h"
+}
 #include <iostream>
 #include <FL/Fl.H>
 #include <FL/Fl_Window.H>
@@ -11,11 +36,16 @@
 #include <FL/Fl_Pack.H>
 #include <FL/Fl_Menu_Bar.H>
 #include <FL/Fl_Valuator.H>
+#include <FL/Fl_Multiline_Output.H>
+#include <FL/Fl_Clock.H>
 #include <stdlib.h>
 #include <stdio.h>
 
 #include "args.hh"
 #include "callbacks.hh"
+#include "label.hh"
+#include "update.hh"
+#include "button.hh"
 
 namespace flsh
 {
@@ -35,30 +65,19 @@
        class globals   :public row_globals
        {
        public:
-               static const int widget_width;
-               static const int widget_height;
+    static unsigned int widget_width;
+    static unsigned int widget_height;
                static Bool use_border;
+    static Fl_Widget *current_widget;
        };
   
-         
-       
-       
        class environment       :public globals, public callbacks
        {
        };
 
 
-       class Button    :public environment
-       {
-       public:
-               Button();
-               Button(const char* command);
-       private:
-               void create_button(const char* label);
-               char *label;
-               Fl_Button *widget;
-       };
 
+  void check_rows();
 }
 
 #endif

Index: main.cc
===================================================================
RCS file: /sources/antiright/antiright/flshell/main.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- main.cc     8 Aug 2006 20:17:51 -0000       1.2
+++ main.cc     12 Aug 2006 03:40:51 -0000      1.3
@@ -1,43 +1,48 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
 
 #include "flshell.hh"
-
 namespace flsh
 {
-
        unsigned int row_globals::used_rows=1;
        unsigned int row_globals::rows=8;
        unsigned int row_globals::row_counter=0;
        Fl_Pack *row_globals::row;
        
-       Bool globals::use_border=False;
-       const int globals::widget_width=128;
-       const int globals::widget_height=24;
+       unsigned int globals::widget_width=192;
+       unsigned int globals::widget_height=32;
+  Fl_Widget *globals::current_widget;
 
 
-       void
-       Button::create_button(const char* label)
-       {
-               if(row_counter==rows)
+
+  void check_rows()
                {
-                       row->end();
-                       row=new Fl_Pack(0,0,widget_width, widget_height*rows);
-                       row_counter=0;
-                       used_rows++;
-               }
-               widget=new Fl_Button(widget_width*used_rows, 
widget_height*row_counter,
-                            widget_width,widget_height,label);
-               row_counter++;
-       }
-       Button::Button()
+    if(globals::row_counter==globals::rows)
        {
-               create_button("Exit");
-               widget->callback(exit_cb, (void*)NULL);
+                       globals::row->end();
+                       globals::row=new Fl_Pack(0,0,globals::widget_width, 
globals::widget_height*globals::rows);
+                       globals::row_counter=0;
+                       globals::used_rows++;
        }
-
-       Button::Button(const char* command)
-       {
-               create_button(command);
-               widget->callback(system_cb, (void*)command);
        }
 
 } // End namespace FLSH 
@@ -95,10 +100,6 @@
 
        window->end();
 
-       if(globals::use_border == False)
-       {
-               window->border(0);
-       }
 
        // FIXME: the previous arguments processed should be removed,
        // such as to not produce needless output from the call below.

Index: button.cc
===================================================================
RCS file: button.cc
diff -N button.cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ button.cc   12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,53 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "flshell.hh"
+
+namespace flsh
+{
+  void
+  Button::create_button(const char* label)
+  {
+    formatted_label=antiright_beautified_label((char*)label);
+    check_rows();
+    widget=new Fl_Button(globals::widget_width
+                        *globals::used_rows, 
+                        globals::widget_height
+                        *globals::row_counter,
+                        globals::widget_width,
+                        globals::widget_height,
+                        formatted_label);
+    widget->labelfont(FL_HELVETICA_BOLD_ITALIC);
+    globals::row_counter++;
+  }
+  Button::Button()
+  {
+    create_button("Exit");
+    widget->callback(callbacks::exit_cb, (void*)NULL);
+  }
+
+  Button::Button(const char* command)
+  {
+    create_button(command);
+    widget->callback(callbacks::system_cb, (void*)command);
+  }
+}

Index: button.hh
===================================================================
RCS file: button.hh
diff -N button.hh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ button.hh   12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,39 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+#ifndef FLSH_BUTTON_HH
+#define FLSH_BUTTON_HH
+#include "flshell.hh"
+namespace flsh
+{
+  class Button
+  {
+  public:
+    Button();
+    Button(const char* command);
+  private:
+    void create_button(const char* label);
+    char *label;
+    Fl_Button *widget;
+    char *formatted_label;
+  };
+}
+#endif

Index: label.cc
===================================================================
RCS file: label.cc
diff -N label.cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ label.cc    12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,42 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "flshell.hh"
+
+namespace flsh
+{
+  void Label::create_label()
+  {
+    widget=new Fl_Output(0,0,128,30);
+  }
+  Label::Label(const char *text)
+  {
+    create_label();
+    widget->value(text);
+  }
+  Label::Label()
+  {
+    create_label();
+  }
+ 
+}

Index: label.hh
===================================================================
RCS file: label.hh
diff -N label.hh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ label.hh    12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,42 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#ifndef FLSH_LABEL_HH
+#define FLSH_LABEL_HH
+
+#include "flshell.hh"
+
+namespace flsh
+{
+  class Label
+  {
+  public:
+    Label();
+    Label(const char *text);
+    void set(const char *text);
+  private:
+    void create_label();
+    Fl_Output *widget;
+  };
+}
+#endif

Index: update.cc
===================================================================
RCS file: update.cc
diff -N update.cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ update.cc   12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,68 @@
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+#include "flshell.hh"
+
+namespace flsh
+{
+  void update_value(void *data)
+  {
+    char *returned;
+    Update *update=(Update*)data;
+    returned=antiright_pipe_read((char*)update->command);
+    update->widget->value(returned);
+    free(returned);
+#ifdef DEBUG
+    puts("TICK");
+#endif
+    Fl::repeat_timeout(1.0, update_value, data);
+  }
+ 
+  void add_updater(void* data)
+  {
+    Fl::add_timeout(1.0, update_value, data);
+  }
+  void updater_argument(const char *option)
+  {
+    Update *update;
+
+    //globals::widget_width=256;
+    
+    update=new Update;
+    globals::widget_width=512;
+
+    check_rows();
+    
+    globals::row->size(globals::widget_width, 
globals::widget_height*globals::rows);
+
+    update->widget=new
+      Fl_Multiline_Output(0,globals::widget_height*globals::row_counter,
+                         globals::widget_width,
+                         globals::widget_height
+                         *(row_globals::rows-row_globals::row_counter));
+    update->widget->textfont(FL_SCREEN);
+    update->widget->textsize(10);
+    globals::row_counter=globals::rows;
+    asprintf(&update->command, "%s", option);
+    add_updater((void*)update);
+  }
+}

Index: update.hh
===================================================================
RCS file: update.hh
diff -N update.hh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ update.hh   12 Aug 2006 03:40:51 -0000      1.1
@@ -0,0 +1,39 @@
+
+/*
+  AntiRight
+  (c) 2002-2006 Jeffrey Bedard
+  address@hidden
+ 
+  This file is part of AntiRight.
+
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+*/
+
+
+#ifndef FLSH_UPDATE_HH
+#define FLSH_UPDATE_HH
+namespace flsh
+{
+  class Update
+  {
+  public:
+    Fl_Multiline_Output *widget;
+    char *command;
+  };
+  void add_updater(void *data);
+  void update_value(void *data);
+  void updater_argument(const char *option);
+}
+#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]