return n;
}
//====================================================================
+
+
+
+ //================================================================
+ //================================================================
+ //================================================================
+ //================================================================
+
+ //================================================================
+ WxGimmickSettingsDialog::WxGimmickSettingsDialog(wxWindow *parent,
+ WxGimmickSettings* settings)
+ :
+ wxDialog( parent,
+ -1,
+ _T("Settings"),
+ wxDefaultPosition,
+ wxSize(400,400),
+ wxRESIZE_BORDER |
+ wxSYSTEM_MENU |
+ wxCLOSE_BOX |
+ wxMAXIMIZE_BOX |
+ wxMINIMIZE_BOX |
+ wxCAPTION
+ ),
+ mSettings(settings)
+ {
+ wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
+
+
+
+ wxSizer* bsizer = CreateSeparatedButtonSizer(wxOK|wxCANCEL);
+ mOkButton = (wxButton*)FindWindowById(GetAffirmativeId(), this);
+ mCancelButton = (wxButton*)FindWindowById(GetEscapeId(), this);
+
+ sizer->Add ( bsizer, 0, wxGROW );
+
+ SetSizer( sizer );
+ Layout();
+ }
+ //================================================================
+
+ //================================================================
+ WxGimmickSettingsDialog::~WxGimmickSettingsDialog()
+ {
+ }
+ //================================================================
+
+
+ //================================================================
+ //================================================================
+ //================================================================
+ //================================================================
+
+ //================================================================
+ WxGimmickHelp::WxGimmickHelp(wxWindow *parent)
+ :
+ wxPanel( parent, -1)
+ /*
+ -1,
+ _T("Gimmick! Help"),
+ wxDefaultPosition,
+ wxSize(600,500),
+
+
+ //wxDEFAULT_FRAME_STYLE |
+ //wxFRAME_FLOAT_ON_PARENT
+
+
+ wxBORDER_SIMPLE
+ // wxRESIZE_BORDER |
+ //wxSYSTEM_MENU |
+ //wxCLOSE_BOX |
+ // wxMAXIMIZE_BOX |
+ //wxMINIMIZE_BOX |
+ //wxCAPTION
+
+
+ )
+ */
+ {
+ // SetBackgroundColour(*wxBLUE);
+
+ wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
+
+ mText = new wxTextCtrl(this,
+ -1, //ID_InputText,
+ _T(""),
+ wxDefaultPosition,
+ wxDefaultSize,
+ wxTE_READONLY |
+ wxTE_MULTILINE
+ // |wxTE_PROCESS_ENTER
+ //| wxTE_PROCESS_TAB
+ // | wxWANTS_CHARS
+ // | wxTAB_TRAVERSAL
+ );
+
+ wxFont* FixedFont = new wxFont(10,
+ wxFONTFAMILY_MODERN,
+ wxFONTSTYLE_NORMAL,
+ wxFONTWEIGHT_NORMAL,
+ false);
+
+ // wxTextAttr mwxInputTextAttr;
+ // mwxInputTextAttr.SetFont(*FixedFont);
+ // mwxInputTextAttr.SetBackgroundColour(*wxBLUE);
+ // mwxInputTextAttr.SetTextColour(*wxWHITE);
+ // mText->SetDefaultStyle(mwxInputTextAttr);
+ // mText->SetBackgroundColour(*wxBLUE);
+
+ std::string tip("\n");
+ tip += " Welcome to Gimmick !\n";
+ tip += " ( Give me my medical images quick ! )\n\n\n";
+ tip += " To start you must create a 'Collection' :\n";
+ tip += " 1) Right click on 'Collection'\n";
+ tip += " 2) Select 'New collection'\n";
+ tip += " 3) Enter the collection file name and the collection name\n\n";
+ tip += " To add images to your collection :\n";
+ tip += " 1) Right click on your collection\n";
+ tip += " 2) Select 'Add image(s) to collection'\n";
+ tip += " 3) Select :\n";
+ tip += " * 'Scan Directory' to add all images of a directory or\n";
+ tip += " * 'Select File(s)' to add only some selected images\n";
+ tip += " 4) Select the directory or the files to add\n";
+ tip += "\n\n";
+ tip += " Remember then that *ALL ACTIONS* in Gimmick!\n";
+ tip += " are done by right clicking on the DICOM tree elements\n";
+ tip += "\n";
+ tip += " Enjoy!\n";
+
+ mText->AppendText(crea::std2wx(tip));
+
+
+ sizer->Add(mText,1,wxGROW);
+
+ /*
+ wxSizer* bsizer = CreateSeparatedButtonSizer(wxOK);
+ mOkButton = (wxButton*)FindWindowById(GetAffirmativeId(), this);
+
+ sizer->Add ( bsizer, 0, wxGROW );
+ */
+
+ SetSizer(sizer);
+ SetAutoLayout(true);
+ Layout();
+
+
+
+ }
+ //================================================================
+
+ //================================================================
+ WxGimmickHelp::~WxGimmickHelp()
+ {
+ }
+ //================================================================
+
+
+
+
+
}