]> Creatis software - clitk.git/blob - vv/vvLinkPanel.h
Initial revision
[clitk.git] / vv / vvLinkPanel.h
1 #ifndef _vvLinkPanel_H
2 #define _vvLinkPanel_H
3
4 /*=========================================================================
5
6  Program:   vv
7  Module:    $RCSfile: vvLinkPanel.h,v $
8  Language:  C++
9  Date:      $Date: 2010/01/06 13:31:57 $
10  Version:   $Revision: 1.1 $
11  Author :   Pierre Seroul (pierre.seroul@gmail.com)
12
13 Copyright (C) 200COLUMN_IMAGE_NAME
14 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
15 CREATIS-LRMN http://www.creatis.insa-lyon.fr
16
17 This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, version 3 of the License.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program.  If not, see <http://www.gnu.org/licenses/>.
28
29 =========================================================================*/
30
31 #include <iostream>
32 #include <vector>
33
34 #include "ui_vvLinkPanel.h"
35
36 //====================================================================
37 class vvLinkPanel : public QWidget, private Ui::vvLinkPanel
38 {
39
40     Q_OBJECT
41
42 public:
43     // constructor - destructor
44     vvLinkPanel(QWidget * parent=0);
45     ~vvLinkPanel() {}
46
47     void addImage(std::string name, std::string id);
48     void removeImage(int i);
49
50 public slots :
51     void UpdateComboBox2(int i);
52     void removeLink(int row, int column);
53     void addLink();
54     void linkAll();
55
56 signals:
57     void addLink(QString image1,QString image2);
58     void removeLink(QString image1,QString image2);
59
60 private:
61     void UpdateComboBox1();
62
63     std::vector<std::string> imageNames;
64     std::vector<std::string> image1Ids;
65     std::vector<std::string> image2Ids;
66
67 }; // end class vvLinkPanel
68 //====================================================================
69
70 #endif /* end #define _vvLinkPanel_H */
71