<trclass="memdesc:a44a7e98e3b55215f03d47cb44949ccef"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Can be used to overwrite the default icon for categories. <ahref="#a44a7e98e3b55215f03d47cb44949ccef">More...</a><br/></td></tr>
<trclass="memdesc:a75b197a1c259e4a7a23498f594a9ec0c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Loads the settings setup from the given file. <ahref="#a75b197a1c259e4a7a23498f594a9ec0c">More...</a><br/></td></tr>
<divclass="textblock"><p>An interface for a generic settings setup loader. </p>
<p>It is used by the <aclass="el"href="class_qt_mvvm_1_1_settings_view_model.html"title="A ViewModel for a generic settings dialog based of an XML settings file. ">SettingsViewModel</a> to load a <aclass="el"href="namespace_qt_mvvm_1_1_settings_elements.html#struct_qt_mvvm_1_1_settings_elements_1_1_setup"title="The whole settings setup. ">SettingsElements::Setup</a> from a generic file. The default implementation that is used by default implements a loader for an XML format. You can implement your own format, but unless you need to open things other then normal files/resources (or hate XML), there is no advantage of doing so.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="settingssetup_8h.html#af1563f0d6fb636b0217430681053ec1c"title="The Iid of the QtMvvm::ISettingsSetupLoader class. ">QtMvvm_ISettingsSetupLoaderIid</a>, <aclass="el"href="class_qt_mvvm_1_1_settings_view_model.html"title="A ViewModel for a generic settings dialog based of an XML settings file. ">SettingsViewModel</a>, <aclass="el"href="class_qt_mvvm_1_1_settings_loader_exception.html"title="An exception throw in case loading a settings setup went wrong. ">SettingsLoaderException</a>, <aclass="el"href="namespace_qt_mvvm_1_1_settings_elements.html#struct_qt_mvvm_1_1_settings_elements_1_1_setup"title="The whole settings setup. ">SettingsElements::Setup</a>, <aclass="el"href="settings_xml.html">The XML settings format</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="settingssetup_8h_source.html#l00115">115</a> of file <aclass="el"href="settingssetup_8h_source.html">settingssetup.h</a>.</p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Can be used to overwrite the default icon for categories. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">defaultIcon</td><td>The URL to the icon to use as overwrite</td></tr>
</table>
</dd>
</dl>
<p>The default icon used by the XML loader is <code>qrc:/de/skycoder42/qtmvvm/icons/settings.svg</code>. If you want to overwrite that path (for example because you want to use a png instead of a svg icon) you can do so via this function</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_settings_dialog.html#adb8b5cbc4e49f7b734e167cb5e642672"title="Return a url to overwrite the default settings icon. ">SettingsDialog::iconOverwrite</a></dd></dl>
<p>Loads the settings setup from the given file. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">filePath</td><td>The path to the file to be loaded </td></tr>
<tr><tdclass="paramname">frontend</td><td>The name of the GUI frontend beeing used </td></tr>
<tr><tdclass="paramname">selector</td><td>The currently active file selectors </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The loaded and filtered settings setup </dd></dl>
<dlclass="exception"><dt>Exceptions</dt><dd>
<tableclass="exception">
<tr><tdclass="paramname"><aclass="el"href="class_qt_mvvm_1_1_settings_loader_exception.html"title="An exception throw in case loading a settings setup went wrong. ">SettingsLoaderException</a></td><td>In case the loaded file is invalid</td></tr>
</table>
</dd>
</dl>
<p>The frontend is used to filter elements by their <code>frontends</code> variable. It is always the name of the view type that is loading the settings via the viewmodel. Current values are:</p>
<ul>
<li><code>widgets</code> for the Widgets GUI</li>
<li><code>quick</code> for the Quick Controls 2 GUI</li>
</ul>
<p>The selector should be used to a.) select the files to open (event the one passed). Use the select method to apply the paths. This applies for the elements as well, via the <code>selectors</code> variable.</p>
<dlclass="section note"><dt>Note</dt><dd>The syntax etc of these two variables depends on your loader and they are only used by you, not by anyone using this method. The default syntax used by the XML load implementation can be found in the <aclass="el"href="settings_xml.html">XML documentation</a></dd></dl>