UFOScriptDefinitionView.h

Go to the documentation of this file.
00001 #ifndef UFO_SCRIPT_DEFINITION_VIEW_H_
00002 #define UFO_SCRIPT_DEFINITION_VIEW_H_
00003 
00004 #include <string>
00005 #include "gtkutil/SourceView.h"
00006 typedef struct _GtkWidget GtkWidget;
00007 
00008 namespace ui
00009 {
00010     class UFOScriptDefinitionView
00011     {
00012             // The ump file that should be shown
00013             std::string _ufoFile;
00014 
00015             // The top-level widget
00016             GtkWidget* _vbox;
00017 
00018             GtkWidget* _ufoFileName;
00019 
00020             // The actual code view
00021             gtkutil::SourceView _view;
00022 
00023         public:
00024             UFOScriptDefinitionView ();
00025 
00026             // Returns the topmost widget for packing this view into a parent container
00027             GtkWidget* getWidget ();
00028 
00029             void setUFOScriptFile (const std::string& ufoFile);
00030 
00031             void goToLine (int lineNumber);
00032 
00033             void update ();
00034 
00035             void append (const std::string& append);
00036 
00037             void save ();
00038     };
00039 
00040 } // namespace ui
00041 
00042 #endif /* UFO_SCRIPT_DEFINITION_VIEW_H_ */

Generated by  doxygen 1.6.2