Back to index

fet  5.18.0
centerwidgetonscreen.h
Go to the documentation of this file.
00001 /*
00002 File centerwidgetonscreen.h
00003 */
00004 
00005 /***************************************************************************
00006                           centerwidgetonscreen.h  -  description
00007                              -------------------
00008     begin                : 13 July 2008
00009     copyright            : (C) 2008 by Lalescu Liviu
00010     email                : Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)
00011  ***************************************************************************/
00012 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
00019  *                                                                         *
00020  ***************************************************************************/
00021 
00022 #ifndef CENTERWIDGETONSCREEN_H
00023 #define CENTERWIDGETONSCREEN_H
00024 
00025 #include <QString>
00026 
00027 class QWidget;
00028 class QTableWidget;
00029 
00030 class Rules;
00031 
00032 void centerWidgetOnScreen(QWidget* widget);
00033 void forceCenterWidgetOnScreen(QWidget* widget);
00034 //void centerWidgetOnParent(QWidget* widget, QWidget* parent);
00035 
00036 int maxScreenWidth(QWidget* widget);
00037 
00038 int maxRecommendedWidth(QWidget* widget);
00039 
00040 void saveFETDialogGeometry(QWidget* widget, const QString& alternativeName=QString());
00041 void restoreFETDialogGeometry(QWidget* widget, const QString& alternativeName=QString());
00042 
00043 void setParentAndOtherThings(QWidget* widget, QWidget* parent);
00044 
00045 void setStretchAvailabilityTableNicely(QTableWidget* notAllowedTimesTable);
00046 
00047 void setRulesModifiedAndOtherThings(Rules* rules);
00048 void setRulesUnmodifiedAndOtherThings(Rules* rules);
00049 
00050 #endif