- enhancement: New menu item "Code completion".

This commit is contained in:
Roy Qu 2024-05-08 10:27:00 +08:00
parent 4eecf263b5
commit d21de624ea
12 changed files with 241 additions and 164 deletions

View File

@ -165,6 +165,7 @@ Red Panda C++ Version 2.27
- change: Set "Ctrl+G" as the shortcut for "Goto page..."
- change: Set "Ctrl+B" as the shortcut for "Toggle Bookmark"
- fix: Fail to evaluate expressions if macro can't be expanded.
- enhancement: New menu item "Code completion".
Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors.

View File

@ -2338,6 +2338,23 @@ void Editor::gotoBlockEnd()
processCommand(QSynedit::EditCommand::BlockEnd,QChar(),nullptr);
}
void Editor::showCodeCompletion()
{
if (!pSettings->codeCompletion().enabled())
return;
if (mParser) {
if (mParser->isIncludeLine(lineText())) {
// is a #include line
showHeaderCompletion(false);
} else {
showCompletion("",true,CodeCompletionType::Normal);
}
} else {
showCompletion("",true,CodeCompletionType::KeywordsOnly);
}
}
QStringList Editor::getOwnerExpressionAndMemberAtPositionForCompletion(
const QSynedit::BufferCoord &pos,
QString &memberOperator,

View File

@ -213,6 +213,7 @@ public:
void deleteToBOL();
void gotoBlockStart();
void gotoBlockEnd();
void showCodeCompletion();
QStringList getOwnerExpressionAndMemberAtPositionForCompletion(
const QSynedit::BufferCoord& pos,

View File

@ -10303,3 +10303,12 @@ void MainWindow::on_actionToggle_Bookmark_triggered()
}
}
void MainWindow::on_actionCode_Completion_triggered()
{
Editor* editor = mEditorList->getEditor();
if (editor) {
editor->showCodeCompletion();
}
}

View File

@ -858,6 +858,8 @@ private slots:
void on_actionToggle_Bookmark_triggered();
void on_actionCode_Completion_triggered();
private:
Ui::MainWindow *ui;
bool mFullInitialized;

View File

@ -19,7 +19,7 @@
</iconset>
</property>
<property name="dockOptions">
<set>QMainWindow::AnimatedDocks</set>
<set>QMainWindow::DockOption::AnimatedDocks</set>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout">
@ -68,7 +68,7 @@
</sizepolicy>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="handleWidth">
<number>1</number>
@ -119,8 +119,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1935</width>
<height>24</height>
<width>2002</width>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -241,6 +241,8 @@
<addaction name="actionGoto_block_start"/>
<addaction name="actionGoto_block_end"/>
<addaction name="separator"/>
<addaction name="actionCode_Completion"/>
<addaction name="separator"/>
<addaction name="actionToggle_Bookmark"/>
<addaction name="actionModify_Bookmark_Description"/>
<addaction name="separator"/>
@ -473,10 +475,10 @@
</widget>
<widget class="QDockWidget" name="dockExplorer">
<property name="features">
<set>QDockWidget::DockWidgetMovable</set>
<set>QDockWidget::DockWidgetFeature::DockWidgetMovable</set>
</property>
<property name="allowedAreas">
<set>Qt::BottomDockWidgetArea|Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea</set>
<set>Qt::DockWidgetArea::BottomDockWidgetArea|Qt::DockWidgetArea::LeftDockWidgetArea|Qt::DockWidgetArea::RightDockWidgetArea</set>
</property>
<property name="windowTitle">
<string>Explorer</string>
@ -492,7 +494,7 @@
</sizepolicy>
</property>
<property name="tabPosition">
<enum>QTabWidget::West</enum>
<enum>QTabWidget::TabPosition::West</enum>
</property>
<property name="currentIndex">
<number>4</number>
@ -550,7 +552,7 @@
<bool>true</bool>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
<enum>QComboBox::InsertPolicy::InsertAtTop</enum>
</property>
</widget>
</item>
@ -560,19 +562,19 @@
<item>
<widget class="QTreeView" name="treeFiles">
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
<set>QAbstractItemView::EditTrigger::EditKeyPressed|QAbstractItemView::EditTrigger::SelectedClicked</set>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::DragDrop</enum>
<enum>QAbstractItemView::DragDropMode::DragDrop</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
<enum>Qt::DropAction::MoveAction</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
<enum>QAbstractItemView::SelectionMode::ExtendedSelection</enum>
</property>
<property name="sortingEnabled">
<bool>false</bool>
@ -607,22 +609,22 @@
<item>
<widget class="QTreeView" name="projectView">
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
<set>QAbstractItemView::EditTrigger::EditKeyPressed|QAbstractItemView::EditTrigger::SelectedClicked</set>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
<enum>QAbstractItemView::DragDropMode::InternalMove</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
<enum>Qt::DropAction::MoveAction</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
<enum>QAbstractItemView::SelectionMode::ExtendedSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<property name="autoExpandDelay">
<number>500</number>
@ -657,13 +659,13 @@
<item>
<widget class="QTreeView" name="watchView">
<property name="editTriggers">
<set>QAbstractItemView::DoubleClicked</set>
<set>QAbstractItemView::EditTrigger::DoubleClicked</set>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
<enum>QAbstractItemView::SelectionMode::ExtendedSelection</enum>
</property>
<property name="textElideMode">
<enum>Qt::ElideNone</enum>
<enum>Qt::TextElideMode::ElideNone</enum>
</property>
<property name="wordWrap">
<bool>false</bool>
@ -701,7 +703,7 @@
<item>
<widget class="QTreeView" name="classBrowser">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOn</enum>
</property>
<property name="rootIsDecorated">
<bool>true</bool>
@ -739,10 +741,10 @@
<item>
<widget class="QLabel" name="lblProblemSet">
<property name="frameShape">
<enum>QFrame::Panel</enum>
<enum>QFrame::Shape::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
<enum>QFrame::Shadow::Plain</enum>
</property>
<property name="text">
<string>Problem Set</string>
@ -869,7 +871,7 @@
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -888,19 +890,19 @@
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
<enum>QAbstractItemView::DragDropMode::InternalMove</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
<enum>Qt::DropAction::MoveAction</enum>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
<enum>QAbstractItemView::SelectionMode::ExtendedSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
</widget>
</item>
@ -910,10 +912,10 @@
</widget>
<widget class="QDockWidget" name="dockMessages">
<property name="features">
<set>QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetVerticalTitleBar</set>
<set>QDockWidget::DockWidgetFeature::DockWidgetMovable|QDockWidget::DockWidgetFeature::DockWidgetVerticalTitleBar</set>
</property>
<property name="allowedAreas">
<set>Qt::BottomDockWidgetArea|Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea</set>
<set>Qt::DockWidgetArea::BottomDockWidgetArea|Qt::DockWidgetArea::LeftDockWidgetArea|Qt::DockWidgetArea::RightDockWidgetArea</set>
</property>
<property name="windowTitle">
<string>Messages</string>
@ -929,7 +931,7 @@
</sizepolicy>
</property>
<property name="tabPosition">
<enum>QTabWidget::South</enum>
<enum>QTabWidget::TabPosition::South</enum>
</property>
<property name="currentIndex">
<number>2</number>
@ -965,7 +967,7 @@
</font>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
</property>
<property name="tabKeyNavigation">
<bool>false</bool>
@ -977,10 +979,10 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::SelectionMode::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
@ -1012,7 +1014,7 @@
<bool>false</bool>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::WidgetWidth</enum>
<enum>QPlainTextEdit::LineWrapMode::WidgetWidth</enum>
</property>
<property name="readOnly">
<bool>true</bool>
@ -1047,17 +1049,17 @@
<item>
<widget class="QSplitter" name="splitterDebug">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="handleWidth">
<number>3</number>
</property>
<widget class="QFrame" name="frmEvaluate">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
@ -1091,7 +1093,7 @@
<bool>true</bool>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
<enum>QComboBox::InsertPolicy::InsertAtTop</enum>
</property>
</widget>
</item>
@ -1109,7 +1111,7 @@
</widget>
<widget class="QTabWidget" name="debugViews">
<property name="tabPosition">
<enum>QTabWidget::North</enum>
<enum>QTabWidget::TabPosition::North</enum>
</property>
<property name="currentIndex">
<number>3</number>
@ -1134,10 +1136,10 @@
<item>
<widget class="QConsole" name="debugConsole">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
</widget>
</item>
@ -1166,13 +1168,13 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::SelectionMode::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<property name="textElideMode">
<enum>Qt::ElideNone</enum>
<enum>Qt::TextElideMode::ElideNone</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
@ -1204,13 +1206,13 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::SelectionMode::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<property name="textElideMode">
<enum>Qt::ElideNone</enum>
<enum>Qt::TextElideMode::ElideNone</enum>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
@ -1282,7 +1284,7 @@
<bool>true</bool>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
<enum>QComboBox::InsertPolicy::InsertAtTop</enum>
</property>
</widget>
</item>
@ -1353,7 +1355,7 @@
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
<enum>QComboBox::SizeAdjustPolicy::AdjustToContents</enum>
</property>
</widget>
</item>
@ -1376,7 +1378,7 @@
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -1423,10 +1425,10 @@
<bool>true</bool>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
<enum>QComboBox::InsertPolicy::InsertAtTop</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
<enum>QComboBox::SizeAdjustPolicy::AdjustToContents</enum>
</property>
</widget>
</item>
@ -1454,7 +1456,7 @@
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -1525,10 +1527,10 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::SelectionMode::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<property name="sortingEnabled">
<bool>true</bool>
@ -1560,7 +1562,7 @@
<item>
<widget class="QSplitter" name="splitterProblem">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<widget class="QWidget" name="panelProblemCaseInfo" native="true">
<layout class="QVBoxLayout" name="verticalLayout_7">
@ -1582,7 +1584,7 @@
<item>
<widget class="QLabel" name="lblProblem">
<property name="frameShape">
<enum>QFrame::Box</enum>
<enum>QFrame::Shape::Box</enum>
</property>
<property name="text">
<string>Problem</string>
@ -1679,7 +1681,7 @@
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -1711,7 +1713,7 @@
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -1752,19 +1754,19 @@
<bool>false</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
<enum>QAbstractItemView::DragDropMode::InternalMove</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
<enum>Qt::DropAction::MoveAction</enum>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::SelectionMode::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::SelectionBehavior::SelectRows</enum>
</property>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>200</number>
@ -1862,7 +1864,7 @@
</sizepolicy>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
<enum>QPlainTextEdit::LineWrapMode::NoWrap</enum>
</property>
</widget>
</item>
@ -1875,7 +1877,7 @@
</sizepolicy>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
<enum>QPlainTextEdit::LineWrapMode::NoWrap</enum>
</property>
</widget>
</item>
@ -1888,7 +1890,7 @@
</sizepolicy>
</property>
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
<enum>QPlainTextEdit::LineWrapMode::NoWrap</enum>
</property>
<property name="readOnly">
<bool>true</bool>
@ -1976,7 +1978,7 @@
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -2562,7 +2564,7 @@
<string>Open containing folder</string>
</property>
<property name="shortcutContext">
<enum>Qt::ApplicationShortcut</enum>
<enum>Qt::ShortcutContext::ApplicationShortcut</enum>
</property>
</action>
<action name="actionOpen_Terminal">
@ -2667,7 +2669,7 @@
<string>Ctrl+M</string>
</property>
<property name="shortcutContext">
<enum>Qt::ApplicationShortcut</enum>
<enum>Qt::ShortcutContext::ApplicationShortcut</enum>
</property>
</action>
<action name="actionC_C_Reference">
@ -3110,7 +3112,7 @@
<string>Page Up</string>
</property>
<property name="menuRole">
<enum>QAction::TextHeuristicRole</enum>
<enum>QAction::MenuRole::TextHeuristicRole</enum>
</property>
</action>
<action name="actionPage_Down">
@ -3118,7 +3120,7 @@
<string>Page Down</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Line_Start">
@ -3126,7 +3128,7 @@
<string>Goto Line Start</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Line_End">
@ -3134,7 +3136,7 @@
<string>Goto Line End</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_File_Start">
@ -3142,7 +3144,7 @@
<string>Goto File Start</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_File_End">
@ -3150,7 +3152,7 @@
<string>Goto File End</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionPage_Up_and_Select">
@ -3158,7 +3160,7 @@
<string>Page Up and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionPage_Down_and_Select">
@ -3166,7 +3168,7 @@
<string>Page Down and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Page_Start">
@ -3174,7 +3176,7 @@
<string>Goto Page Start</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Page_End">
@ -3182,7 +3184,7 @@
<string>Goto Page End</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Page_Start_and_Select">
@ -3190,7 +3192,7 @@
<string>Goto Page Start and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Page_End_and_Select">
@ -3198,7 +3200,7 @@
<string>Goto Page End and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Line_Start_and_Select">
@ -3206,7 +3208,7 @@
<string>Goto Line Start and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_Line_End_and_Select">
@ -3214,7 +3216,7 @@
<string>Goto Line End and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_File_Start_and_Select">
@ -3222,7 +3224,7 @@
<string>Goto File Start and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionGoto_File_End_and_Select">
@ -3230,7 +3232,7 @@
<string>Goto File End and Select</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionClose_Others">
@ -3238,7 +3240,7 @@
<string>Close Others</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionOI_Wiki">
@ -3246,7 +3248,7 @@
<string>OI Wiki</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionTurtle_Graphics_Manual">
@ -3254,7 +3256,7 @@
<string>Turtle Graphics Tutorial</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionToggle_Bookmark">
@ -3265,7 +3267,18 @@
<string>Ctrl+B</string>
</property>
<property name="menuRole">
<enum>QAction::NoRole</enum>
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="actionCode_Completion">
<property name="text">
<string>Code Completion</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+/</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
</widget>

View File

@ -32,7 +32,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Search Actions</string>
<string>Filter Actions</string>
</property>
</widget>
</item>

View File

@ -1420,7 +1420,7 @@
<translation type="vanished">O texto a ser removido excede o limite de caracteres!</translation>
</message>
<message>
<location line="+2894"/>
<location line="+2906"/>
<source>Print Document</source>
<translation>Imprimir documento</translation>
</message>
@ -1458,7 +1458,7 @@
<translation>Apenas leitura</translation>
</message>
<message>
<location line="-5397"/>
<location line="-5409"/>
<location line="+505"/>
<source>Error Load File</source>
<translation type="unfinished">Erro ao carregar arquivo</translation>
@ -2661,7 +2661,7 @@
</message>
<message>
<location line="+21"/>
<source>Search Actions</source>
<source>Filter Actions</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -4286,7 +4286,7 @@
<translation>Red Panda C++</translation>
</message>
<message>
<location line="+497"/>
<location line="+499"/>
<location line="+2252"/>
<source>Files</source>
<translation>Arquivos</translation>
@ -4424,8 +4424,8 @@
<translation>Expressão de endereço:</translation>
</message>
<message>
<location line="-1037"/>
<location line="+1076"/>
<location line="-1039"/>
<location line="+1078"/>
<location line="+1505"/>
<location filename="../mainwindow.cpp" line="+5886"/>
<source>Search</source>
@ -4548,7 +4548,7 @@
<translation type="vanished">...</translation>
</message>
<message>
<location line="-1788"/>
<location line="-1790"/>
<source>File</source>
<translation>Arquivo</translation>
</message>
@ -4570,7 +4570,7 @@
</message>
<message>
<location line="+55"/>
<location line="+161"/>
<location line="+163"/>
<location filename="../mainwindow.cpp" line="+4324"/>
<location line="+1"/>
<location line="+1"/>
@ -5097,12 +5097,22 @@
<source>Goto Declaration</source>
<translation>Declaração Goto</translation>
</message>
<message>
<location line="+732"/>
<source>Code Completion</source>
<translation type="unfinished">Complementar código</translation>
</message>
<message>
<location line="+3"/>
<source>Ctrl+Shift+/</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ctrl+Shift+G</source>
<translation type="vanished">Ctrl+Shift+G</translation>
</message>
<message>
<location line="+8"/>
<location line="-727"/>
<source>Goto Definition</source>
<translation>Definição Goto</translation>
</message>
@ -7081,7 +7091,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="-3072"/>
<location filename="../mainwindow.ui" line="-3074"/>
<source>Move Caret</source>
<translation type="unfinished"></translation>
</message>
@ -8817,7 +8827,7 @@
</message>
<message>
<location filename="../compiler/compilerinfo.cpp" line="+92"/>
<location line="+347"/>
<location line="+349"/>
<source>Code Generation</source>
<translation>Geração de código</translation>
</message>
@ -8830,7 +8840,7 @@
<translation type="vanished">Otimizar menor, porém mantendo completa compatibilidade (-tune)</translation>
</message>
<message>
<location line="-261"/>
<location line="-263"/>
<source>Enable use of specific instructions (-mx)</source>
<translation>Habilitar uso de instruções específicar (-mx)</translation>
</message>
@ -8902,7 +8912,7 @@
<translation type="vanished">Link para um programa Objective C (-lobjc)</translation>
</message>
<message>
<location line="+5"/>
<location line="+7"/>
<source>Do not use standard system libraries (-nostdlib)</source>
<translation>Não usar bibliotecas padrões do sistema (-nostdlib)</translation>
</message>
@ -8917,7 +8927,7 @@
<translation>Não gerar executável (-s)</translation>
</message>
<message>
<location line="-40"/>
<location line="-42"/>
<source>Generate debugging information (-g3)</source>
<translation>Gerar informação para depuração (-g3)</translation>
</message>
@ -8934,7 +8944,7 @@
<translation type="vanished">Não montar, compilar e gerar código em assembly (-S)</translation>
</message>
<message>
<location line="+36"/>
<location line="+38"/>
<source>Use pipes instead of temporary files during compilation (-pipe)</source>
<translation>Usar pipes em lugar de arquivos temporários durante compilação (-pipe)</translation>
</message>
@ -9085,7 +9095,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../compiler/compilerinfo.cpp" line="-105"/>
<location filename="../compiler/compilerinfo.cpp" line="-107"/>
<source>C++ Language standard (-std)</source>
<translation type="unfinished"></translation>
</message>
@ -9155,7 +9165,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+248"/>
<location line="+250"/>
<source>Processor (-m)</source>
<translation type="unfinished"></translation>
</message>
@ -9175,12 +9185,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-262"/>
<location line="-263"/>
<source>Stack Size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+263"/>
<location line="+264"/>
<source>Use movc instead of movx to read from external ram</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1678,7 +1678,7 @@ p, li { white-space: pre-wrap; }
<translation>: %1</translation>
</message>
<message>
<location line="+1159"/>
<location line="+1171"/>
<source>Print Document</source>
<translation></translation>
</message>
@ -2966,8 +2966,12 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location line="+21"/>
<source>Filter Actions</source>
<translation></translation>
</message>
<message>
<source>Search Actions</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<source>Keyword</source>
@ -4667,7 +4671,7 @@ p, li { white-space: pre-wrap; }
<translation>C++</translation>
</message>
<message>
<location line="+931"/>
<location line="+933"/>
<location line="+1834"/>
<location filename="../mainwindow.cpp" line="+4658"/>
<location line="+3"/>
@ -4682,7 +4686,7 @@ p, li { white-space: pre-wrap; }
<translation type="vanished"></translation>
</message>
<message>
<location line="-2651"/>
<location line="-2653"/>
<source>File</source>
<translation></translation>
</message>
@ -4693,18 +4697,18 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<location line="+1966"/>
<location line="+1968"/>
<location line="+3"/>
<source>Run</source>
<translation></translation>
</message>
<message>
<location line="-1938"/>
<location line="-1940"/>
<source>Edit</source>
<translation></translation>
</message>
<message>
<location line="+86"/>
<location line="+88"/>
<location line="+328"/>
<location line="+2147"/>
<source>Project</source>
@ -4774,8 +4778,8 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<location line="-1002"/>
<location line="+1076"/>
<location line="-1004"/>
<location line="+1078"/>
<location line="+1505"/>
<location filename="../mainwindow.cpp" line="+5886"/>
<source>Search</source>
@ -4807,13 +4811,13 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<location line="-2325"/>
<location line="-2327"/>
<source>Execute</source>
<translation></translation>
</message>
<message>
<location line="+80"/>
<location line="+161"/>
<location line="+163"/>
<location filename="../mainwindow.cpp" line="+4"/>
<location line="+1"/>
<location line="+1"/>
@ -5108,12 +5112,12 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<location line="-2138"/>
<location line="-2140"/>
<source>Move Caret</source>
<translation></translation>
</message>
<message>
<location line="+539"/>
<location line="+541"/>
<location line="+27"/>
<location line="+2023"/>
<source>Problem Set</source>
@ -5559,12 +5563,22 @@ p, li { white-space: pre-wrap; }
<source>Goto Declaration</source>
<translation></translation>
</message>
<message>
<location line="+732"/>
<source>Code Completion</source>
<translation></translation>
</message>
<message>
<location line="+3"/>
<source>Ctrl+Shift+/</source>
<translation>Ctrl+Shift+/</translation>
</message>
<message>
<source>Ctrl+Shift+G</source>
<translation type="vanished">Ctrl+Shift+G</translation>
</message>
<message>
<location line="+8"/>
<location line="-727"/>
<source>Goto Definition</source>
<translation></translation>
</message>
@ -9275,7 +9289,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../compiler/compilerinfo.cpp" line="+92"/>
<location line="+347"/>
<location line="+349"/>
<source>Code Generation</source>
<translation></translation>
</message>
@ -9288,7 +9302,7 @@ p, li { white-space: pre-wrap; }
<translation type="vanished">(-tune)</translation>
</message>
<message>
<location line="-261"/>
<location line="-263"/>
<source>Enable use of specific instructions (-mx)</source>
<translation>(-mx)</translation>
</message>
@ -9303,7 +9317,7 @@ p, li { white-space: pre-wrap; }
<translation>使(-mx)</translation>
</message>
<message>
<location line="+274"/>
<location line="+276"/>
<source>Processor (-m)</source>
<translation>(-m)</translation>
</message>
@ -9316,7 +9330,7 @@ p, li { white-space: pre-wrap; }
<translation type="vanished"></translation>
</message>
<message>
<location line="-272"/>
<location line="-274"/>
<source>Generate debugging information (-g3)</source>
<translation>(-g3)</translation>
</message>
@ -9384,12 +9398,12 @@ p, li { white-space: pre-wrap; }
<translation>ISO C/C++</translation>
</message>
<message>
<location line="+25"/>
<location line="+26"/>
<source>Stack Size</source>
<translation></translation>
</message>
<message>
<location line="+252"/>
<location line="+253"/>
<source>Language standard (--std)</source>
<translation>C语言标准(--std)</translation>
</message>
@ -9473,7 +9487,7 @@ p, li { white-space: pre-wrap; }
<translation type="vanished">ISO C/C++/C++0x(-pedantic)</translation>
</message>
<message>
<location line="-309"/>
<location line="-311"/>
<source>Only check the code for syntax errors (-fsyntax-only)</source>
<translation>(-fsyntax-only)</translation>
</message>
@ -9497,7 +9511,7 @@ p, li { white-space: pre-wrap; }
<translation type="vanished">Objective-C程序 (-lobjc)</translation>
</message>
<message>
<location line="+5"/>
<location line="+7"/>
<source>Do not use standard system libraries (-nostdlib)</source>
<translation>使(-nostdlib)</translation>
</message>

View File

@ -1241,7 +1241,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+2894"/>
<location line="+2906"/>
<source>Print Document</source>
<translation type="unfinished"></translation>
</message>
@ -1279,7 +1279,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-5397"/>
<location line="-5409"/>
<location line="+505"/>
<source>Error Load File</source>
<translation type="unfinished"></translation>
@ -2422,7 +2422,7 @@
</message>
<message>
<location line="+21"/>
<source>Search Actions</source>
<source>Filter Actions</source>
<translation type="unfinished"></translation>
</message>
</context>
@ -4019,7 +4019,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+497"/>
<location line="+499"/>
<location line="+2252"/>
<source>Files</source>
<translation type="unfinished"></translation>
@ -4157,8 +4157,8 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-1037"/>
<location line="+1076"/>
<location line="-1039"/>
<location line="+1078"/>
<location line="+1505"/>
<location filename="../mainwindow.cpp" line="+5886"/>
<source>Search</source>
@ -4281,7 +4281,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-1788"/>
<location line="-1790"/>
<source>File</source>
<translation type="unfinished"></translation>
</message>
@ -4303,7 +4303,7 @@
</message>
<message>
<location line="+55"/>
<location line="+161"/>
<location line="+163"/>
<location filename="../mainwindow.cpp" line="+4324"/>
<location line="+1"/>
<location line="+1"/>
@ -4824,7 +4824,17 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-449"/>
<location line="+267"/>
<source>Code Completion</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Ctrl+Shift+/</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-719"/>
<source>Find references</source>
<translation type="unfinished"></translation>
</message>
@ -6654,7 +6664,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="-3072"/>
<location filename="../mainwindow.ui" line="-3074"/>
<source>Move Caret</source>
<translation type="unfinished"></translation>
</message>
@ -8218,12 +8228,12 @@
</message>
<message>
<location filename="../compiler/compilerinfo.cpp" line="+92"/>
<location line="+347"/>
<location line="+349"/>
<source>Code Generation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-261"/>
<location line="-263"/>
<source>Enable use of specific instructions (-mx)</source>
<translation type="unfinished"></translation>
</message>
@ -8283,7 +8293,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<location line="+7"/>
<source>Do not use standard system libraries (-nostdlib)</source>
<translation type="unfinished"></translation>
</message>
@ -8298,12 +8308,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-40"/>
<location line="-42"/>
<source>Generate debugging information (-g3)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+36"/>
<location line="+38"/>
<source>Use pipes instead of temporary files during compilation (-pipe)</source>
<translation type="unfinished"></translation>
</message>
@ -8421,7 +8431,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../compiler/compilerinfo.cpp" line="-105"/>
<location filename="../compiler/compilerinfo.cpp" line="-107"/>
<source>C++ Language standard (-std)</source>
<translation type="unfinished"></translation>
</message>
@ -8491,7 +8501,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="+248"/>
<location line="+250"/>
<source>Processor (-m)</source>
<translation type="unfinished"></translation>
</message>
@ -8511,12 +8521,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location line="-262"/>
<location line="-263"/>
<source>Stack Size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+263"/>
<location line="+264"/>
<source>Use movc instead of movx to read from external ram</source>
<translation type="unfinished"></translation>
</message>

View File

@ -24,19 +24,19 @@ include(version.inc)
APP_VERSION = "$${APP_VERSION}$${APP_VERSION_SUFFIX}"
}
win32: {
SUBDIRS += \
redpanda-win-git-askpass
redpanda-win-git-askpass.subdir = tools/redpanda-win-git-askpass
RedPandaIDE.depends += redpanda-win-git-askpass
}
# win32: {
# SUBDIRS += \
# redpanda-win-git-askpass
# redpanda-win-git-askpass.subdir = tools/redpanda-win-git-askpass
# RedPandaIDE.depends += redpanda-win-git-askpass
# }
unix: {
SUBDIRS += \
redpanda-git-askpass
redpanda-git-askpass.subdir = tools/redpanda-git-askpass
RedPandaIDE.depends += redpanda-git-askpass
}
# unix: {
# SUBDIRS += \
# redpanda-git-askpass
# redpanda-git-askpass.subdir = tools/redpanda-git-askpass
# RedPandaIDE.depends += redpanda-git-askpass
# }
unix:!macos: {
isEmpty(PREFIX) {

View File

@ -4288,7 +4288,7 @@
<context>
<name>QSynedit::Document</name>
<message>
<location filename="qsynedit/document.cpp" line="+613"/>
<location filename="qsynedit/document.cpp" line="+592"/>
<source>Can&apos;t open file &apos;%1&apos; for read!</source>
<translation>&quot;%1&quot;.</translation>
</message>