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:
xavier
2012-04-08 20:51:43 +00:00
parent ba7e030d9f
commit acbbf01cf4
4 changed files with 28 additions and 1 deletions

View File

@@ -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.