//==============================================
//  copyright            : (C) 2003-2005 by Will Stokes
//==============================================
//  This program is free software; you can redistribute it
//  and/or modify it under the terms of the GNU General
//  Public License as published by the Free Software
//  Foundation; either version 2 of the License, or
//  (at your option) any later version.
//==============================================

#ifndef BACKEND_TOOLS_GUITOOLS_H
#define BACKEND_TOOLS_GUITOOLS_H

#include <qlabel.h>
#include <qfiledialog.h>

//--------------------
//forward declarations
class QWidget;
class QString;
class QStringList;
class QPixmap;
//--------------------

//centers window on screen
void centerWindow(QWidget* window);

///clip text to fit within numer of lines and max width
QString clipText(QString string, int lines, int lineWidth);

///clip photo text
QString clipPhotoText(const QString in);

#endif //BACKEND_TOOLS_GUITOOLS_H
