mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 15:19:58 +01:00
Title block template editor: added icons for row/columns/cells operations.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1512 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -304,8 +304,8 @@ void QETTitleBlockTemplateEditor::initActions() {
|
||||
zoom_out_ = new QAction(QET::Icons::ZoomOut, tr("Zoom arri\350re", "menu entry"), this);
|
||||
zoom_fit_ = new QAction(QET::Icons::ZoomFitBest, tr("Zoom adapt\351", "menu entry"), this);
|
||||
zoom_reset_ = new QAction(QET::Icons::ZoomOriginal, tr("Pas de zoom", "menu entry"), this);
|
||||
merge_cells_ = new QAction( tr("&Fusionner les cellules", "menu entry"), this);
|
||||
split_cell_ = new QAction( tr("&S\351parer les cellules", "menu entry"), this);
|
||||
merge_cells_ = new QAction(QET::Icons::EditTableCellMerge, tr("&Fusionner les cellules", "menu entry"), this);
|
||||
split_cell_ = new QAction(QET::Icons::EditTableCellSplit, tr("&S\351parer les cellules", "menu entry"), this);
|
||||
|
||||
undo_ -> setIcon(QET::Icons::EditUndo);
|
||||
redo_ -> setIcon(QET::Icons::EditRedo);
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "templatecellsset.h"
|
||||
#include "dimensionwidget.h"
|
||||
#include "qetapp.h"
|
||||
#include "qeticons.h"
|
||||
#define ROW_OFFSET 2
|
||||
#define COL_OFFSET 1
|
||||
#define DEFAULT_PREVIEW_WIDTH 600
|
||||
@@ -380,15 +381,15 @@ qreal TitleBlockTemplateView::zoomFactor() const {
|
||||
Initialize this view (actions, signals/slots connections, etc.)
|
||||
*/
|
||||
void TitleBlockTemplateView::init() {
|
||||
add_column_before_ = new QAction(tr("Ajouter une colonne (avant)", "context menu"), this);
|
||||
add_row_before_ = new QAction(tr("Ajouter une ligne (avant)", "context menu"), this);
|
||||
add_column_after_ = new QAction(tr("Ajouter une colonne (apr\350s)", "context menu"), this);
|
||||
add_row_after_ = new QAction(tr("Ajouter une ligne (apr\350s)", "context menu"), this);
|
||||
edit_column_dim_ = new QAction(tr("Modifier les dimensions de cette colonne", "context menu"), this);
|
||||
edit_row_dim_ = new QAction(tr("Modifier les dimensions de cette ligne", "context menu"), this);
|
||||
delete_column_ = new QAction(tr("Supprimer cette colonne", "context menu"), this);
|
||||
delete_row_ = new QAction(tr("Supprimer cette ligne", "context menu"), this);
|
||||
change_preview_width_ = new QAction(tr("Modifier la largeur de cet aper\347u", "context menu"), this);
|
||||
add_column_before_ = new QAction(QET::Icons::EditTableInsertColumnLeft, tr("Ajouter une colonne (avant)", "context menu"), this);
|
||||
add_row_before_ = new QAction(QET::Icons::EditTableInsertRowAbove, tr("Ajouter une ligne (avant)", "context menu"), this);
|
||||
add_column_after_ = new QAction(QET::Icons::EditTableInsertColumnRight, tr("Ajouter une colonne (apr\350s)", "context menu"), this);
|
||||
add_row_after_ = new QAction(QET::Icons::EditTableInsertRowUnder, tr("Ajouter une ligne (apr\350s)", "context menu"), this);
|
||||
edit_column_dim_ = new QAction( tr("Modifier les dimensions de cette colonne", "context menu"), this);
|
||||
edit_row_dim_ = new QAction( tr("Modifier les dimensions de cette ligne", "context menu"), this);
|
||||
delete_column_ = new QAction(QET::Icons::EditTableDeleteColumn, tr("Supprimer cette colonne", "context menu"), this);
|
||||
delete_row_ = new QAction(QET::Icons::EditTableDeleteRow, tr("Supprimer cette ligne", "context menu"), this);
|
||||
change_preview_width_ = new QAction( tr("Modifier la largeur de cet aper\347u", "context menu"), this);
|
||||
|
||||
connect(add_column_before_, SIGNAL(triggered()), this, SLOT(addColumnBefore()));
|
||||
connect(add_row_before_, SIGNAL(triggered()), this, SLOT(addRowBefore()));
|
||||
|
||||
Reference in New Issue
Block a user