mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
TBT editor: added menu entries to add rows/columns at the end of the grid.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1637 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -257,6 +257,22 @@ void TitleBlockTemplateView::paste() {
|
||||
requestGridModification(paste_command);
|
||||
}
|
||||
|
||||
/**
|
||||
Add a column right after the last one.
|
||||
*/
|
||||
void TitleBlockTemplateView::addColumnAtEnd() {
|
||||
if (read_only_) return;
|
||||
requestGridModification(ModifyTemplateGridCommand::addColumn(tbtemplate_, tbtemplate_ -> columnsCount()));
|
||||
}
|
||||
|
||||
/**
|
||||
Add a row right after the last one.
|
||||
*/
|
||||
void TitleBlockTemplateView::addRowAtEnd() {
|
||||
if (read_only_) return;
|
||||
requestGridModification(ModifyTemplateGridCommand::addRow(tbtemplate_, tbtemplate_ -> rowsCount()));
|
||||
}
|
||||
|
||||
/**
|
||||
Add a column right before the last index selected when calling the context
|
||||
menu.
|
||||
|
||||
Reference in New Issue
Block a user