You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
241 lines
18 KiB
XML
241 lines
18 KiB
XML
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.11">
|
|
<compounddef id="coptions_8cpp" kind="file" language="C++">
|
|
<compoundname>coptions.cpp</compoundname>
|
|
<includes refid="coptions_8h" local="yes">coptions.h</includes>
|
|
<includes local="yes">ui_coptions.h</includes>
|
|
<includes refid="coptionsplugins_8h" local="yes">coptionsplugins.h</includes>
|
|
<includes local="no">QTreeWidgetItem</includes>
|
|
<incdepgraph>
|
|
<node id="995">
|
|
<label>QMap</label>
|
|
</node>
|
|
<node id="996">
|
|
<label>cdbinterface.h</label>
|
|
<link refid="cdbinterface_8h"/>
|
|
<childnode refid="992" relation="include">
|
|
</childnode>
|
|
<childnode refid="993" relation="include">
|
|
</childnode>
|
|
<childnode refid="989" relation="include">
|
|
</childnode>
|
|
<childnode refid="994" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="986">
|
|
<label>cimportinterface.h</label>
|
|
<link refid="cimportinterface_8h"/>
|
|
<childnode refid="987" relation="include">
|
|
</childnode>
|
|
<childnode refid="992" relation="include">
|
|
</childnode>
|
|
<childnode refid="993" relation="include">
|
|
</childnode>
|
|
<childnode refid="989" relation="include">
|
|
</childnode>
|
|
<childnode refid="994" relation="include">
|
|
</childnode>
|
|
<childnode refid="995" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="985">
|
|
<label>cplugin.h</label>
|
|
<link refid="cplugin_8h"/>
|
|
<childnode refid="986" relation="include">
|
|
</childnode>
|
|
<childnode refid="996" relation="include">
|
|
</childnode>
|
|
<childnode refid="997" relation="include">
|
|
</childnode>
|
|
<childnode refid="998" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="999">
|
|
<label>QList</label>
|
|
</node>
|
|
<node id="1001">
|
|
<label>QStandardItemModel</label>
|
|
</node>
|
|
<node id="1000">
|
|
<label>QMainWindow</label>
|
|
</node>
|
|
<node id="993">
|
|
<label>QtPlugin</label>
|
|
</node>
|
|
<node id="1005">
|
|
<label>coptionsplugins.h</label>
|
|
<link refid="coptionsplugins_8h"/>
|
|
<childnode refid="985" relation="include">
|
|
</childnode>
|
|
<childnode refid="1006" relation="include">
|
|
</childnode>
|
|
<childnode refid="1001" relation="include">
|
|
</childnode>
|
|
<childnode refid="1003" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="987">
|
|
<label>cingredient.h</label>
|
|
<link refid="cingredient_8h"/>
|
|
<childnode refid="988" relation="include">
|
|
</childnode>
|
|
<childnode refid="989" relation="include">
|
|
</childnode>
|
|
<childnode refid="990" relation="include">
|
|
</childnode>
|
|
<childnode refid="991" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="997">
|
|
<label>QPluginLoader</label>
|
|
</node>
|
|
<node id="998">
|
|
<label>QAction</label>
|
|
</node>
|
|
<node id="1002">
|
|
<label>QDialog</label>
|
|
</node>
|
|
<node id="991">
|
|
<label>QDomDocument</label>
|
|
</node>
|
|
<node id="1006">
|
|
<label>QWidget</label>
|
|
</node>
|
|
<node id="988">
|
|
<label>QDate</label>
|
|
</node>
|
|
<node id="992">
|
|
<label>cInterface.h</label>
|
|
<link refid="c_interface_8h"/>
|
|
<childnode refid="989" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="989">
|
|
<label>QString</label>
|
|
</node>
|
|
<node id="1007">
|
|
<label>QTreeWidgetItem</label>
|
|
</node>
|
|
<node id="990">
|
|
<label>QFile</label>
|
|
</node>
|
|
<node id="1004">
|
|
<label>ui_coptions.h</label>
|
|
</node>
|
|
<node id="1003">
|
|
<label>QItemSelection</label>
|
|
</node>
|
|
<node id="984">
|
|
<label>cmainwindow.h</label>
|
|
<link refid="cmainwindow_8h"/>
|
|
<childnode refid="985" relation="include">
|
|
</childnode>
|
|
<childnode refid="999" relation="include">
|
|
</childnode>
|
|
<childnode refid="1000" relation="include">
|
|
</childnode>
|
|
<childnode refid="1001" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="983">
|
|
<label>coptions.h</label>
|
|
<link refid="coptions_8h"/>
|
|
<childnode refid="984" relation="include">
|
|
</childnode>
|
|
<childnode refid="1002" relation="include">
|
|
</childnode>
|
|
<childnode refid="1001" relation="include">
|
|
</childnode>
|
|
<childnode refid="1003" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="982">
|
|
<label>Kooky/coptions.cpp</label>
|
|
<link refid="coptions.cpp"/>
|
|
<childnode refid="983" relation="include">
|
|
</childnode>
|
|
<childnode refid="1004" relation="include">
|
|
</childnode>
|
|
<childnode refid="1005" relation="include">
|
|
</childnode>
|
|
<childnode refid="1007" relation="include">
|
|
</childnode>
|
|
</node>
|
|
<node id="994">
|
|
<label>QStringList</label>
|
|
</node>
|
|
</incdepgraph>
|
|
<briefdescription>
|
|
</briefdescription>
|
|
<detaileddescription>
|
|
</detaileddescription>
|
|
<programlisting>
|
|
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>"<ref refid="coptions_8h" kindref="compound">coptions.h</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"ui_coptions.h"</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="coptionsplugins_8h" kindref="compound">coptionsplugins.h</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="5"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><QTreeWidgetItem></highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="7"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="8"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="9" refid="classc_options_1ab10e5433e2eb0ea7ca3ea65746e3c132" refkind="member"><highlight class="normal"><ref refid="classc_options_1ab10e5433e2eb0ea7ca3ea65746e3c132" kindref="member">cOptions::cOptions</ref>(QWidget<sp/>*parent)<sp/>:</highlight></codeline>
|
|
<codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/>QDialog(parent),</highlight></codeline>
|
|
<codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/>ui(new<sp/><ref refid="namespace_ui" kindref="compound">Ui</ref>::<ref refid="classc_options" kindref="compound">cOptions</ref>)</highlight></codeline>
|
|
<codeline lineno="12"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a2b71f5c334967a6eb3ec85cc20162cf9" kindref="member">init</ref>();</highlight></codeline>
|
|
<codeline lineno="14"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a19b1ed8dd34f5fcde6dd4ac6167f3b42" kindref="member">m_lpMainWindow</ref><sp/><sp/>=<sp/>(<ref refid="classc_main_window" kindref="compound">cMainWindow</ref>*)parent;</highlight></codeline>
|
|
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a9891a847c04b7581120a51989ff73328" kindref="member">m_pluginList</ref><sp/><sp/><sp/><sp/>=<sp/><ref refid="classc_options_1a19b1ed8dd34f5fcde6dd4ac6167f3b42" kindref="member">m_lpMainWindow</ref>-><ref refid="classc_main_window_1ae82e278f9aa88d228cd049392a314251" kindref="member">pluginList</ref>();</highlight></codeline>
|
|
<codeline lineno="17"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/>QStandardItem*<sp/><sp/><sp/><sp/><sp/><sp/>lpPluginRoot<sp/><sp/><sp/><sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>QStandardItem(</highlight><highlight class="stringliteral">"Plugins"</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a6f83c5dacdeb7901b900b826640a5f1d" kindref="member">m_lpOptionsTreeModel</ref>->appendRow(lpPluginRoot);</highlight></codeline>
|
|
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal">(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>z<sp/>=<sp/>0;z<sp/><<sp/><ref refid="classc_options_1a9891a847c04b7581120a51989ff73328" kindref="member">m_pluginList</ref>.count();z++)</highlight></codeline>
|
|
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>QStandardItem*<sp/><sp/><sp/><sp/><sp/><sp/>lpItemNew<sp/><sp/><sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>QStandardItem(<ref refid="classc_options_1a9891a847c04b7581120a51989ff73328" kindref="member">m_pluginList</ref>.at(z)->pluginName());</highlight></codeline>
|
|
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lpPluginRoot->appendRow(lpItemNew);</highlight></codeline>
|
|
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpOptionsTree->expandAll();</highlight></codeline>
|
|
<codeline lineno="27"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="29" refid="classc_options_1a7bf237a91867bc8875ee3b09cdfa3d1c" refkind="member"><highlight class="normal"><ref refid="classc_options_1a7bf237a91867bc8875ee3b09cdfa3d1c" kindref="member">cOptions::~cOptions</ref>()</highlight></codeline>
|
|
<codeline lineno="30"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal"><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>;</highlight></codeline>
|
|
<codeline lineno="32"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="33"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="34" refid="classc_options_1a2b71f5c334967a6eb3ec85cc20162cf9" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classc_options_1a2b71f5c334967a6eb3ec85cc20162cf9" kindref="member">cOptions::init</ref>()</highlight></codeline>
|
|
<codeline lineno="35"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->setupUi(</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a6f83c5dacdeb7901b900b826640a5f1d" kindref="member">m_lpOptionsTreeModel</ref><sp/><sp/><sp/><sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>QStandardItemModel(0,<sp/>1);</highlight></codeline>
|
|
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpOptionsTree->setModel(<ref refid="classc_options_1a6f83c5dacdeb7901b900b826640a5f1d" kindref="member">m_lpOptionsTreeModel</ref>);</highlight></codeline>
|
|
<codeline lineno="40"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpSplitter->setStretchFactor(0,<sp/>0);</highlight></codeline>
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpSplitter->setStretchFactor(1,<sp/>1);</highlight></codeline>
|
|
<codeline lineno="43"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/>connect(<ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpOptionsTree->selectionModel(),<sp/>SIGNAL(selectionChanged(QItemSelection,QItemSelection)),<sp/>SLOT(<ref refid="classc_options_1ac38dce7a12374ec291023a724c8d30ac" kindref="member">onOptionsTreeSelectionChanged</ref>(QItemSelection,QItemSelection)));</highlight></codeline>
|
|
<codeline lineno="45"><highlight class="normal">}</highlight></codeline>
|
|
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="47" refid="classc_options_1ac38dce7a12374ec291023a724c8d30ac" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classc_options_1ac38dce7a12374ec291023a724c8d30ac" kindref="member">cOptions::onOptionsTreeSelectionChanged</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>QItemSelection&<sp/>selected,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>QItemSelection&<sp/></highlight><highlight class="comment">/*deselected*/</highlight><highlight class="normal">)</highlight></codeline>
|
|
<codeline lineno="48"><highlight class="normal">{</highlight></codeline>
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>QStandardItem*<sp/><sp/>lpSelected;</highlight></codeline>
|
|
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(selected.indexes().count())</highlight></codeline>
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lpSelected<sp/><sp/>=<sp/><ref refid="classc_options_1a6f83c5dacdeb7901b900b826640a5f1d" kindref="member">m_lpOptionsTreeModel</ref>->itemFromIndex(selected.indexes().at(0));</highlight></codeline>
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline>
|
|
<codeline lineno="55"><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(!lpSelected->text().compare(</highlight><highlight class="stringliteral">"plugins"</highlight><highlight class="normal">,<sp/>Qt::CaseInsensitive))</highlight></codeline>
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classc_options_plugins" kindref="compound">cOptionsPlugins</ref>*<sp/><sp/><sp/><sp/>lpOptionsPlugins<sp/><sp/><sp/><sp/>=<sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classc_options_plugins" kindref="compound">cOptionsPlugins</ref>(</highlight><highlight class="keyword">this</highlight><highlight class="normal">);</highlight></codeline>
|
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>lpOptionsPlugins-><ref refid="classc_options_plugins_1ab6ef94ac452b34fad3bfc8b3a2362c53" kindref="member">setPlugins</ref>(<ref refid="classc_options_1a9891a847c04b7581120a51989ff73328" kindref="member">m_pluginList</ref>);</highlight></codeline>
|
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpOptionsScrollArea->setWidget(lpOptionsPlugins);</highlight></codeline>
|
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classc_options_1a60bdd139c27b5a5e77c018ff41880995" kindref="member">ui</ref>->m_lpOptionsScrollArea->setWidget(</highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>QWidget);</highlight></codeline>
|
|
<codeline lineno="64"><highlight class="normal">}</highlight></codeline>
|
|
</programlisting>
|
|
<location file="Kooky/coptions.cpp"/>
|
|
</compounddef>
|
|
</doxygen>
|