marble
RoutingProfileSettingsDialog.cpp
Go to the documentation of this file.
27 RoutingProfileSettingsDialog::RoutingProfileSettingsDialog( const PluginManager *pluginManager, RoutingProfilesModel *profilesModel, QWidget* parent )
58 connect ( m_ui->services->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(updateConfigWidget()), Qt::QueuedConnection );
59 connect ( m_servicesModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), SLOT(updateConfigWidget()) );
110 QHash<QString, QVariant> settings = profiles[ profileIndex ].pluginSettings()[ plugin->nameId() ];
void editProfile(int profileIndex)
Definition: RoutingProfileSettingsDialog.cpp:99
iterator insert(const Key &key, const T &value)
virtual void reject()
QList< RoutingProfile > profiles() const
Definition: RoutingProfilesModel.cpp:60
QStandardItem * invisibleRootItem() const
~RoutingProfileSettingsDialog()
Definition: RoutingProfileSettingsDialog.cpp:67
void clear()
void rejected()
const T & at(int i) const
void accepted()
void setAttribute(Qt::WidgetAttribute attribute, bool on)
int exec()
virtual QString guiString() const =0
Returns the string that should appear in the user interface.
QString tr(const char *sourceText, const char *disambiguation, int n)
QList< RoutingRunnerPlugin * > routingRunnerPlugins() const
Returns all routing runner plugins.
Definition: PluginManager.cpp:123
Qt::CheckState checkState() const
void removeWidget(QWidget *widget)
bool isValid() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setLayout(QLayout *layout)
bool setProfilePluginSettings(int row, const QHash< QString, QHash< QString, QVariant > > &pluginSettings)
Definition: RoutingProfilesModel.cpp:99
void appendRow(const QList< QStandardItem * > &items)
int row() const
int remove(const Key &key)
virtual void accept()
virtual QString nameId() const =0
Returns the unique name of the plugin.
QStandardItem * child(int row, int column) const
bool setProfileName(int row, const QString &name)
Definition: RoutingProfilesModel.cpp:90
void setWindowFlags(QFlags< Qt::WindowType > type)
A plugin for Marble to execute a routing task.
Definition: RoutingRunnerPlugin.h:33
void setWindowTitle(const QString &)
void setMinimumHeight(int minh)
int rowCount() const
void insertWidget(int index, QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setCheckState(Qt::CheckState state)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
RoutingProfileSettingsDialog(const PluginManager *pluginManager, RoutingProfilesModel *profilesModel, QWidget *parent=0)
Definition: RoutingProfileSettingsDialog.cpp:27
void setCheckable(bool checkable)
QDialog(QWidget *parent, QFlags< Qt::WindowType > f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.