m_Ctrl->OnError(
"Error");
71sel_srv->GetActiveObjects(
objects);
77m_Ctrl->OnError(
"No objects");
89doc =
dynamic_cast<CGBDocument*
>(ws->GetProjectFromScope(*
objects.front().scope));
99statusText =
"Sort Unique Count failed!";
101<<
"CTableDataSUC failed to start job: " 107 if(!statusText.empty())
108m_Ctrl->OnError(statusText);
126statusText =
"Sort Unique Count failed!";
132statusText =
"Sort Unique Count canceled!";
138 stringerr_msg =
"Failed: ";
140err_msg +=
error->GetText();
142err_msg +=
"Unknown fatal error";
144statusText = err_msg;
168: m_Workbench(
NULL), m_Text(
NULL)
186 if(!sel_srv)
return text;
187sel_srv->GetActiveObjects(
objects);
197}
catch(
constexception&) {
203report->SetTitle(
wxT(
"Sort Unique Count"));
205 for(
size_t i= 0;
i< num_rows;
i++) {
211 text+= line->GetLine();
268wxWindow *dlg =
m_Text->GetParent();
284wxWindow *dlg =
m_Text->GetParent();
287 if(width >= 0 && height >= 0)
288dlg->SetSize(wxSize(width,height));
293 if(pos_x >= 0 && pos_y >= 0) {
295 for(
unsigned i= 0;
i< wxDisplay::GetCount();
i++) {
296wxDisplay display(
i);
297max_x += display.GetGeometry().GetWidth();
299 if(pos_x + width > max_x)
300pos_x = wxGetDisplaySize().GetWidth()-width-5;
302 if(pos_y + height > wxGetDisplaySize().GetHeight())
303pos_y = wxGetDisplaySize().GetHeight()-height-5;
305dlg->SetPosition(wxPoint(pos_x,pos_y));
IAppJobListener Interface for components that need to be notified about changes in Jobs.
CAppJobNotification Notification send by CAppJobEventTranslator.
CEvent - generic event implementation TODO TODO - Attachments.
CUndoManager & GetUndoManager()
void SetText(const wxString &text)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
CProjectService - a service providing API for operations with Workspaces and Projects.
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
void Set(const string &key, int val)
access a named key at this level, with no recursion
static CRef< CSUCResults > GetSUCResults(TConstScopedObjects &objects)
CSUCRefreshCntrl * m_Ctrl
void x_OnJobNotification(CEvent *evt)
void OnSUCData(CSUCResults &sucData)
virtual void SetRegistryPath(const string ®_path)
virtual void LoadSettings()
virtual ~CSUCRefreshCntrl()
virtual string GetRefreshedText()
void OnError(const string error)
CRef< CSUCRefreshCntrlHelper > m_Helper
virtual void RefreshText(CGenericPanel *text)
virtual void SaveSettings() const
CConstRef< CSUCLine > GetLine(size_t pos) const
void GetText(wxString &text)
size_t CountLines() const
IWorkbench is the central interface in the application framework.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
CConstIRef< IAppJobError > GetError() const
returns non-null pointer only if job Failed
static CAppJobDispatcher & GetInstance()
CRef< CObject > GetResult() const
returns non-null pointer only if Completed or Running and has temporary results available
bool DeleteJob(TJobID job_id)
when a Job is deleted the listener is not notified
TJobID StartJob(IAppJob &job, const string &engine_name, IEngineParams *params=NULL)
Starts a Job on the specified engine in "passive mode" - no notifications or progress reports will be...
#define ON_EVENT(type, id, handler)
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
TJobState GetState() const
vector< SConstScopedObject > TConstScopedObjects
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
static void text(MDB_val *v)
void GetViewObjects(IWorkbench *workbench, TConstScopedObjects &objects)
static const char * kFramePosX
static const char * kFrameHeight
static const char * kFramePosY
static const char * kFrameWidth
wxString ToWxString(const string &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4