Scribus
Open source desktop publishing at your fingertips
inserttablerowsdialog.h
1 /*
2 Copyright (C) 2011 Elvis Stansvik <elvstone@gmail.com>
3 
4 For general Scribus (>=1.3.2) copyright and licensing information please refer
5 to the COPYING file provided with the program. Following this notice may exist
6 a copyright and/or license notice that predates the release of Scribus 1.3.2
7 for which a new license (GPL+exception) is in place.
8 */
9 #ifndef INSERTTABLEROWSDIALOG_H
10 #define INSERTTABLEROWSDIALOG_H
11 
12 #include "ui_inserttablerowsdialog.h"
13 
14 class PageItem_Table;
15 
19 class InsertTableRowsDialog : public QDialog, private Ui::InsertTableRowsDialog
20 {
21  Q_OBJECT
22 public:
24  enum Position
25  {
28  };
29 
30 public:
32  explicit InsertTableRowsDialog(int appMode, QWidget *parent = 0);
33 
35  int numberOfRows() const { return numRows->value(); }
36 
38  Position position() const { return static_cast<Position>(positions->checkedId()); }
39 };
40 
41 #endif // INSERTTABLEROWSDIALOG_H
Definition: inserttablerowsdialog.h:26
Position position() const
Returns the position the user picked.
Definition: inserttablerowsdialog.h:38
Definition: inserttablerowsdialog.h:19
Definition: inserttablerowsdialog.h:27
Position
This enum specifies positions at which the user can insert rows.
Definition: inserttablerowsdialog.h:24
int numberOfRows() const
Returns the number of rows the user entered.
Definition: inserttablerowsdialog.h:35
InsertTableRowsDialog(int appMode, QWidget *parent=0)
Constructs a new dialog for inserting rows. appMode is the current application mode.
Definition: inserttablerowsdialog.cpp:13
Definition: pageitem_table.h:49