00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef YNCursesComponent_h
00023 #define YNCursesComponent_h
00024
00025 #include <YUIComponent.h>
00026 #include "YNCursesUI.h"
00027
00028
00029 class YNCursesComponent : public YUIComponent
00030 {
00031 public:
00032
00033 YNCursesComponent(): YUIComponent() {}
00034
00040 virtual YUI * createUI( int argc,
00041 char ** argv,
00042 bool with_threads,
00043 const char * macro_file )
00044 {
00045 return new YNCursesUI( argc, argv, with_threads, macro_file );
00046 }
00047
00053 virtual string name() const { return "ncurses"; }
00054
00055 };
00056
00057
00058 #endif // YNCursesComponent_h