cppcheck/gui/projectfiledialog.ui

871 lines
27 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ProjectFile</class>
<widget class="QDialog" name="ProjectFile">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
2019-07-11 14:00:32 +02:00
<width>888</width>
<height>585</height>
</rect>
</property>
<property name="windowTitle">
<string>Project File</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
2017-08-04 15:10:27 +02:00
<widget class="QWidget" name="mTabPathsAndDefines">
2016-08-18 21:58:50 +02:00
<attribute name="title">
<string>Paths and Defines</string>
2016-08-18 21:58:50 +02:00
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Import Project (Visual studio / compile database/ Borland C++ Builder 6)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="mEditImportProject">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnClearImportProject">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<activeon>:/images/edit-clear.png</activeon>
</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnBrowseImportProject">
<property name="text">
<string>Browse...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="mChkAllVsConfigs">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You have a choice:&lt;/p&gt;&lt;p&gt; * Analyze all Debug and Release configurations&lt;/p&gt;&lt;p&gt; * Only analyze the first matching Debug configuration&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Analyze all Visual Studio configurations</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
2016-11-19 22:37:12 +01:00
<layout class="QHBoxLayout" name="mLayoutCheckPaths">
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
2016-11-19 22:37:12 +01:00
<widget class="QLabel" name="mLabelCheckPaths">
<property name="text">
<string>Paths:</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
2016-11-19 22:37:12 +01:00
<widget class="QListWidget" name="mListCheckPaths"/>
</item>
<item>
2016-11-19 22:37:12 +01:00
<layout class="QVBoxLayout" name="mLayoutCheckPathsButtons">
<item>
2016-11-19 22:37:12 +01:00
<widget class="QPushButton" name="mBtnAddCheckPath">
<property name="text">
<string>Add...</string>
</property>
</widget>
</item>
<item>
2016-11-19 22:37:12 +01:00
<widget class="QPushButton" name="mBtnEditCheckPath">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
2016-11-19 22:37:12 +01:00
<widget class="QPushButton" name="mBtnRemoveCheckPath">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
2016-11-19 22:37:12 +01:00
<layout class="QHBoxLayout" name="mLayoutDefines">
2016-08-18 21:58:50 +02:00
<item>
2016-11-19 22:37:12 +01:00
<widget class="QLabel" name="mLabelDefines">
2016-08-18 21:58:50 +02:00
<property name="text">
<string>Defines:</string>
</property>
<property name="buddy">
<cstring>mEditDefines</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="mEditDefines">
<property name="toolTip">
<string>Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int</string>
2016-08-18 21:58:50 +02:00
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="mLayoutUndefines">
<item>
<widget class="QLabel" name="mLabelUndefines">
<property name="text">
<string>Undefines:</string>
</property>
<property name="buddy">
<cstring>mEditUndefines</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="mEditUndefines">
<property name="toolTip">
<string>Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
2016-11-19 22:37:12 +01:00
<layout class="QHBoxLayout" name="mLayoutIncludePaths">
2016-08-18 21:58:50 +02:00
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
2016-11-19 22:37:12 +01:00
<widget class="QLabel" name="mLabelIncludePaths">
2016-08-18 21:58:50 +02:00
<property name="text">
<string>Include Paths:</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="mListIncludeDirs">
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</item>
<item>
2016-11-19 22:37:12 +01:00
<layout class="QVBoxLayout" name="mLayoutIncludePathsButtons">
<item>
<widget class="QPushButton" name="mBtnAddInclude">
<property name="text">
<string>Add...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnEditInclude">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnRemoveInclude">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="mBtnIncludeUp">
<property name="text">
<string>Up</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnIncludeDown">
<property name="text">
<string>Down</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
2016-08-18 21:58:50 +02:00
<item>
<spacer name="verticalSpacer_8">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="mTabChecking">
2017-08-04 15:10:27 +02:00
<attribute name="title">
<string>Checking</string>
2017-08-04 15:10:27 +02:00
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_15">
2017-08-04 15:10:27 +02:00
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc)</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLineEdit" name="mEditBuildDir"/>
</item>
<item>
<widget class="QPushButton" name="mBtnBrowseBuildDir">
<property name="text">
<string>Browse...</string>
</property>
</widget>
</item>
</layout>
</widget>
2017-08-04 15:10:27 +02:00
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>Platform</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_12">
<item>
<widget class="QComboBox" name="mComboBoxPlatform"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_9">
<property name="title">
<string>Analysis</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QCheckBox" name="mCheckHeaders">
<property name="text">
<string>Check code in headers (slower analysis, more results)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mCheckUnusedTemplates">
<property name="text">
<string>Check code in unused templates (slower and less accurate analysis)</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Max CTU depth</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="mMaxCtuDepth"/>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
2017-08-04 15:10:27 +02:00
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Libraries</string>
2017-08-04 15:10:27 +02:00
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QListWidget" name="mLibraries"/>
</item>
<item>
<widget class="QLabel" name="mLabelLibrariesNote">
<property name="text">
<string>Note: Put your own custom .cfg files in the same folder as the project file. You should see them above.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
2017-08-04 15:10:27 +02:00
</widget>
</item>
<item>
<spacer name="verticalSpacer_7">
2017-08-04 15:10:27 +02:00
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>96</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
2019-07-11 14:00:32 +02:00
<widget class="QWidget" name="mTabHumanKnownledge">
<attribute name="title">
<string>Extended checks</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_19">
<item>
<widget class="QGroupBox" name="groupBox_10">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>&quot;Safe&quot; interface: Cppcheck does not only check how it is actually used, but analyze any possible usage.</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_16">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="minimumSize">
<size>
<width>0</width>
<height>200</height>
</size>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>840</width>
<height>273</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_17">
<item>
<widget class="QCheckBox" name="mCheckSafeClasses">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Classes - Public interface
- public function parameters can have any value
- public functions can be called in any order
- public variables can have any value</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mCheckSafeExternalFunctions">
<property name="text">
<string>External functions
- External functions can be called in any order
- Function parameters can have any value</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mCheckSafeExternalVariables">
<property name="text">
<string>External variables
- Variable can have any value</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mCheckSafeInternalFunctions">
<property name="text">
<string>Internal/private functions
- Function parameters can have any value</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<item>
2019-07-11 14:00:32 +02:00
<widget class="QGroupBox" name="groupBox_13">
<property name="title">
<string>Input from file/network/user/...</string>
</property>
2019-07-11 14:00:32 +02:00
<layout class="QVBoxLayout" name="verticalLayout_14">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>If the return value from a function below is always completely unknown, then click on its checkbox</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QListWidget" name="mListUnknownFunctionReturn">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>60</height>
</size>
</property>
<item>
2019-07-11 14:00:32 +02:00
<property name="text">
<string>rand()</string>
</property>
</item>
2019-07-11 14:00:32 +02:00
</widget>
</item>
<item>
<widget class="QPushButton" name="mButtonAddUnknownFunctionReturn">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Add..</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="mTabWarningOptions">
2013-12-30 22:32:50 +01:00
<attribute name="title">
<string>Warning options</string>
2013-12-30 22:32:50 +01:00
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Root path:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_13">
<item>
<widget class="QLineEdit" name="mEditProjectRoot"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>Warning tags (separated by semicolon)</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLineEdit" name="mEditTags"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>Exclude source files in paths</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QListWidget" name="mListExcludedPaths"/>
</item>
<item>
<layout class="QVBoxLayout" name="layoutExcludePathButtons">
<item>
<widget class="QPushButton" name="mBtnAddIgnorePath">
<property name="text">
<string>Add...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnEditIgnorePath">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnRemoveIgnorePath">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>Suppressions</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QListWidget" name="mListSuppressions"/>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QPushButton" name="mBtnAddSuppression">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnRemoveSuppression">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_10">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>96</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="mTabAddonsAndTools">
2017-08-12 20:33:49 +02:00
<attribute name="title">
<string>Addons and tools</string>
2017-08-12 20:33:49 +02:00
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_10">
2017-09-22 18:57:53 +02:00
<item>
<widget class="QGroupBox" name="mGroupBoxAddons">
<property name="title">
<string>Addons</string>
2017-09-22 18:57:53 +02:00
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="mAddonY2038">
<property name="text">
<string>Y2038</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mAddonThreadSafety">
<property name="text">
<string>Thread safety</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Coding standards</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mAddonCert">
<property name="text">
<string>Cert</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mAddonMisra">
<property name="text">
<string>MISRA C 2012</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Misra rule texts</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="mEditMisraFile">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Copy/paste the text from Appendix A &amp;quot;Summary of guidelines&amp;quot; from the MISRA C 2012 pdf to a text file.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mBtnBrowseMisraFile">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
2017-09-22 18:57:53 +02:00
</widget>
</item>
2017-08-12 20:33:49 +02:00
<item>
<widget class="QGroupBox" name="mGroupBoxTools">
<property name="title">
<string>External tools</string>
2017-08-12 20:33:49 +02:00
</property>
<layout class="QVBoxLayout" name="verticalLayout_1">
<item>
<widget class="QCheckBox" name="mToolClangTidy">
<property name="text">
<string>Clang-tidy</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mToolClangAnalyzer">
<property name="text">
<string>Clang analyzer</string>
</property>
</widget>
</item>
</layout>
2017-08-12 20:33:49 +02:00
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
2017-08-12 20:33:49 +02:00
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>368</height>
2017-08-12 20:33:49 +02:00
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="mButtons">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>mButtons</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>mButtons</sender>
<signal>accepted()</signal>
<receiver>ProjectFile</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
2016-08-18 21:58:50 +02:00
<x>270</x>
<y>352</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>mButtons</sender>
<signal>rejected()</signal>
<receiver>ProjectFile</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
2016-08-18 21:58:50 +02:00
<x>338</x>
<y>352</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>158</y>
</hint>
</hints>
</connection>
</connections>
</ui>