38 class SimpleConfigDialog;
101 template <
class... ProxyTypes>
105 SimpleConfigDialogAdder<ProxyTypes...>().addEntries(*
this, 0, entryData);
108 template <
class ProxyType>
115 template <
class ProxyType>
118 const std::string& description,
119 const std::string& mask)
129 std::string
getProxyName(
const std::string& entryName)
const;
131 std::string
getProxyName(
const std::string& entryName,
const std::string& def)
const;
138 const std::string& label,
139 const std::string& defaultValue =
"");
142 bool hasLineEdit(
const std::string& entryName)
const;
144 std::string
get(
const std::string& entryName)
const;
146 std::string
get(
const std::string& entryName,
const std::string& def)
const;
149 struct SimpleConfigDialogAdderBase
151 virtual ~SimpleConfigDialogAdderBase() =
default;
161 const std::vector<EntryData>& entryData);
164 template <
class... ProxyTs>
165 struct SimpleConfigDialogAdder
173 template <
class ProxyT,
class... ProxyTs>
174 struct SimpleConfigDialogAdder<ProxyT, ProxyTs...> : SimpleConfigDialogAdderBase
179 return new armarx::IceProxyFinder<ProxyT>(d);
185 const std::vector<EntryData>& entryData)
187 this->implAddEntries(d,
index, entryData);
192 template <
class... ProxyTs>
193 friend struct SimpleConfigDialogAdder;
195 struct EntryCallbacks
197 std::function<std::string()> proxyName;
201 std::map<std::string, EntryCallbacks> entries;
202 std::map<std::string, QLineEdit*> lineEdits;
206 Ui::SimpleConfigDialog* ui;
The IceProxyFinderBase class provides a convenient way to query online proxies in the ice network,...
The ManagedIceObject is the base class for all ArmarX objects.
A config-dialog containing one (or multiple) proxy finders.
void onInitComponent() override
Initializes the proxy finder.
void addProxyFinder(const std::vector< EntryData > &entryData)
void addProxyFinder(const std::string &name, const std::string &description, const std::string &mask)
friend struct SimpleConfigDialogAdder
bool hasProxyName(const std::string &entryName) const
SimpleConfigDialog(QWidget *parent=nullptr)
ctor
~SimpleConfigDialog() override
dtor
std::string getProxyName(const std::string &entryName) const
std::string get(const std::string &entryName) const
void addProxyFinder(const EntryData &entryData)
void onConnectComponent() override
noop
bool hasLineEdit(const std::string &entryName) const
void addLineEdit(const std::string &name, const std::string &label, const std::string &defaultValue="")
std::string getLineEditText(const std::string &entryName) const
QVBoxLayout * getLayout()
std::string getDefaultName() const override
Returns the dialog's default name.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< IceManager > IceManagerPtr
IceManager smart pointer.