File indexing completed on 2024-12-22 04:17:30

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef DIALOGTAB_H
0014 #define DIALOGTAB_H
0015 
0016 #include <QWidget>
0017 
0018 #include "kst_export.h"
0019 
0020 namespace Kst {
0021 
0022 class Dialog;
0023 class DialogPage;
0024 
0025 //FIXME maybe we should really have a model...
0026 
0027 class DialogTab : public QWidget
0028 {
0029   Q_OBJECT
0030   public:
0031     explicit DialogTab(QWidget *parent);
0032     virtual ~DialogTab();
0033 
0034     Dialog *dialog() const;
0035     DialogPage *dialogPage() const;
0036 
0037     QString tabTitle() const { return _tabTitle; }
0038     void setTabTitle(const QString &tabTitle) { _tabTitle = tabTitle; }
0039 
0040   Q_SIGNALS:
0041     void ok();
0042     void apply();
0043     void cancel();
0044 
0045     //subclasses must emit...
0046     void modified();
0047 
0048   private:
0049     QString _tabTitle;
0050 };
0051 
0052 }
0053 
0054 #endif
0055 
0056 // vim: ts=2 sw=2 et