36#include <boost/format.hpp>
62OSEd::
OSEd() : mainFrame_(NULL), options_(NULL) {
84 wxPoint(50, 50), wxSize(900, 500));
97 cerr <<
"Config file not found, default options will be used." << endl
98 <<
"OseD may use the editor in your $VISUAL"
99 <<
" environmental variable." << endl
100 <<
"If this points to some non-graphical editor, "
101 <<
"please change the editor from settings." << endl;
111 if (results.size() > 0) {
172 cerr <<
"Writing options failed: " << e.
errorMessage() << endl;
static TCEString userConfPath(const std::string &fileName)
static TCEString confPath(const std::string &fileName)
std::string errorMessage() const
static const std::string DEFAULT_EDITOR
Default editor name.
static const std::string CONF_FILE_NAME
Configuration file name.
OSEdTreeView * treeView() const
virtual ObjectState * readState()
void setSourceFile(const std::string &fileName)
virtual void writeState(const ObjectState *state)
void setDestinationFile(const std::string &fileName)
void setEditor(const std::string &editor)
virtual void loadState(const ObjectState *state)
ObjectState * saveState() const
static OSEdTextGenerator & instance()
@ TXT_XML_RESULT_DIALOG_TITLE
XML result dialog title.
std::vector< std::string > constructTree()
OSEdMainFrame * mainFrame_
Main window of the application.
void createDefaultOptions()
OSEdOptions * options() const
OSEdMainFrame * mainFrame() const
OSEdOptions * options_
Options of the application.
virtual boost::format text(int textId)
static char ** toCStringArray(size_t elements, wxChar **source)