18 #ifndef ODINDIALOG_IDEA_H
19 #define ODINDIALOG_IDEA_H
23 #include <odinqt/ldrwidget.h>
25 #include <odinpara/ldrblock.h>
26 #include <odinpara/ldrtypes.h>
27 #include <odinpara/ldrnumbers.h>
36 bool set_defaults(
const OdinConf& conf, STD_string* errmsg, QWidget *parent);
38 STD_string get_vxworks_postfix()
const;
39 STD_string get_vxworks_ext()
const;
40 STD_string get_vxworks_Makefile()
const;
41 STD_string get_vxworks_cxx()
const {
return odindir+
"/bin/cxxwrapper.exe";}
43 STD_string get_ideadir_slash()
const {
return replaceStr(ideadir,
"\\",
"/");}
44 STD_string get_odindir_slash()
const {
return replaceStr(odindir,
"\\",
"/");}
83 class IdeaDialog :
public QObject,
public GuiDialog {
87 IdeaDialog(QWidget *parent, IdeaOpts& opts,
const OdinConf& conf);
101 void error_msg(
const STD_string& msg);
102 int find_in_alternatives(
const STD_string& findstr,
const STD_list<STD_string>& alternatives);
103 bool execute_make(
const STD_string& make,
const STD_string& target);
104 STD_string hosttarget(
bool debug,
const STD_string& build_includes,
const STD_string& global_conf,
const STD_string& mprefix,
const STD_string& make_install)
const;
105 static STD_string errcodes_src(
const STD_string& msgfile);
109 IdeaOpts& opts_cache;
110 const OdinConf& conf_cache;
121 class IdeaMethodDialog :
public QObject,
public GuiDialog {
125 IdeaMethodDialog(
const STD_string& methdir,
sarray& selectedMethods,
const STD_string& install_prefix,
const IdeaOpts& ideaopts, QWidget *parent);
140 STD_list<GuiListItem*> method_checks;
143 STD_string methrootdir;
144 STD_string install_dir;
146 const IdeaOpts& ideaopts_cache;
STD_string replaceStr(const STD_string &s, const STD_string &searchstring, const STD_string &replacement, whichOccurences mode=allOccurences)