mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
Initial import of CVS-v2_8_branch
This commit is contained in:
72
rdairplay/start_button.h
Normal file
72
rdairplay/start_button.h
Normal file
@@ -0,0 +1,72 @@
|
||||
// start_button.h
|
||||
//
|
||||
// The Start Button for RDAirPlay Rivendell
|
||||
//
|
||||
// (C) Copyright 2002-2003 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: start_button.h,v 1.16 2010/07/29 19:32:36 cvs Exp $
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public
|
||||
// License along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef START_BUTTON_H
|
||||
#define START_BUTTON_H
|
||||
|
||||
#include <qdatetime.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qstring.h>
|
||||
#include <qpalette.h>
|
||||
|
||||
#include <rdcart.h>
|
||||
#include <rdairplay_conf.h>
|
||||
|
||||
class StartButton : public QPushButton
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum Mode {Stop=0,Play=1,Pause=2,AddFrom=3,AddTo=4,DeleteFrom=5,
|
||||
MoveFrom=6,MoveTo=7,CopyFrom=8,CopyTo=9,Disabled=10,Error=11};
|
||||
StartButton(bool allow_pause=false,QWidget *parent=0,const char *name=0);
|
||||
void setTime(QString);
|
||||
void setTime(QTime);
|
||||
void setPort(QString port);
|
||||
StartButton::Mode mode() const;
|
||||
void setMode(Mode mode,RDCart::Type cart_type);
|
||||
void setTimeMode(RDAirPlayConf::TimeMode mode);
|
||||
|
||||
public slots:
|
||||
void setGeometry(int x,int y,int w,int h);
|
||||
void setGeometry(QRect rect);
|
||||
|
||||
private:
|
||||
void Resize(int x,int y,int w,int h);
|
||||
StartButton::Mode start_mode;
|
||||
QFont start_label_font;
|
||||
QFont start_counter_font;
|
||||
QFont start_port_font;
|
||||
QString start_title;
|
||||
QString start_port;
|
||||
QPalette start_stop_color;
|
||||
QPalette start_play_color;
|
||||
QPalette start_pause_color;
|
||||
QPalette start_from_color;
|
||||
QPalette start_to_color;
|
||||
QPalette start_disabled_color;
|
||||
QPalette start_error_color;
|
||||
RDAirPlayConf::TimeMode start_time_mode;
|
||||
QTime start_time;
|
||||
bool start_allow_pause;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user