home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / applytemplatedialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-20  |  2.5 KB  |  91 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.  *                                                                         *
  9.  *   This program is free software; you can redistribute it and/or modify  *
  10.  *   it under the terms of the GNU General Public License as published by  *
  11.  *   the Free Software Foundation; either version 2 of the License, or     *
  12.  *   (at your option) any later version.                                   *
  13.  *                                                                         *
  14.  ***************************************************************************/
  15. #ifndef APPLYMASTERPAGEDIALOG_H
  16. #define APPLYMASTERPAGEDIALOG_H
  17.  
  18. #include <QDialog>
  19. #include <QString>
  20.  
  21. #include "scribusapi.h"
  22. #include "scribusdoc.h"
  23. #include "page.h"
  24.  
  25. class QCheckBox;
  26. class QComboBox;
  27. class QEvent;
  28. class QGroupBox;
  29. class QHBoxLayout;
  30. class QLabel;
  31. class QPushButton;
  32. class QRadioButton;
  33. class QSpacerItem;
  34. class QSpinBox;
  35. class QVBoxLayout;
  36.  
  37. class SCRIBUS_API ApplyMasterPageDialog : public QDialog
  38. {
  39.     Q_OBJECT
  40.  
  41. public:
  42.     ApplyMasterPageDialog( QWidget* parent = 0 );
  43.     ~ApplyMasterPageDialog();
  44.     
  45.     virtual void changeEvent(QEvent *e);
  46.  
  47.     QLabel* masterPageLabel;
  48.     QComboBox* masterPageComboBox;
  49.     QGroupBox* applyToPageButtonGroup;
  50.     QRadioButton* currentPageRadioButton;
  51.     QRadioButton* evenPagesRadioButton;
  52.     QRadioButton* oddPagesRadioButton;
  53.     QRadioButton* allPagesRadioButton;
  54.     QCheckBox* useRangeCheckBox;
  55.     QSpinBox* fromPageSpinBox;
  56.     QLabel* toPageLabel;
  57.     QSpinBox* toPageSpinBox;
  58.     QPushButton* okButton;
  59.     QPushButton* cancelButton;
  60.  
  61.     virtual void setup( ScribusDoc * view, QString Nam );
  62.     virtual QString getMasterPageName();
  63.     virtual int getPageSelection();
  64.     virtual bool usingRange();
  65.     virtual int getFromPage();
  66.     virtual int getToPage();
  67.  
  68. protected:
  69.     QVBoxLayout* ApplyMasterPageDialogLayout;
  70.     QHBoxLayout* templateNameLayout;
  71.     QSpacerItem* spacer2;
  72.     QVBoxLayout* applyToPageButtonGroupLayout;
  73.     QHBoxLayout* rangeLayout;
  74.     QSpacerItem* spacer3;
  75.     QHBoxLayout* layout8;
  76.     QSpacerItem* spacer1;
  77.  
  78. protected slots:
  79.     virtual void languageChange();
  80.  
  81. private slots:
  82.     virtual void checkRangeFrom();
  83.     virtual void checkRangeTo();
  84.     virtual void enableRange( bool enabled );
  85.     virtual void rangeSelectable();
  86.     virtual void singleSelectable();
  87.  
  88. };
  89.  
  90. #endif // APPLYMASTERPAGEDIALOG_H
  91.