Documentation for OpenFLUID 2.2.0
FragmentsSrcImportDialog.hpp
Go to the documentation of this file.
1 /*
2 
3  This file is part of OpenFLUID software
4  Copyright(c) 2007, INRA - Montpellier SupAgro
5 
6 
7  == GNU General Public License Usage ==
8 
9  OpenFLUID is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  OpenFLUID is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>.
21 
22 
23  == Other Usage ==
24 
25  Other Usage means a use of OpenFLUID that is inconsistent with the GPL
26  license, and requires a written agreement between You and INRA.
27  Licensees for Other Usage of OpenFLUID may use this file in accordance
28  with the terms contained in the written agreement between You and INRA.
29 
30  */
31 
32 /**
33  @file FragmentsSrcImportDialog.hpp
34 
35  @author Armel THÖNI <armel.thoni@inra.fr>
36  */
37 
38 
39 #ifndef __OPENFLUID_UIWARESDEV_FRAGMENTSSRCIMPORTDIALOG_HPP__
40 #define __OPENFLUID_UIWARESDEV_FRAGMENTSSRCIMPORTDIALOG_HPP__
41 
42 
43 #include <QListWidget>
44 #include <QAbstractButton>
45 #include <QButtonGroup>
46 #include <QLabel>
47 #include <QLineEdit>
48 #include <QPushButton>
49 
50 #include <openfluid/dllexport.hpp>
51 #include <openfluid/ware/TypeDefs.hpp>
52 #include <openfluid/config.hpp>
56 
57 
58 namespace Ui {
59 class FragmentsSrcImportDialog;
60 }
61 
62 namespace openfluid { namespace waresdev {
63 class WaresDevImportPackage;
64 class WaresImportWorker;
65 } }
66 
67 
68 namespace openfluid { namespace ui { namespace waresdev {
69 
70 
71 class WaresImportWorker;
72 
73 
75 {
76  Q_OBJECT
77 
78 
79  private slots:
80 
81  bool check();
82 
83 
84  private:
85 
86  Ui::FragmentsSrcImportDialog* ui;
87 
88  QString m_WarePath;
89  bool m_HasWareVersionControl;
90 
91  QButtonGroup m_SourceBtGroup;
92  QButtonGroup m_StrategyBtGroup;
93 
94  QList<QWidget*> m_HubConnectWidgets;
95 
96  QList<QWidget*> m_GitLoginWidgets;
97 
98  bool isFragmentInWare(std::string FragmentName);
99 
100  bool fragmentItemDisplay(const QString WareId, QListWidgetItem* Item);
101 
102 
103  protected slots:
104 
106 
107 
108  protected:
109 
110  QLineEdit* hubUrlLineEdit();
111 
112  QLineEdit* usernameLineEdit();
113 
114  QLineEdit* passwordLineEdit();
115 
116  QPushButton* hubConnectButton();
117 
118  QPushButton* hubLoginButton();
119 
120  QLabel* hubUsernameLabel();
121 
123 
125 
126  void customHideWidget(QWidget* Widget);
127 
128  QStringList getSelectedFragments();
129 
131 
132 
133  public:
134 
135  explicit FragmentsSrcImportDialog(QWidget* Parent, QString WarePath, bool HasWareVersionControl);
136 
138 
139 };
140 
141 
142 } } } //namespaces
143 
144 
145 #endif /* __OPENFLUID_UIWARESDEV_FRAGMENTSSRCIMPORTDIALOG_HPP__ */
Definition: AbstractSrcImportDialog.hpp:68
Definition: FragmentsSrcImportDialog.hpp:75
FragmentsSrcImportDialog(QWidget *Parent, QString WarePath, bool HasWareVersionControl)
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: AboutDialog.hpp:51
Definition: ApplicationException.hpp:47