Go to the SVN repository for this file.
47 #define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR(var, id, type) \ 49 var = wxDynamicCast(FindWindow(id), type); \ 51 ERRORMSG("Can't find window with id "<< id); \
60 constwxString& message,
constwxString& title,
intmaximumValue) :
61wxDialog(myParent, -1, title, wxPoint(50, 50), wxDefaultSize,
62wxCAPTION | wxFRAME_NO_TASKBAR)
65wxPanel *parent =
newwxPanel(
this, -1);
72 #define ID_GAUGE 10001 73wxBoxSizer *item0 =
newwxBoxSizer( wxVERTICAL );
74wxStaticText *item1 =
newwxStaticText( parent,
ID_TEXT, message,
75wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
76item0->Add( item1, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
77wxGauge *item2 =
newwxGauge( parent,
ID_GAUGE, 100,
78wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL | wxGA_SMOOTH );
79item0->Add( item2, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
80parent->SetAutoLayout(
TRUE);
81parent->SetSizer( item0 );
85 text->SetLabel(message);
90gauge->SetRange(maximumValue);
95SetClientSize(item0->GetMinSize());
100 #if defined(__WXMAC__) 113 #if defined(__WXMAC__) 114 TRACEMSG(
"can veto: "<< event.CanVeto());
115 if(event.CanVeto()) {
128 if(
value!= gauge->GetValue()) {
129 int max= gauge->GetRange();
134 #if defined(__WXMAC__)void SetValue(int value, bool doYield=true)
void OnCloseWindow(wxCloseEvent &event)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_SCOPE(ns)
Define a new scope.
static void text(MDB_val *v)
const GenericPointer< typename T::ValueType > T2 value
#define TRUE
bool replacment for C indicating true.
#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR(var, id, type)
void SetFocus(CRef< objects::CSeq_entry > entry)
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