4 #include "motorcommon.h"
6 #define LF_CREATE_IF_NOTFOUND 2
10 __MOTOR_BEGIN_NAMESPACE
19 file
, directory
, text
,
20 filechroot
, directorychroot
26 editfile(const string
&afname
, INT ax
, INT ay
);
31 bool operator == (const string
&afname
);
32 bool operator != (const string
&afname
);
42 virtual void execute(INT argc
, char **argv
);
43 virtual void redraw();
45 virtual askresult
ask(const string
&answersallowed
, const string
&text
);
46 virtual askresult
askf(const string
&answersallowed
, const char *fmt
, ...);
48 virtual void log(const string
&text
= "");
49 virtual void logf(const char *fmt
, ...);
51 virtual void loadeditfile(const editfile ef
, INT options
= 0);
52 virtual void reloadeditfiles();
53 virtual void setdebugcurrentline(const editfile ef
);
54 virtual vector
<editfile
> geteditfiles();
55 // the last item gotta be the current file name
56 virtual vector
<string
> geteditfile(const string
&fname
);
58 virtual bool editcloseall();
59 virtual bool autosave();
61 virtual askresult
input(inputkind kind
, string
&result
, const string
&prompt
);
63 virtual void setoutputblockmode(bool fblock
);
64 virtual void writeoutput(const string
&text
);
65 virtual void doneoutput();
66 virtual void executordone(const string
&target
, INT nerr
,
67 INT nwarn
, INT ninfo
);
69 virtual void externalexec(INT options
, const string
&cmd
);
70 virtual void externalexecf(INT options
, const char *fmt
, ...);
72 virtual void setdesktop(const vector
< pair
<string
, string
> > &asettings
);
73 virtual vector
< pair
<string
, string
> > getdesktop() const;
74 // This pair of functions deal with project
75 // specific UI settings
77 virtual void updatewatches();
78 virtual bool editmodified() const;
80 virtual askresult
notemplate(string
&templname
) const;
85 #ifdef __MOTOR_USE_NAMESPACES