}
else if (im.size()>1) // Test inutile ? JPR
{
+ /// \TODO fix unused variable 'first'
vtkImageData* first = mReader.GetImage( im.front());
if (dimension == 2)
{
{
mProgress.Reset();
- unsigned int nbf = filenames.size();
+ //unsigned int nbf = filenames.size();
std::vector<std::string>::const_iterator i;
- mSynchronizer->GetList(mCurrentDB);
+ mSynchronizer->GetList(mCurrentDB);
for (i=filenames.begin();i!=filenames.end();++i)
{
mProgress.IncNumberScannedDirs();
if ( !fs::exists( dirpath ) ) return;
- time_t lastModif=fs::last_write_time(dirpath);
+
+ /// \TODO fix warning: unused variable lastModif
+ time_t lastModif=fs::last_write_time(dirpath);
-
fs::directory_iterator end_itr; // default construction yields past-the-end
for ( fs::directory_iterator itr( dirpath );
itr != end_itr;
{
GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel"
<<std::endl);
- wxStaticText * aa=new wxStaticText(this,-1,_T(" Currently shown attributes for level: "), wxPoint(5,10));
+ /// \TODO fix warning: unused variable aa
+ wxStaticText * aa = new wxStaticText(this,-1,_T(" Currently shown attributes for level: "), wxPoint(5,10));
wxArrayString as;
std::stringstream out;
for(int i=1;i<=numLev;i++)
out.str("");
}
levels=new wxComboBox(this, ID_COMBO,_T("1"),wxPoint(190, 5),wxDefaultSize,as);
+ /// \TODO fix warning: unused variable na
wxStaticText * na=new wxStaticText(this,-1,_T(" Currently hidden attributes: "), wxPoint(255,10));
shownAtts=new wxListCtrl(this, wxID_ANY, wxPoint(5,30), wxSize(160,90), wxLC_REPORT | wxLC_NO_HEADER );
{
GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel"
<<std::endl);
- wxStaticText * cp=new wxStaticText(this,-1,_T(" Copy Path: "), wxPoint(5,10));
- copyPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(copyP), wxPoint(150,10), wxSize(250,20));
+ /// \TODO fix warning: unused variable cp
+ wxStaticText * cp=new wxStaticText(this,-1,_T(" Copy Path: "), wxPoint(5,10));
+ copyPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(copyP), wxPoint(150,10), wxSize(250,20));
+ /// \TODO fix warning: unused variable dp
wxStaticText * dp=new wxStaticText(this,-1,_T(" Database Path: "), wxPoint(5,40));
dbPath=new wxTextCtrl(this, wxID_ANY, crea::std2wx(databaseP), wxPoint(150,40), wxSize(250,20));
+ /// \TODO fix warning: unused variable se
wxStaticText * se=new wxStaticText(this,-1,_T(" Synchronization Event: "), wxPoint(5,70));
syncEvent=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncEv), wxPoint(150,70), wxSize(250,20));
+ /// \TODO fix warning: unused variable sf
wxStaticText * sf=new wxStaticText(this,-1,_T(" Synchronization Frequency: "), wxPoint(5,100));
syncFrequency=new wxTextCtrl(this, wxID_ANY, crea::std2wx(syncFr), wxPoint(150,100), wxSize(250,20));
wxButton *LoadDescriptor = new wxButton(this, -1,_T("Load a descriptor"), wxPoint(150,7) );
Connect( LoadDescriptor->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxDescriptorPanel::OnLoad );
-
+
+ /// \TODO fix warning: unused variable line1
wxStaticLine *line1 = new wxStaticLine(this, -1, wxPoint(5,40), wxSize(540,2));
// LEVEL
+ /// \TODO fix warning: unused variable LevelText
wxStaticText * LevelText=new wxStaticText(this,-1,_T(" Level: "), wxPoint(5,50));
LevelCtrl=new wxTextCtrl(this, ID_GR_CTRL,_T("patient"), wxPoint(50,50), wxSize(50,25));
wxButton *addLevel = new wxButton(this, ID_LEVEL_ADD,_T("add a level"), wxPoint(150,50) );
Connect( addLevel->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxDescriptorPanel::OnAddLevel );
+ /// \TODO fix warning: unused variable line2
wxStaticLine *line2 = new wxStaticLine(this, -1, wxPoint(5,75), wxSize(540,2));
// ATTRIBUTES
+ /// \TODO fix warning: unused variable GR
wxStaticText * GR=new wxStaticText(this,-1,_T(" DICOM Group: "), wxPoint(5,110));
GRCtrl=new wxTextCtrl(this, ID_GR_CTRL,_T("0x0010"), wxPoint(82,110), wxSize(50,25));
Connect( GRCtrl->GetId(), wxEVT_COMMAND_TEXT_UPDATED , (wxObjectEventFunction) &WxDescriptorPanel::OnDicomAttribute );
+ /// \TODO fix warning: unused variable EL
wxStaticText * EL=new wxStaticText(this,-1,_T(" DICOM Element: "), wxPoint(140,110));
ELCtrl=new wxTextCtrl(this, ID_EL_CTRL,_T("0x0010"), wxPoint(230,110), wxSize(50,25));
Connect( ELCtrl->GetId(), wxEVT_COMMAND_TEXT_UPDATED , (wxObjectEventFunction) &WxDescriptorPanel::OnDicomAttribute );
-
wxString choices[3];
choices[0] = _T("Unknow Attribute");
std::map<std::string, std::string>::iterator it_att =ownatt.begin();
wxButton *addAttribute = new wxButton(this, ID_ATTRIBUTE_ADD,_T("add an attribute"), wxPoint(440,110) );
Connect( addAttribute->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxDescriptorPanel::OnAddAttribute );
-
+ /// \TODO fix warning: unused variable line3
wxStaticLine *line3 = new wxStaticLine(this, -1, wxPoint(5,140), wxSize(540,2));
// RESULT
wxButton *RemoveCtrl = new wxButton(this, ID_REMOVE_ADD,_T("Remove an entry"), wxPoint(280,200) );
Connect( RemoveCtrl->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxDescriptorPanel::OnRemove );
+ /// \TODO fix warning: unused variable line4
wxStaticLine *line4 = new wxStaticLine(this, -1, wxPoint(5,470), wxSize(540,2));
// VALIDATION BUTTON
wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(10,480) );
wxButton *Apply = new wxButton(this, -1,_T("APPLY"), wxPoint(150,480) );
Connect( Apply->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxDescriptorPanel::OnApply );
+ /// \TODO fix warning: unused variable Cancel
wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(250,480) );
// Connect( Cancel->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxCloseEvent) &wxWindow::Close );
//////////////////////////////////////////////////
void WxDescriptorPanel::OnDicomAttribute(wxCommandEvent& event)
{
- int i = 0;
+ //int i = 0;
if(!GRCtrl->GetValue().IsEmpty() && !ELCtrl->GetValue().IsEmpty()
&& GRCtrl->GetValue().Len() == 6 && ELCtrl->GetValue().Len() == 6 && AttributeCombo->GetSelection() == 0)
{
{
GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel"
<<std::endl);
+ /// \TODO fix warning: unused variable cp
wxStaticText * cp=new wxStaticText(this,-1,_T(" Attribute to change: "), wxPoint(5,10));
wxArrayString as;
std::vector<std::string>::const_iterator it;
std::string val=node->GetAttribute(keys[0]);
if(val.compare("")==0){val="?";}
+ /// \TODO fix warning: unused variable av
wxStaticText * av=new wxStaticText(this,-1,_T(" Current Value: "), wxPoint(5,40));
actualVal=new wxStaticText(this,-1,crea::std2wx(val), wxPoint(110,40));
+ /// \TODO fix warning: unused variable nv
wxStaticText * nv=new wxStaticText(this,-1,_T(" New Value: "), wxPoint(5,70));
newVal=new wxTextCtrl(this, wxID_ANY, crea::std2wx(val), wxPoint(110,70), wxSize(220,20));
WxExportDlg::WxExportDlg(wxWindow *parent, const std::vector<std::string> storages)
: wxDialog(parent, -1,_T("EXPORT FILES TO STORAGE"), wxDefaultPosition, wxSize(260,150))
{
- int size = 16;
-
+ //int size = 16;
+
+ /// \TODO fix warning: unused variable ExportText
wxStaticText * ExportText=new wxStaticText(this,-1,_T(" Storage to export: "), wxPoint(5,10));
wxArrayString names;
std::vector<std::string>::const_iterator it = storages.begin();
// VALIDATION BUTTON
wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,50) );
Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxExportDlg::OnOk );
-
+
+ /// \TODO fix warning: unused variable Cancel
wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,50) );
Layout();
mBottomPanel->SetSizer(mbottom_sizer);
// Splitting
+ /// \TODO fix warning: unused variable hsize
int hsize = size.GetHeight();
int top_minsize = 450;
bool WxGimmickView::isNeedRecursive(std::string i_name)
{
boost::filesystem::directory_iterator iter(i_name), end_iter;
- bool bfindir = false;
+ //bool bfindir = false;
for(; iter != end_iter; ++iter)
{
if(boost::filesystem::is_directory(*iter))
GimmickDebugMessage(1,"WxListener::WxListener"
<<std::endl);
state=stat;
+ /// \TODO fix warning: unused variable cp
wxStaticText * cp=new wxStaticText(this,-1,_T(" Drive to monitor: "), wxPoint(5,15));
const wxString choices[] = { _T("D:"),
_T("E:"),
std::string sentence;
sentence = "You select";
std::string sentence2 = "You have the possibility to select output format :";
- int nbsent= 0;
+ //int nbsent= 0;
std::vector<std::string> outsentences;
if (size == 1)
{
int start_point = 45;
+ /// \TODO fix unused variable ExportText
wxStaticText * ExportText=new wxStaticText(this,-1,crea::std2wx(sentence), wxPoint(5,10));
std::vector<std::string>::iterator it = outsentences.begin();
// VALIDATION BUTTON
wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,start_point+20) );
- Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxOutputDlg::OnOk );
-
+
+ Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxOutputDlg::OnOk );
+
+ /// \TODO fix unused variable Cancel
wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,start_point+20) );
Layout();
-1, wxDefaultPosition,
wxDefaultSize,
wxRESIZE_BORDER |
- wxSYSTEM_MENU |
+ wxSYSTEM_MENU |
wxCLOSE_BOX |
wxMAXIMIZE_BOX |
wxMINIMIZE_BOX |
{
GimmickDebugMessage(1,"WxPACSConnectionPanel::WxPACSConnectionPanel"
<<std::endl);
+ /// \TODO fix warning: unused variable dicId aet pn adv1 ad
wxStaticText * dicId=new wxStaticText(this,-1,_T(" DICOM Identification: "), wxPoint(5,5));
wxStaticText * aet=new wxStaticText(this,-1,_T(" AETitle: "), wxPoint(5,25));
aeTitle=new wxTextCtrl(this, wxID_ANY, _T("MyAeTitle"), wxPoint(75,25), wxSize(220,20));