|
SAGA API
v9.6
|
Go to the documentation of this file.
63 #define ADD_MESSAGE_EXECUTION(Text, Style) { SG_UI_Msg_Add(Text, true, Style); if( m_pTool->has_GUI() ) { SG_UI_Msg_Add_Execution(Text, true, Style); } }
65 #define ADD_MESSAGE_TIME(Start) { CSG_TimeSpan Time = CSG_DateTime::Now() - Start; CSG_String s;\
66 if( Time.Get_Hours () >= 1 ) { s = Time.Format("%Hh %Mm %Ss"); } else\
67 if( Time.Get_Minutes () >= 1 ) { s = Time.Format( "%Mm %Ss"); } else\
68 if( Time.Get_Seconds () >= 1 ) { s = Time.Format( "%Ss"); } else\
69 if( Time.Get_Milliseconds() >= 1 ) { s = Time.Format("%l ") + _TL("milliseconds"); } else { s = _TL("less than 1 millisecond"); }\
70 SG_UI_Msg_Add_Execution(CSG_String::Format("\n[%s] %s %s", m_pTool->Get_Name().c_str(), _TL("finished in"), s.c_str()), false);\
89 m_Point_Last.
Assign(0., 0.);
104 return( m_Projection.
Create(Projection) );
110 if( !m_pTool || m_pTool->m_bExecutes )
115 m_pTool->m_bError_Ignore =
false;
116 m_pTool->m_bExecutes =
true;
117 m_Point_Last = m_Point;
126 m_pTool->m_bExecutes =
false;
128 m_pTool->_Synchronize_DataObjects();
143 if( !m_pTool || m_pTool->m_bExecutes )
148 m_pTool->m_bError_Ignore =
false;
149 m_pTool->m_bExecutes =
true;
157 m_pTool->m_bExecutes =
false;
159 m_pTool->_Synchronize_DataObjects();
174 if( !m_pTool || m_pTool->m_bExecutes )
179 m_pTool->m_bError_Ignore =
false;
180 m_pTool->m_bExecutes =
true;
186 m_pTool->m_bExecutes =
false;
188 m_pTool->_Synchronize_DataObjects();
193 ?
_TL(
"Interactive tool execution has been stopped")
194 :
_TL(
"Interactive tool execution failed")),
214 m_Drag_Mode = Drag_Mode;
static CSG_DateTime Now(void)
@ SG_UI_MSG_STYLE_SUCCESS
bool SG_UI_Process_Set_Okay(bool bOkay)
@ SG_UI_MSG_STYLE_FAILURE
virtual void Assign(double x, double y)
static CSG_String Format(const char *Format,...)
const SG_Char * c_str(void) const
bool SG_UI_Process_Set_Ready(void)
bool Create(const CSG_Projection &Projection)