Spreadsheet: Update UI strings for consistency
This commit is contained in:
committed by
Chris Hennes
parent
0a9a2372e0
commit
751626202d
@@ -152,6 +152,6 @@ PyMOD_INIT_FUNC(SpreadsheetGui)
|
||||
loadSpreadsheetResource();
|
||||
|
||||
PyObject* mod = SpreadsheetGui::initModule();
|
||||
Base::Console().log("Loading GUI of Spreadsheet module... done\n");
|
||||
Base::Console().log("Loading GUI of Spreadsheet module… done\n");
|
||||
PyMOD_Return(mod);
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ CmdSpreadsheetMergeCells::CmdSpreadsheetMergeCells()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Merge cells");
|
||||
sToolTipText = QT_TR_NOOP("Merge selected cells");
|
||||
sMenuText = QT_TR_NOOP("&Merge Cells");
|
||||
sToolTipText = QT_TR_NOOP("Merges the selected cells");
|
||||
sWhatsThis = "Spreadsheet_MergeCells";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetMergeCells";
|
||||
@@ -119,8 +119,8 @@ CmdSpreadsheetSplitCell::CmdSpreadsheetSplitCell()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Sp&lit cell");
|
||||
sToolTipText = QT_TR_NOOP("Split previously merged cells");
|
||||
sMenuText = QT_TR_NOOP("Sp&lit Cell");
|
||||
sToolTipText = QT_TR_NOOP("Splits the selected and previously merged cell");
|
||||
sWhatsThis = "Spreadsheet_SplitCell";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetSplitCell";
|
||||
@@ -181,8 +181,8 @@ CmdSpreadsheetImport::CmdSpreadsheetImport()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Import spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Import CSV file into spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Import Spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Imports a CSV file into the spreadsheet");
|
||||
sWhatsThis = "Spreadsheet_Import";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetImport";
|
||||
@@ -233,8 +233,8 @@ CmdSpreadsheetExport::CmdSpreadsheetExport()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Export spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Export spreadsheet to CSV file");
|
||||
sMenuText = QT_TR_NOOP("&Export Spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Exports the spreadsheet to a CSV file");
|
||||
sWhatsThis = "Spreadsheet_Export";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetExport";
|
||||
@@ -279,8 +279,8 @@ CmdSpreadsheetAlignLeft::CmdSpreadsheetAlignLeft()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Align &left");
|
||||
sToolTipText = QT_TR_NOOP("Left-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align &Left");
|
||||
sToolTipText = QT_TR_NOOP("Left-aligns the contents of the selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignLeft";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignLeft";
|
||||
@@ -336,8 +336,8 @@ CmdSpreadsheetAlignCenter::CmdSpreadsheetAlignCenter()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Align ¢er");
|
||||
sToolTipText = QT_TR_NOOP("Center-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align Horizontal &Center");
|
||||
sToolTipText = QT_TR_NOOP("Horizontally center-aligns the contents of the selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignCenter";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignCenter";
|
||||
@@ -393,8 +393,8 @@ CmdSpreadsheetAlignRight::CmdSpreadsheetAlignRight()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Align &right");
|
||||
sToolTipText = QT_TR_NOOP("Right-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align &Right");
|
||||
sToolTipText = QT_TR_NOOP("Right-aligns the contents of the selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignRight";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignRight";
|
||||
@@ -450,8 +450,8 @@ CmdSpreadsheetAlignTop::CmdSpreadsheetAlignTop()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Align &top");
|
||||
sToolTipText = QT_TR_NOOP("Top-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align &Top");
|
||||
sToolTipText = QT_TR_NOOP("Top-aligns the contents the of selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignTop";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignTop";
|
||||
@@ -507,8 +507,8 @@ CmdSpreadsheetAlignBottom::CmdSpreadsheetAlignBottom()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Align &bottom");
|
||||
sToolTipText = QT_TR_NOOP("Bottom-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align &Bottom");
|
||||
sToolTipText = QT_TR_NOOP("Bottom-aligns the contents of the selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignBottom";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignBottom";
|
||||
@@ -564,8 +564,8 @@ CmdSpreadsheetAlignVCenter::CmdSpreadsheetAlignVCenter()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Vertically center-align");
|
||||
sToolTipText = QT_TR_NOOP("Vertically center-align contents of selected cells");
|
||||
sMenuText = QT_TR_NOOP("Align &Vertical Center");
|
||||
sToolTipText = QT_TR_NOOP("Vertically center-aligns the contents of the selected cells");
|
||||
sWhatsThis = "Spreadsheet_AlignVCenter";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetAlignVCenter";
|
||||
@@ -621,8 +621,8 @@ CmdSpreadsheetStyleBold::CmdSpreadsheetStyleBold()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Bold text");
|
||||
sToolTipText = QT_TR_NOOP("Set text in selected cells bold");
|
||||
sMenuText = QT_TR_NOOP("&Bold Text");
|
||||
sToolTipText = QT_TR_NOOP("Sets the text in the selected cells bold");
|
||||
sWhatsThis = "Spreadsheet_StyleBold";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetStyleBold";
|
||||
@@ -705,8 +705,8 @@ CmdSpreadsheetStyleItalic::CmdSpreadsheetStyleItalic()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Italic text");
|
||||
sToolTipText = QT_TR_NOOP("Set text in selected cells italic");
|
||||
sMenuText = QT_TR_NOOP("&Italic Iext");
|
||||
sToolTipText = QT_TR_NOOP("Sets the text in the selected cells italic");
|
||||
sWhatsThis = "Spreadsheet_StyleItalic";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetStyleItalic";
|
||||
@@ -789,8 +789,8 @@ CmdSpreadsheetStyleUnderline::CmdSpreadsheetStyleUnderline()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Underline text");
|
||||
sToolTipText = QT_TR_NOOP("Underline text in selected cells");
|
||||
sMenuText = QT_TR_NOOP("&Underline Text");
|
||||
sToolTipText = QT_TR_NOOP("Underlines the text in the selected cells");
|
||||
sWhatsThis = "Spreadsheet_StyleUnderline";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "SpreadsheetStyleUnderline";
|
||||
@@ -873,8 +873,8 @@ CmdSpreadsheetSetAlias::CmdSpreadsheetSetAlias()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Set alias");
|
||||
sToolTipText = QT_TR_NOOP("Set alias for selected cell");
|
||||
sMenuText = QT_TR_NOOP("Set Alias");
|
||||
sToolTipText = QT_TR_NOOP("Sets an alias for the selected cell");
|
||||
sWhatsThis = "Spreadsheet_SetAlias";
|
||||
sStatusTip = sToolTipText;
|
||||
sAccel = "Ctrl+Shift+A";
|
||||
@@ -944,8 +944,8 @@ CmdCreateSpreadsheet::CmdCreateSpreadsheet()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Create spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Create a new spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&New Spreadsheet");
|
||||
sToolTipText = QT_TR_NOOP("Creates a new spreadsheet");
|
||||
sWhatsThis = "Spreadsheet_CreateSheet";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Spreadsheet";
|
||||
|
||||
@@ -223,7 +223,7 @@ void DlgBindSheet::accept()
|
||||
tr("Bind cells"),
|
||||
tr("Source and target cell count mismatch. "
|
||||
"Partial binding may still work.\n\n"
|
||||
"Do you want to continue?"),
|
||||
"Continue?"),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
if (res == QMessageBox::No) {
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Bind cells:</string>
|
||||
<string>Bind cells</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -66,7 +66,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>To cells:</string>
|
||||
<string>To cells</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -95,7 +95,7 @@ The expression must evaluate to a string of some cell address.</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>End cell address to bind to.
|
||||
Type '=' if you want to use an expression.
|
||||
Type '=' to use an expression.
|
||||
The expression must evaluate to a string of some cell address.</string>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -114,7 +114,7 @@ The expression must evaluate to a string of some cell address.</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Sheet:</string>
|
||||
<string>Sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxShowAlias">
|
||||
<property name="toolTip">
|
||||
<string>If checked, use the custom presentation to display cell string.</string>
|
||||
<string>Uses the custom presentation to display cell string</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show alias in cell with format</string>
|
||||
@@ -45,7 +45,7 @@
|
||||
<item row="0" column="2">
|
||||
<widget class="Gui::PrefSpinBox" name="dZLSpinBox">
|
||||
<property name="toolTip">
|
||||
<string>Set a zoom level for table view from 60% to 160%.</string>
|
||||
<string>Defines a default zoom level for table view from 60% to 160%</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
@@ -73,7 +73,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="dZLLabel">
|
||||
<property name="text">
|
||||
<string>Default zoom level:</string>
|
||||
<string>Default zoom level</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -128,7 +128,7 @@ Defaults to: %V = %A
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Delimiter Character:</string>
|
||||
<string>Delimiter character</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -188,7 +188,7 @@ Defaults to: %V = %A
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Quote Character:</string>
|
||||
<string>Quote character</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -220,7 +220,7 @@ Defaults to: %V = %A
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Escape Character:</string>
|
||||
<string>Escape character</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Cell range:</string>
|
||||
<string>Cell range</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -54,7 +54,7 @@ by that property.
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Property:</string>
|
||||
<string>Property</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -69,14 +69,14 @@ switch the design configuration. The property will be created if not exist.</str
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Group:</string>
|
||||
<string>Group</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" colspan="2">
|
||||
<widget class="QLineEdit" name="lineEditGroup">
|
||||
<property name="toolTip">
|
||||
<string>Optional property group name.</string>
|
||||
<string>Optional property group name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -57,7 +57,7 @@ void LineEdit::setDocumentObject(const App::DocumentObject* currentDocObj, bool
|
||||
QPointer<Gui::MDIView> active_view = Gui::MainWindow::getInstance()->activeWindow();
|
||||
if (!active_view) {
|
||||
Base::Console().developerWarning("LineEdit::setDocumentObject",
|
||||
"The active view is not Spreadsheet");
|
||||
"The active view is not a spreadsheet");
|
||||
return;
|
||||
}
|
||||
QPointer<ZoomableView> zv = active_view->findChild<ZoomableView*>();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Cell properties</string>
|
||||
<string>Cell Properties</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>&Content:</string>
|
||||
<string>&Content</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>cellContent</cstring>
|
||||
@@ -36,7 +36,7 @@
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="alias_label">
|
||||
<property name="text">
|
||||
<string>&Alias:</string>
|
||||
<string>&Alias</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>cellAlias</cstring>
|
||||
|
||||
@@ -139,20 +139,20 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
Q_UNUSED(isContiguous)
|
||||
/*: This is shown in the context menu for the vertical header in a spreadsheet.
|
||||
The number refers to how many lines are selected and will be inserted. */
|
||||
auto insertBefore = menu.addAction(tr("Insert %n row(s) above", "", selection.size()));
|
||||
auto insertBefore = menu.addAction(tr("Insert %n Row(s) Above", "", selection.size()));
|
||||
connect(insertBefore, &QAction::triggered, this, &SheetTableView::insertRows);
|
||||
|
||||
if (max < model()->rowCount() - 1) {
|
||||
auto insertAfter =
|
||||
menu.addAction(tr("Insert %n row(s) below", "", selection.size()));
|
||||
menu.addAction(tr("Insert %n Row(s) Below", "", selection.size()));
|
||||
connect(insertAfter, &QAction::triggered, this, &SheetTableView::insertRowsAfter);
|
||||
}
|
||||
}
|
||||
else {
|
||||
auto insert = menu.addAction(tr("Insert %n non-contiguous rows", "", selection.size()));
|
||||
auto insert = menu.addAction(tr("Insert %n Non-Contiguous Rows", "", selection.size()));
|
||||
connect(insert, &QAction::triggered, this, &SheetTableView::insertRows);
|
||||
}
|
||||
auto remove = menu.addAction(tr("Remove row(s)", "", selection.size()));
|
||||
auto remove = menu.addAction(tr("Remove Rows", "", selection.size()));
|
||||
connect(remove, &QAction::triggered, this, &SheetTableView::removeRows);
|
||||
menu.exec(QCursor::pos());
|
||||
});
|
||||
@@ -166,12 +166,12 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
Q_UNUSED(isContiguous)
|
||||
/*: This is shown in the context menu for the horizontal header in a spreadsheet.
|
||||
The number refers to how many lines are selected and will be inserted. */
|
||||
auto insertAbove = menu.addAction(tr("Insert %n column(s) left", "", selection.size()));
|
||||
auto insertAbove = menu.addAction(tr("Insert %n Column(s) Left", "", selection.size()));
|
||||
connect(insertAbove, &QAction::triggered, this, &SheetTableView::insertColumns);
|
||||
|
||||
if (max < model()->columnCount() - 1) {
|
||||
auto insertAfter =
|
||||
menu.addAction(tr("Insert %n column(s) right", "", selection.size()));
|
||||
menu.addAction(tr("Insert %n Column(s) Right", "", selection.size()));
|
||||
connect(insertAfter,
|
||||
&QAction::triggered,
|
||||
this,
|
||||
@@ -180,15 +180,15 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
}
|
||||
else {
|
||||
auto insert =
|
||||
menu.addAction(tr("Insert %n non-contiguous columns", "", selection.size()));
|
||||
menu.addAction(tr("Insert %n Non-Contiguous Columns", "", selection.size()));
|
||||
connect(insert, &QAction::triggered, this, &SheetTableView::insertColumns);
|
||||
}
|
||||
auto remove = menu.addAction(tr("Remove column(s)", "", selection.size()));
|
||||
auto remove = menu.addAction(tr("Remove Column(s)", "", selection.size()));
|
||||
connect(remove, &QAction::triggered, this, &SheetTableView::removeColumns);
|
||||
menu.exec(QCursor::pos());
|
||||
});
|
||||
|
||||
actionProperties = new QAction(tr("Properties..."), this);
|
||||
actionProperties = new QAction(tr("Properties…"), this);
|
||||
addAction(actionProperties);
|
||||
|
||||
horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
@@ -204,11 +204,11 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
connect(actionRecompute, &QAction::triggered, this, &SheetTableView::onRecompute);
|
||||
contextMenu.addAction(actionRecompute);
|
||||
|
||||
actionBind = new QAction(tr("Bind..."), this);
|
||||
actionBind = new QAction(tr("Bind…"), this);
|
||||
connect(actionBind, &QAction::triggered, this, &SheetTableView::onBind);
|
||||
contextMenu.addAction(actionBind);
|
||||
|
||||
actionConf = new QAction(tr("Configuration table..."), this);
|
||||
actionConf = new QAction(tr("Configuration Table…"), this);
|
||||
connect(actionConf, &QAction::triggered, this, &SheetTableView::onConfSetup);
|
||||
contextMenu.addAction(actionConf);
|
||||
|
||||
@@ -216,9 +216,9 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
verticalHeader()->addAction(actionBind);
|
||||
|
||||
contextMenu.addSeparator();
|
||||
actionMerge = contextMenu.addAction(tr("Merge cells"));
|
||||
actionMerge = contextMenu.addAction(tr("Merge Cells"));
|
||||
connect(actionMerge, &QAction::triggered, this, &SheetTableView::mergeCells);
|
||||
actionSplit = contextMenu.addAction(tr("Split cells"));
|
||||
actionSplit = contextMenu.addAction(tr("Split Cells"));
|
||||
connect(actionSplit, &QAction::triggered, this, &SheetTableView::splitCell);
|
||||
|
||||
contextMenu.addSeparator();
|
||||
@@ -241,7 +241,7 @@ SheetTableView::SheetTableView(QWidget* parent)
|
||||
|
||||
void SheetTableView::onRecompute()
|
||||
{
|
||||
Gui::Command::openCommand("Recompute cells");
|
||||
Gui::Command::openCommand("Recompute Cells");
|
||||
for (auto& range : selectedRanges()) {
|
||||
Gui::cmdAppObjectArgs(sheet,
|
||||
"recomputeCells('%s', '%s')",
|
||||
@@ -351,7 +351,7 @@ void SheetTableView::insertRows()
|
||||
std::sort(sortedRows.begin(), sortedRows.end());
|
||||
|
||||
/* Insert rows */
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert rows"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Rows"));
|
||||
std::vector<int>::const_reverse_iterator it = sortedRows.rbegin();
|
||||
while (it != sortedRows.rend()) {
|
||||
int prev = *it;
|
||||
@@ -384,7 +384,7 @@ void SheetTableView::insertRowsAfter()
|
||||
assert(max - min == rows.size() - 1);
|
||||
Q_UNUSED(min)
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert rows"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Rows"));
|
||||
Gui::cmdAppObjectArgs(sheet, "insertRows('%s', %d)", rowName(max + 1).c_str(), rows.size());
|
||||
Gui::Command::commitCommand();
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.recompute()");
|
||||
@@ -404,7 +404,7 @@ void SheetTableView::removeRows()
|
||||
std::sort(sortedRows.begin(), sortedRows.end(), std::greater<>());
|
||||
|
||||
/* Remove rows */
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove rows"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove Rows"));
|
||||
for (const auto& it : sortedRows) {
|
||||
Gui::cmdAppObjectArgs(sheet, "removeRows('%s', %d)", rowName(it).c_str(), 1);
|
||||
}
|
||||
@@ -426,7 +426,7 @@ void SheetTableView::insertColumns()
|
||||
std::sort(sortedColumns.begin(), sortedColumns.end());
|
||||
|
||||
/* Insert columns */
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert columns"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Columns"));
|
||||
std::vector<int>::const_reverse_iterator it = sortedColumns.rbegin();
|
||||
while (it != sortedColumns.rend()) {
|
||||
int prev = *it;
|
||||
@@ -459,7 +459,7 @@ void SheetTableView::insertColumnsAfter()
|
||||
assert(max - min == columns.size() - 1);
|
||||
Q_UNUSED(min)
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert columns"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Columns"));
|
||||
Gui::cmdAppObjectArgs(sheet,
|
||||
"insertColumns('%s', %d)",
|
||||
columnName(max + 1).c_str(),
|
||||
@@ -482,7 +482,7 @@ void SheetTableView::removeColumns()
|
||||
std::sort(sortedColumns.begin(), sortedColumns.end(), std::greater<>());
|
||||
|
||||
/* Remove columns */
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove rows"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove Rows"));
|
||||
for (const auto& it : sortedColumns) {
|
||||
Gui::cmdAppObjectArgs(sheet, "removeColumns('%s', %d)", columnName(it).c_str(), 1);
|
||||
}
|
||||
@@ -667,16 +667,16 @@ bool SheetTableView::event(QEvent* event)
|
||||
}
|
||||
}
|
||||
else if (event && event->type() == QEvent::LanguageChange) {
|
||||
actionProperties->setText(tr("Properties..."));
|
||||
actionProperties->setText(tr("Properties…"));
|
||||
actionRecompute->setText(tr("Recompute"));
|
||||
actionConf->setText(tr("Configuration table..."));
|
||||
actionMerge->setText(tr("Merge cells"));
|
||||
actionSplit->setText(tr("Split cells"));
|
||||
actionConf->setText(tr("Configuration Table…"));
|
||||
actionMerge->setText(tr("Merge Cells"));
|
||||
actionSplit->setText(tr("Split Cells"));
|
||||
actionCopy->setText(tr("Copy"));
|
||||
actionPaste->setText(tr("Paste"));
|
||||
actionCut->setText(tr("Cut"));
|
||||
actionDel->setText(tr("Delete"));
|
||||
actionBind->setText(tr("Bind..."));
|
||||
actionBind->setText(tr("Bind…"));
|
||||
}
|
||||
return QTableView::event(event);
|
||||
}
|
||||
@@ -686,7 +686,7 @@ void SheetTableView::deleteSelection()
|
||||
QModelIndexList selection = selectionModel()->selectedIndexes();
|
||||
|
||||
if (!selection.empty()) {
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear cell(s)"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear Cells"));
|
||||
std::vector<Range> ranges = selectedRanges();
|
||||
std::vector<Range>::const_iterator i = ranges.begin();
|
||||
|
||||
@@ -757,7 +757,7 @@ void SheetTableView::cutSelection()
|
||||
|
||||
void SheetTableView::pasteClipboard()
|
||||
{
|
||||
App::AutoTransaction committer("Paste cell");
|
||||
App::AutoTransaction committer("Paste Cell");
|
||||
try {
|
||||
bool copy = true;
|
||||
auto ranges = sheet->getCopyOrCutRange(copy);
|
||||
|
||||
@@ -189,7 +189,7 @@ bool SheetView::onMsg(const char* pMsg, const char**)
|
||||
else if (strcmp("Std_Delete", pMsg) == 0) {
|
||||
std::vector<Range> ranges = selectedRanges();
|
||||
if (sheet->hasCell(ranges)) {
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear cell(s)"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear Cells"));
|
||||
std::vector<Range>::const_iterator i = ranges.begin();
|
||||
for (; i != ranges.end(); ++i) {
|
||||
FCMD_OBJ_CMD(sheet, "clear('" << i->rangeString() << "')");
|
||||
|
||||
@@ -106,7 +106,7 @@ void ViewProviderSheet::exportAsFile()
|
||||
QString selectedFilter;
|
||||
QString formatList = QObject::tr("CSV (*.csv *.CSV);;All (*)");
|
||||
QString fileName = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(),
|
||||
QObject::tr("Export file"),
|
||||
QObject::tr("Export File"),
|
||||
QString(),
|
||||
formatList,
|
||||
&selectedFilter);
|
||||
@@ -131,7 +131,7 @@ void ViewProviderSheet::exportAsFile()
|
||||
void ViewProviderSheet::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
QAction* act;
|
||||
act = menu->addAction(QObject::tr("Show spreadsheet"), receiver, member);
|
||||
act = menu->addAction(QObject::tr("Show Spreadsheet"), receiver, member);
|
||||
act->setData(QVariant((int)ViewProvider::Default));
|
||||
}
|
||||
|
||||
|
||||
@@ -91,9 +91,9 @@ void Workbench::activated()
|
||||
workbenchHelper.get(),
|
||||
&WorkbenchHelper::setForegroundColor);
|
||||
}
|
||||
foregroundColor->setToolTip(QObject::tr("Set cell(s) text color"));
|
||||
foregroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cell(s) text color"));
|
||||
foregroundColor->setStatusTip(QObject::tr("Set cell(s) text color"));
|
||||
foregroundColor->setToolTip(QObject::tr("Set cells text color"));
|
||||
foregroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cells text color"));
|
||||
foregroundColor->setStatusTip(QObject::tr("Set cells text color"));
|
||||
bar->addWidget(foregroundColor);
|
||||
|
||||
QList<QtColorPicker*> bgList = Gui::getMainWindow()->findChildren<QtColorPicker*>(
|
||||
@@ -111,10 +111,10 @@ void Workbench::activated()
|
||||
workbenchHelper.get(),
|
||||
&WorkbenchHelper::setBackgroundColor);
|
||||
}
|
||||
backgroundColor->setToolTip(QObject::tr("Set cell(s) background color"));
|
||||
backgroundColor->setToolTip(QObject::tr("Set cells background color"));
|
||||
backgroundColor->setWhatsThis(
|
||||
QObject::tr("Sets the Spreadsheet cell(s) background color"));
|
||||
backgroundColor->setStatusTip(QObject::tr("Set cell(s) background color"));
|
||||
QObject::tr("Sets the Spreadsheet cells background color"));
|
||||
backgroundColor->setStatusTip(QObject::tr("Set cells background color"));
|
||||
bar->addWidget(backgroundColor);
|
||||
|
||||
initialized = false;
|
||||
|
||||
@@ -109,7 +109,7 @@ ZoomableView::ZoomableView(Ui::Sheet* ui)
|
||||
connect(ui->zoomMinus, &QToolButton::clicked, this, &ZoomableView::zoomOut);
|
||||
|
||||
connect(ui->zoomTB, &QToolButton::clicked, ui->zoomSlider, [zoomSlider = ui->zoomSlider]() {
|
||||
const QString title = tr("Zoom level"), label = tr("New zoom level:");
|
||||
const QString title = tr("Zoom Level"), label = tr("New zoom level:");
|
||||
constexpr int min = ZoomableView::min, max = ZoomableView::max, step = 10;
|
||||
const int val = zoomSlider->value();
|
||||
bool ok;
|
||||
|
||||
Reference in New Issue
Block a user