fixed toggle button behavior related to selected state;
cleaned up window position storage and retrieval
This commit is contained in:
parent
82a509eed2
commit
3fa5f28259
23 changed files with 553 additions and 308 deletions
|
@ -244,6 +244,7 @@ G_LIVESUPPORT_OBJS = ${TMP_DIR}/GLiveSupport.o \
|
||||||
${TMP_DIR}/MasterPanelWindow.o \
|
${TMP_DIR}/MasterPanelWindow.o \
|
||||||
${TMP_DIR}/NowPlaying.o \
|
${TMP_DIR}/NowPlaying.o \
|
||||||
${TMP_DIR}/MasterPanelUserInfoWidget.o \
|
${TMP_DIR}/MasterPanelUserInfoWidget.o \
|
||||||
|
${TMP_DIR}/GuiWindow.o \
|
||||||
${TMP_DIR}/LoginWindow.o \
|
${TMP_DIR}/LoginWindow.o \
|
||||||
${TMP_DIR}/UploadFileWindow.o \
|
${TMP_DIR}/UploadFileWindow.o \
|
||||||
${TMP_DIR}/ScratchpadWindow.o \
|
${TMP_DIR}/ScratchpadWindow.o \
|
||||||
|
|
159
livesupport/src/products/gLiveSupport/src/GuiWindow.cxx
Normal file
159
livesupport/src/products/gLiveSupport/src/GuiWindow.cxx
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
|
||||||
|
This file is part of the LiveSupport project.
|
||||||
|
http://livesupport.campware.org/
|
||||||
|
To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
|
||||||
|
LiveSupport 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.
|
||||||
|
|
||||||
|
LiveSupport 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 LiveSupport; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Author : $Author: fgerlits $
|
||||||
|
Version : $Revision$
|
||||||
|
Location : $URL: svn+ssh://fgerlits@code.campware.org/home/svn/repo/livesupport/trunk/livesupport/src/products/gLiveSupport/src/GuiWindow.cxx $
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* ============================================================ include files */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "configure.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "LiveSupport/Widgets/Colors.h"
|
||||||
|
#include "LiveSupport/Widgets/WidgetFactory.h"
|
||||||
|
|
||||||
|
#include "GuiWindow.h"
|
||||||
|
|
||||||
|
|
||||||
|
using namespace LiveSupport::Core;
|
||||||
|
using namespace LiveSupport::Widgets;
|
||||||
|
using namespace LiveSupport::GLiveSupport;
|
||||||
|
|
||||||
|
/* =================================================== local data structures */
|
||||||
|
|
||||||
|
|
||||||
|
/* ================================================ local constants & macros */
|
||||||
|
|
||||||
|
|
||||||
|
/* =============================================== local function prototypes */
|
||||||
|
|
||||||
|
|
||||||
|
/* ============================================================= module code */
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Constructor.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
GuiWindow :: GuiWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
WidgetConstants::ImageType titleImage,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ()
|
||||||
|
: WhiteWindow(titleImage,
|
||||||
|
Colors::White,
|
||||||
|
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
||||||
|
LocalizedObject(bundle),
|
||||||
|
gLiveSupport(gLiveSupport),
|
||||||
|
windowOpenerButton(windowOpenerButton)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Constructor.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
GuiWindow :: GuiWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
WidgetConstants::ImageType titleImage,
|
||||||
|
Button * windowOpenerButton,
|
||||||
|
int properties)
|
||||||
|
throw ()
|
||||||
|
: WhiteWindow(titleImage,
|
||||||
|
Colors::White,
|
||||||
|
WidgetFactory::getInstance()->getWhiteWindowCorners(),
|
||||||
|
properties),
|
||||||
|
LocalizedObject(bundle),
|
||||||
|
gLiveSupport(gLiveSupport),
|
||||||
|
windowOpenerButton(windowOpenerButton)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Constructor.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
GuiWindow :: GuiWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
const Glib::ustring & titleString,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ()
|
||||||
|
: WhiteWindow(titleString,
|
||||||
|
Colors::White,
|
||||||
|
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
||||||
|
LocalizedObject(bundle),
|
||||||
|
gLiveSupport(gLiveSupport),
|
||||||
|
windowOpenerButton(windowOpenerButton)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Constructor.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
GuiWindow :: GuiWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
const Glib::ustring & titleString,
|
||||||
|
Button * windowOpenerButton,
|
||||||
|
int properties)
|
||||||
|
throw ()
|
||||||
|
: WhiteWindow(titleString,
|
||||||
|
Colors::White,
|
||||||
|
WidgetFactory::getInstance()->getWhiteWindowCorners(),
|
||||||
|
properties),
|
||||||
|
LocalizedObject(bundle),
|
||||||
|
gLiveSupport(gLiveSupport),
|
||||||
|
windowOpenerButton(windowOpenerButton)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Event handler called when the the window is shown.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
void
|
||||||
|
GuiWindow :: on_show (void) throw ()
|
||||||
|
{
|
||||||
|
gLiveSupport->getWindowPosition(shared_from_this());
|
||||||
|
|
||||||
|
WhiteWindow::on_show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
* Event handler called when the the window gets hidden.
|
||||||
|
*----------------------------------------------------------------------------*/
|
||||||
|
void
|
||||||
|
GuiWindow :: on_hide (void) throw ()
|
||||||
|
{
|
||||||
|
gLiveSupport->putWindowPosition(shared_from_this());
|
||||||
|
|
||||||
|
if (windowOpenerButton) {
|
||||||
|
windowOpenerButton->setSelected(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
WhiteWindow::on_hide();
|
||||||
|
}
|
||||||
|
|
199
livesupport/src/products/gLiveSupport/src/GuiWindow.h
Normal file
199
livesupport/src/products/gLiveSupport/src/GuiWindow.h
Normal file
|
@ -0,0 +1,199 @@
|
||||||
|
/*------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2004 Media Development Loan Fund
|
||||||
|
|
||||||
|
This file is part of the LiveSupport project.
|
||||||
|
http://livesupport.campware.org/
|
||||||
|
To report bugs, send an e-mail to bugs@campware.org
|
||||||
|
|
||||||
|
LiveSupport 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.
|
||||||
|
|
||||||
|
LiveSupport 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 LiveSupport; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Author : $Author: fgerlits $
|
||||||
|
Version : $Revision$
|
||||||
|
Location : $URL: svn+ssh://fgerlits@code.campware.org/home/svn/repo/livesupport/trunk/livesupport/src/products/gLiveSupport/src/GuiWindow.h $
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------*/
|
||||||
|
#ifndef GuiWindow_h
|
||||||
|
#define GuiWindow_h
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#error This is a C++ include file
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* ============================================================ include files */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "configure.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <unicode/resbund.h>
|
||||||
|
#include <glibmm.h>
|
||||||
|
|
||||||
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
|
#include "LiveSupport/Widgets/WhiteWindow.h"
|
||||||
|
#include "LiveSupport/Widgets/Button.h"
|
||||||
|
#include "LiveSupport/Widgets/WidgetConstants.h"
|
||||||
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
|
namespace LiveSupport {
|
||||||
|
namespace GLiveSupport {
|
||||||
|
|
||||||
|
using namespace LiveSupport::Core;
|
||||||
|
using namespace LiveSupport::Widgets;
|
||||||
|
|
||||||
|
/* ================================================================ constants */
|
||||||
|
|
||||||
|
|
||||||
|
/* =================================================================== macros */
|
||||||
|
|
||||||
|
|
||||||
|
/* =============================================================== data types */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The common ancestor of all openable and closable windows in the GUI.
|
||||||
|
*
|
||||||
|
* @author $Author: fgerlits $
|
||||||
|
* @version $Revision$
|
||||||
|
*/
|
||||||
|
class GuiWindow : public WhiteWindow,
|
||||||
|
public LocalizedObject
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
/**
|
||||||
|
* The button which was pressed to open this window.
|
||||||
|
*/
|
||||||
|
Button * windowOpenerButton;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/**
|
||||||
|
* The GLiveSupport object, holding the state of the application.
|
||||||
|
*/
|
||||||
|
Ptr<GLiveSupport>::Ref gLiveSupport;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event handler called when the the window is shown.
|
||||||
|
*
|
||||||
|
* This overrides WhiteWindow::on_show(), inherited from Gtk::Widget.
|
||||||
|
* It reads and restores the saved window position, if any.
|
||||||
|
*
|
||||||
|
* @see LiveSupport::GLiveSupport::GLiveSupport::getWindowPosition()
|
||||||
|
*/
|
||||||
|
virtual void
|
||||||
|
on_show(void) throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event handler called when the the window gets hidden.
|
||||||
|
*
|
||||||
|
* This overrides WhiteWindow::on_hide(), inherited from Gtk::Widget.
|
||||||
|
* It stores the window position, and 'pops out' the window opener
|
||||||
|
* button.
|
||||||
|
*
|
||||||
|
* @see LiveSupport::GLiveSupport::GLiveSupport::putWindowPosition()
|
||||||
|
* @see LiveSupport::Widgets::Button::setSelected()
|
||||||
|
*/
|
||||||
|
virtual void
|
||||||
|
on_hide(void) throw ();
|
||||||
|
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param gLiveSupport the GLiveSupport application object.
|
||||||
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param titleImage the LS logo for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window (optional).
|
||||||
|
*/
|
||||||
|
GuiWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
WidgetConstants::ImageType titleImage,
|
||||||
|
Button * windowOpenerButton = 0)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param gLiveSupport the GLiveSupport application object.
|
||||||
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param titleImage the LS logo for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
|
* @param properties see WhiteWindow::WindowProperties.
|
||||||
|
*/
|
||||||
|
GuiWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
WidgetConstants::ImageType titleImage,
|
||||||
|
Button * windowOpenerButton,
|
||||||
|
int properties)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param gLiveSupport the GLiveSupport, application object.
|
||||||
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param titleString the title of this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window (optional).
|
||||||
|
*/
|
||||||
|
GuiWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
const Glib::ustring & titleString,
|
||||||
|
Button * windowOpenerButton = 0)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param gLiveSupport the GLiveSupport, application object.
|
||||||
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param titleString the title of this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
|
* @param properties see WhiteWindow::WindowProperties.
|
||||||
|
*/
|
||||||
|
GuiWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
const Glib::ustring & titleString,
|
||||||
|
Button * windowOpenerButton,
|
||||||
|
int properties)
|
||||||
|
throw ();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Virtual destructor.
|
||||||
|
*/
|
||||||
|
virtual
|
||||||
|
~GuiWindow(void) throw ()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ================================================= external data structures */
|
||||||
|
|
||||||
|
|
||||||
|
/* ====================================================== function prototypes */
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace GLiveSupport
|
||||||
|
} // namespace LiveSupport
|
||||||
|
|
||||||
|
#endif // GuiWindow_h
|
||||||
|
|
|
@ -69,13 +69,13 @@ static const Glib::ustring windowName = "liveModeWindow";
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
LiveModeWindow :: LiveModeWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
LiveModeWindow :: LiveModeWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::liveModeWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::liveModeWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
set_title(*getResourceUstring("windowTitle"));
|
set_title(*getResourceUstring("windowTitle"));
|
||||||
|
@ -365,14 +365,3 @@ LiveModeWindow :: onKeyPressed(GdkEventKey * event) throw ()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* Event handler for the close button getting clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
LiveModeWindow :: onCloseButtonClicked (void) throw ()
|
|
||||||
{
|
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -48,10 +48,10 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/Button.h"
|
#include "LiveSupport/Widgets/Button.h"
|
||||||
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
||||||
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "CuePlayer.h"
|
#include "CuePlayer.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class LiveModeWindow : public WhiteWindow, public LocalizedObject
|
class LiveModeWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -114,11 +114,6 @@ class LiveModeWindow : public WhiteWindow, public LocalizedObject
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The column model.
|
* The column model.
|
||||||
*/
|
*/
|
||||||
|
@ -191,23 +186,22 @@ class LiveModeWindow : public WhiteWindow, public LocalizedObject
|
||||||
bool
|
bool
|
||||||
onKeyPressed(GdkEventKey * event) throw ();
|
onKeyPressed(GdkEventKey * event) throw ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Function to catch the event of the close button being pressed.
|
|
||||||
*/
|
|
||||||
virtual void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
LiveModeWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
LiveModeWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -61,13 +61,14 @@ using namespace LiveSupport::GLiveSupport;
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
LoginWindow :: LoginWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
LoginWindow :: LoginWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow("",
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners(),
|
"",
|
||||||
0),
|
windowOpenerButton,
|
||||||
LocalizedObject(bundle)
|
0 /* not resizable */)
|
||||||
{
|
{
|
||||||
this->gLiveSupport = gLiveSupport;
|
this->gLiveSupport = gLiveSupport;
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,9 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/EntryBin.h"
|
#include "LiveSupport/Widgets/EntryBin.h"
|
||||||
#include "LiveSupport/Widgets/ComboBoxText.h"
|
#include "LiveSupport/Widgets/ComboBoxText.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
namespace LiveSupport {
|
namespace LiveSupport {
|
||||||
|
@ -79,15 +79,10 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class LoginWindow : public WhiteWindow, public LocalizedObject
|
class LoginWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
|
||||||
* The GLiveSupport object, containing all the vital info.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table, which provides the layout for the window.
|
* The table, which provides the layout for the window.
|
||||||
*/
|
*/
|
||||||
|
@ -178,10 +173,14 @@ class LoginWindow : public WhiteWindow, public LocalizedObject
|
||||||
* @param gLiveSupport the gLiveSupport object, containing
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
* all the vital info.
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
LoginWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
LoginWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -150,6 +150,7 @@ MasterPanelUserInfoWidget :: onLogoutButtonClicked (void) throw ()
|
||||||
|
|
||||||
// change the logout button to a login button
|
// change the logout button to a login button
|
||||||
logInOutButton->set_label(*loginButtonLabel);
|
logInOutButton->set_label(*loginButtonLabel);
|
||||||
|
logInOutButton->setSelected(false);
|
||||||
logInOutSignalConnection.disconnect();
|
logInOutSignalConnection.disconnect();
|
||||||
logInOutSignalConnection =
|
logInOutSignalConnection =
|
||||||
logInOutButton->signal_clicked().connect(sigc::mem_fun(*this,
|
logInOutButton->signal_clicked().connect(sigc::mem_fun(*this,
|
||||||
|
@ -179,7 +180,8 @@ MasterPanelUserInfoWidget :: onLoginButtonClicked (void) throw ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Ptr<LoginWindow>::Ref loginWindow(new LoginWindow(gLiveSupport,
|
Ptr<LoginWindow>::Ref loginWindow(new LoginWindow(gLiveSupport,
|
||||||
loginBundle));
|
loginBundle,
|
||||||
|
logInOutButton));
|
||||||
|
|
||||||
Gtk::Main::run(*loginWindow);
|
Gtk::Main::run(*loginWindow);
|
||||||
|
|
||||||
|
@ -258,6 +260,7 @@ MasterPanelUserInfoWidget :: updateStrings(void)
|
||||||
|
|
||||||
userInfoLabel->set_label(*loggedInMsg);
|
userInfoLabel->set_label(*loggedInMsg);
|
||||||
logInOutButton->set_label(*loginButtonLabel);
|
logInOutButton->set_label(*loginButtonLabel);
|
||||||
|
logInOutButton->setSelected(false);
|
||||||
|
|
||||||
dialogWindow.reset(new DialogWindow(getResourceUstring("sureToExitMsg"),
|
dialogWindow.reset(new DialogWindow(getResourceUstring("sureToExitMsg"),
|
||||||
DialogWindow::noButton |
|
DialogWindow::noButton |
|
||||||
|
|
|
@ -388,8 +388,9 @@ MasterPanelWindow :: updateLiveModeWindow(Ptr<Playable>::Ref playable)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
liveModeWindow.reset(new LiveModeWindow(gLiveSupport, bundle));
|
liveModeWindow.reset(new LiveModeWindow(gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(liveModeWindow);
|
bundle,
|
||||||
|
liveModeButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playable) {
|
if (playable) {
|
||||||
|
@ -397,7 +398,6 @@ MasterPanelWindow :: updateLiveModeWindow(Ptr<Playable>::Ref playable)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!liveModeWindow->is_visible()) {
|
if (!liveModeWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(liveModeWindow);
|
|
||||||
liveModeWindow->show();
|
liveModeWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -418,17 +418,16 @@ MasterPanelWindow :: onUploadFileButtonClicked(void) throw ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadFileWindow.reset(new UploadFileWindow(gLiveSupport, bundle));
|
uploadFileWindow.reset(new UploadFileWindow(gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(uploadFileWindow);
|
bundle,
|
||||||
|
uploadFileButton));
|
||||||
uploadFileWindow->show();
|
uploadFileWindow->show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!uploadFileWindow->is_visible()) {
|
if (!uploadFileWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(uploadFileWindow);
|
|
||||||
uploadFileWindow->show();
|
uploadFileWindow->show();
|
||||||
} else {
|
} else {
|
||||||
gLiveSupport->putWindowPosition(uploadFileWindow);
|
|
||||||
uploadFileWindow->hide();
|
uploadFileWindow->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -449,9 +448,10 @@ MasterPanelWindow :: updateScratchpadWindow(Ptr<Playable>::Ref playable)
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
scratchpadWindow.reset(new ScratchpadWindow(gLiveSupport, bundle));
|
scratchpadWindow.reset(new ScratchpadWindow(gLiveSupport,
|
||||||
|
bundle,
|
||||||
|
scratchpadButton));
|
||||||
gLiveSupport->loadScratchpadContents(scratchpadWindow);
|
gLiveSupport->loadScratchpadContents(scratchpadWindow);
|
||||||
gLiveSupport->getWindowPosition(scratchpadWindow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playable) {
|
if (playable) {
|
||||||
|
@ -459,7 +459,6 @@ MasterPanelWindow :: updateScratchpadWindow(Ptr<Playable>::Ref playable)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!scratchpadWindow->is_visible()) {
|
if (!scratchpadWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(scratchpadWindow);
|
|
||||||
scratchpadWindow->show();
|
scratchpadWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -480,15 +479,15 @@ MasterPanelWindow :: updateSimplePlaylistMgmtWindow(void) throw ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
simplePlaylistMgmtWindow.reset(
|
simplePlaylistMgmtWindow.reset(new SimplePlaylistManagementWindow(
|
||||||
new SimplePlaylistManagementWindow(gLiveSupport, bundle));
|
gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(simplePlaylistMgmtWindow);
|
bundle,
|
||||||
|
simplePlaylistMgmtButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
simplePlaylistMgmtWindow->showContents();
|
simplePlaylistMgmtWindow->showContents();
|
||||||
|
|
||||||
if (!simplePlaylistMgmtWindow->is_visible()) {
|
if (!simplePlaylistMgmtWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(simplePlaylistMgmtWindow);
|
|
||||||
simplePlaylistMgmtWindow->show();
|
simplePlaylistMgmtWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -511,8 +510,9 @@ MasterPanelWindow :: updateSchedulerWindow(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
schedulerWindow.reset(new SchedulerWindow(gLiveSupport, bundle));
|
schedulerWindow.reset(new SchedulerWindow(gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(schedulerWindow);
|
bundle,
|
||||||
|
schedulerButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (time.get()) {
|
if (time.get()) {
|
||||||
|
@ -522,7 +522,6 @@ MasterPanelWindow :: updateSchedulerWindow(
|
||||||
schedulerWindow->showContents();
|
schedulerWindow->showContents();
|
||||||
|
|
||||||
if (!schedulerWindow->is_visible()) {
|
if (!schedulerWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(schedulerWindow);
|
|
||||||
schedulerWindow->show();
|
schedulerWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -543,12 +542,12 @@ MasterPanelWindow :: updateSearchWindow(void) throw ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
searchWindow.reset(new SearchWindow(gLiveSupport, bundle));
|
searchWindow.reset(new SearchWindow(gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(searchWindow);
|
bundle,
|
||||||
|
searchButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!searchWindow->is_visible()) {
|
if (!searchWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(searchWindow);
|
|
||||||
searchWindow->show();
|
searchWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -569,12 +568,12 @@ MasterPanelWindow :: updateOptionsWindow(void) throw ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
optionsWindow.reset(new OptionsWindow(gLiveSupport, bundle));
|
optionsWindow.reset(new OptionsWindow(gLiveSupport,
|
||||||
gLiveSupport->getWindowPosition(optionsWindow);
|
bundle,
|
||||||
|
optionsButton));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!optionsWindow->is_visible()) {
|
if (!optionsWindow->is_visible()) {
|
||||||
gLiveSupport->getWindowPosition(optionsWindow);
|
|
||||||
optionsWindow->show();
|
optionsWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -597,14 +596,12 @@ MasterPanelWindow :: showAnonymousUI(void) throw ()
|
||||||
|
|
||||||
if (liveModeWindow.get()) {
|
if (liveModeWindow.get()) {
|
||||||
if (liveModeWindow->is_visible()) {
|
if (liveModeWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(liveModeWindow);
|
|
||||||
liveModeWindow->hide();
|
liveModeWindow->hide();
|
||||||
}
|
}
|
||||||
liveModeWindow.reset();
|
liveModeWindow.reset();
|
||||||
}
|
}
|
||||||
if (uploadFileWindow.get()) {
|
if (uploadFileWindow.get()) {
|
||||||
if (uploadFileWindow->is_visible()) {
|
if (uploadFileWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(uploadFileWindow);
|
|
||||||
uploadFileWindow->hide();
|
uploadFileWindow->hide();
|
||||||
}
|
}
|
||||||
uploadFileWindow.reset();
|
uploadFileWindow.reset();
|
||||||
|
@ -612,35 +609,30 @@ MasterPanelWindow :: showAnonymousUI(void) throw ()
|
||||||
if (scratchpadWindow.get()) {
|
if (scratchpadWindow.get()) {
|
||||||
gLiveSupport->storeScratchpadContents(scratchpadWindow);
|
gLiveSupport->storeScratchpadContents(scratchpadWindow);
|
||||||
if (scratchpadWindow->is_visible()) {
|
if (scratchpadWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(scratchpadWindow);
|
|
||||||
scratchpadWindow->hide();
|
scratchpadWindow->hide();
|
||||||
}
|
}
|
||||||
scratchpadWindow.reset();
|
scratchpadWindow.reset();
|
||||||
}
|
}
|
||||||
if (simplePlaylistMgmtWindow.get()) {
|
if (simplePlaylistMgmtWindow.get()) {
|
||||||
if (simplePlaylistMgmtWindow->is_visible()) {
|
if (simplePlaylistMgmtWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(simplePlaylistMgmtWindow);
|
|
||||||
simplePlaylistMgmtWindow->hide();
|
simplePlaylistMgmtWindow->hide();
|
||||||
}
|
}
|
||||||
simplePlaylistMgmtWindow.reset();
|
simplePlaylistMgmtWindow.reset();
|
||||||
}
|
}
|
||||||
if (schedulerWindow.get()) {
|
if (schedulerWindow.get()) {
|
||||||
if (schedulerWindow->is_visible()) {
|
if (schedulerWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(schedulerWindow);
|
|
||||||
schedulerWindow->hide();
|
schedulerWindow->hide();
|
||||||
}
|
}
|
||||||
schedulerWindow.reset();
|
schedulerWindow.reset();
|
||||||
}
|
}
|
||||||
if (searchWindow.get()) {
|
if (searchWindow.get()) {
|
||||||
if (searchWindow->is_visible()) {
|
if (searchWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(searchWindow);
|
|
||||||
searchWindow->hide();
|
searchWindow->hide();
|
||||||
}
|
}
|
||||||
searchWindow.reset();
|
searchWindow.reset();
|
||||||
}
|
}
|
||||||
if (optionsWindow.get()) {
|
if (optionsWindow.get()) {
|
||||||
if (optionsWindow->is_visible()) {
|
if (optionsWindow->is_visible()) {
|
||||||
gLiveSupport->putWindowPosition(optionsWindow);
|
|
||||||
optionsWindow->hide();
|
optionsWindow->hide();
|
||||||
}
|
}
|
||||||
optionsWindow.reset();
|
optionsWindow.reset();
|
||||||
|
|
|
@ -67,13 +67,13 @@ static const Glib::ustring windowName = "optionsWindow";
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
OptionsWindow :: OptionsWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
OptionsWindow :: OptionsWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow("",
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
"",
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ OptionsWindow :: onCloseButtonClicked(bool needConfirm) throw ()
|
||||||
// TODO: add confirmation dialog
|
// TODO: add confirmation dialog
|
||||||
// and either save changes or cancel them
|
// and either save changes or cancel them
|
||||||
}
|
}
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,10 @@
|
||||||
#include "LiveSupport/Widgets/EntryBin.h"
|
#include "LiveSupport/Widgets/EntryBin.h"
|
||||||
#include "LiveSupport/Widgets/ComboBoxText.h"
|
#include "LiveSupport/Widgets/ComboBoxText.h"
|
||||||
#include "LiveSupport/Widgets/Notebook.h"
|
#include "LiveSupport/Widgets/Notebook.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/ScrolledWindow.h"
|
#include "LiveSupport/Widgets/ScrolledWindow.h"
|
||||||
#include "LiveSupport/Widgets/ZebraTreeModelColumnRecord.h"
|
#include "LiveSupport/Widgets/ZebraTreeModelColumnRecord.h"
|
||||||
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
#include "MasterPanelUserInfoWidget.h"
|
#include "MasterPanelUserInfoWidget.h"
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class OptionsWindow : public WhiteWindow, public LocalizedObject
|
class OptionsWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
@ -132,11 +132,6 @@ class OptionsWindow : public WhiteWindow, public LocalizedObject
|
||||||
*/
|
*/
|
||||||
StringEntryListType stringEntryList;
|
StringEntryListType stringEntryList;
|
||||||
|
|
||||||
/**
|
|
||||||
* The gLiveSupport object, handling the logic of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new user entry field item.
|
* Create a new user entry field item.
|
||||||
*
|
*
|
||||||
|
@ -372,12 +367,17 @@ class OptionsWindow : public WhiteWindow, public LocalizedObject
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the gLiveSupport object, handling the
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
* logic of the application
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding localized resources
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
OptionsWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
OptionsWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -64,13 +64,13 @@ using namespace LiveSupport::GLiveSupport;
|
||||||
SchedulePlaylistWindow :: SchedulePlaylistWindow (
|
SchedulePlaylistWindow :: SchedulePlaylistWindow (
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport,
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle,
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton,
|
||||||
Ptr<Playlist>::Ref playlist)
|
Ptr<Playlist>::Ref playlist)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::schedulerWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::schedulerWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton),
|
||||||
gLiveSupport(gLiveSupport),
|
|
||||||
playlist(playlist)
|
playlist(playlist)
|
||||||
{
|
{
|
||||||
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
||||||
|
@ -172,13 +172,3 @@ SchedulePlaylistWindow :: onScheduleButtonClicked (void) throw ()
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* Event handler for the close button getting clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
SchedulePlaylistWindow :: onCloseButtonClicked (void) throw ()
|
|
||||||
{
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,9 +50,9 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/EntryBin.h"
|
#include "LiveSupport/Widgets/EntryBin.h"
|
||||||
#include "LiveSupport/Widgets/Button.h"
|
#include "LiveSupport/Widgets/Button.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
namespace LiveSupport {
|
namespace LiveSupport {
|
||||||
|
@ -89,17 +89,11 @@ using namespace LiveSupport::Core;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class SchedulePlaylistWindow : public WhiteWindow,
|
class SchedulePlaylistWindow : public GuiWindow
|
||||||
public LocalizedObject
|
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The playlist to schedule.
|
* The playlist to schedule.
|
||||||
*/
|
*/
|
||||||
|
@ -156,24 +150,22 @@ class SchedulePlaylistWindow : public WhiteWindow,
|
||||||
virtual void
|
virtual void
|
||||||
onScheduleButtonClicked(void) throw ();
|
onScheduleButtonClicked(void) throw ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Signal handler for the close button clicked.
|
|
||||||
*/
|
|
||||||
virtual void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
* @param playlist the playlist to schedule.
|
* @param playlist the playlist to schedule.
|
||||||
*/
|
*/
|
||||||
SchedulePlaylistWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
SchedulePlaylistWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle,
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton,
|
||||||
Ptr<Playlist>::Ref playlist)
|
Ptr<Playlist>::Ref playlist)
|
||||||
throw ();
|
throw ();
|
||||||
|
|
||||||
|
|
|
@ -65,14 +65,15 @@ static const Glib::ustring windowName = "schedulerWindow";
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
SchedulerWindow :: SchedulerWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
SchedulerWindow :: SchedulerWindow (
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::schedulerWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::schedulerWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
set_title(*getResourceUstring("windowTitle"));
|
set_title(*getResourceUstring("windowTitle"));
|
||||||
|
@ -296,14 +297,3 @@ SchedulerWindow :: onDeleteItem(void) throw ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* Event handler for the close button getting clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
SchedulerWindow :: onCloseButtonClicked (void) throw ()
|
|
||||||
{
|
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
namespace LiveSupport {
|
namespace LiveSupport {
|
||||||
|
@ -91,7 +91,7 @@ using namespace LiveSupport::Core;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class SchedulerWindow : public WhiteWindow, public LocalizedObject
|
class SchedulerWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -139,11 +139,6 @@ class SchedulerWindow : public WhiteWindow, public LocalizedObject
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The date selected for display.
|
* The date selected for display.
|
||||||
*/
|
*/
|
||||||
|
@ -211,23 +206,22 @@ class SchedulerWindow : public WhiteWindow, public LocalizedObject
|
||||||
virtual void
|
virtual void
|
||||||
onDeleteItem(void) throw ();
|
onDeleteItem(void) throw ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Signal handler for the close button clicked.
|
|
||||||
*/
|
|
||||||
virtual void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
SchedulerWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
SchedulerWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -67,14 +67,15 @@ static const Glib::ustring windowName = "scratchpadWindow";
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
ScratchpadWindow :: ScratchpadWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
ScratchpadWindow :: ScratchpadWindow (
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::scratchpadWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::scratchpadWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
Ptr<WidgetFactory>::Ref widgetFactory = WidgetFactory::getInstance();
|
Ptr<WidgetFactory>::Ref widgetFactory = WidgetFactory::getInstance();
|
||||||
|
|
||||||
|
@ -453,6 +454,7 @@ ScratchpadWindow :: onSchedulePlaylist(void) throw ()
|
||||||
Ptr<SchedulePlaylistWindow>::Ref scheduleWindow;
|
Ptr<SchedulePlaylistWindow>::Ref scheduleWindow;
|
||||||
scheduleWindow.reset(new SchedulePlaylistWindow(gLiveSupport,
|
scheduleWindow.reset(new SchedulePlaylistWindow(gLiveSupport,
|
||||||
bundle,
|
bundle,
|
||||||
|
0, /* no button */
|
||||||
playlist));
|
playlist));
|
||||||
|
|
||||||
Gtk::Main::run(*scheduleWindow);
|
Gtk::Main::run(*scheduleWindow);
|
||||||
|
@ -546,17 +548,6 @@ ScratchpadWindow :: isSelectionSingle(void) throw ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* The event when the close button has been clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
ScratchpadWindow :: onCloseButtonClicked(void) throw ()
|
|
||||||
{
|
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Add an item to the Scratchpad.
|
* Add an item to the Scratchpad.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -48,9 +48,9 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/Button.h"
|
#include "LiveSupport/Widgets/Button.h"
|
||||||
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "CuePlayer.h"
|
#include "CuePlayer.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
|
@ -75,8 +75,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class ScratchpadWindow : public WhiteWindow,
|
class ScratchpadWindow : public GuiWindow
|
||||||
public LocalizedObject
|
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
@ -166,11 +165,6 @@ class ScratchpadWindow : public WhiteWindow,
|
||||||
*/
|
*/
|
||||||
Gtk::TreeRow currentRow;
|
Gtk::TreeRow currentRow;
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main container in the window.
|
* The main container in the window.
|
||||||
*/
|
*/
|
||||||
|
@ -307,23 +301,22 @@ class ScratchpadWindow : public WhiteWindow,
|
||||||
virtual void
|
virtual void
|
||||||
onAddToLiveMode(void) throw ();
|
onAddToLiveMode(void) throw ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Function to catch the event of the close button being pressed.
|
|
||||||
*/
|
|
||||||
virtual void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
ScratchpadWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
ScratchpadWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -67,13 +67,13 @@ using namespace LiveSupport::GLiveSupport;
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
SearchWindow :: SearchWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
SearchWindow :: SearchWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::searchWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::searchWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
Gtk::Box * simpleSearchView = constructSimpleSearchView();
|
Gtk::Box * simpleSearchView = constructSimpleSearchView();
|
||||||
Gtk::Box * advancedSearchView = constructAdvancedSearchView();
|
Gtk::Box * advancedSearchView = constructAdvancedSearchView();
|
||||||
|
@ -491,14 +491,3 @@ SearchWindow :: onDoubleClick(const Gtk::TreeModel::Path & path,
|
||||||
onAddToScratchpad();
|
onAddToScratchpad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* The event when the close button has been clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
SearchWindow :: onCloseButtonClicked(void) throw ()
|
|
||||||
{
|
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,9 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/Button.h"
|
#include "LiveSupport/Widgets/Button.h"
|
||||||
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
#include "LiveSupport/Widgets/PlayableTreeModelColumnRecord.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "AdvancedSearchEntry.h"
|
#include "AdvancedSearchEntry.h"
|
||||||
#include "BrowseEntry.h"
|
#include "BrowseEntry.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
@ -75,7 +75,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class SearchWindow : public WhiteWindow, public LocalizedObject
|
class SearchWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -250,32 +250,23 @@ class SearchWindow : public WhiteWindow, public LocalizedObject
|
||||||
*/
|
*/
|
||||||
Gtk::Menu * contextMenu;
|
Gtk::Menu * contextMenu;
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Function to catch the event of the close button being pressed.
|
|
||||||
*/
|
|
||||||
virtual void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
SearchWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
SearchWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle) throw ();
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual destructor.
|
* Virtual destructor.
|
||||||
|
|
|
@ -68,14 +68,14 @@ static const Glib::ustring windowName = "simplePlaylistManagementWindow";
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
SimplePlaylistManagementWindow :: SimplePlaylistManagementWindow (
|
SimplePlaylistManagementWindow :: SimplePlaylistManagementWindow (
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport,
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow(WidgetConstants::playlistsWindowTitleImage,
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
WidgetConstants::playlistsWindowTitleImage,
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton),
|
||||||
isPlaylistModified(false),
|
isPlaylistModified(false)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
Ptr<WidgetFactory>::Ref wf = WidgetFactory::getInstance();
|
||||||
|
|
||||||
|
@ -302,18 +302,6 @@ SimplePlaylistManagementWindow :: onSaveButtonClicked(void) throw ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* Signal handler for the close button getting clicked.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
void
|
|
||||||
SimplePlaylistManagementWindow :: onCloseButtonClicked(void) throw ()
|
|
||||||
{
|
|
||||||
if (cancelPlaylist()) {
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Cancel the edited playlist, after asking for confirmation.
|
* Cancel the edited playlist, after asking for confirmation.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -48,10 +48,10 @@
|
||||||
|
|
||||||
#include "LiveSupport/Core/Ptr.h"
|
#include "LiveSupport/Core/Ptr.h"
|
||||||
#include "LiveSupport/Core/LocalizedObject.h"
|
#include "LiveSupport/Core/LocalizedObject.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/ZebraTreeModelColumnRecord.h"
|
#include "LiveSupport/Widgets/ZebraTreeModelColumnRecord.h"
|
||||||
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
#include "LiveSupport/Widgets/ZebraTreeView.h"
|
||||||
#include "LiveSupport/Widgets/DialogWindow.h"
|
#include "LiveSupport/Widgets/DialogWindow.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
|
|
||||||
namespace LiveSupport {
|
namespace LiveSupport {
|
||||||
|
@ -90,8 +90,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class SimplePlaylistManagementWindow : public WhiteWindow,
|
class SimplePlaylistManagementWindow : public GuiWindow
|
||||||
public LocalizedObject
|
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -189,12 +188,6 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
void
|
void
|
||||||
onSaveButtonClicked(void) throw ();
|
onSaveButtonClicked(void) throw ();
|
||||||
|
|
||||||
/**
|
|
||||||
* Signal handler for the close button clicked.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
onCloseButtonClicked(void) throw ();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signal handler for the "lock fades" check button toggled.
|
* Signal handler for the "lock fades" check button toggled.
|
||||||
*/
|
*/
|
||||||
|
@ -331,12 +324,6 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The GLiveSupport object, holding the state of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The column model.
|
* The column model.
|
||||||
*/
|
*/
|
||||||
|
@ -398,12 +385,17 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the GLiveSupport, application object.
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding the localized
|
* @param bundle the resource bundle holding the localized
|
||||||
* resources for this window
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
SimplePlaylistManagementWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
SimplePlaylistManagementWindow(
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ();
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -64,14 +64,15 @@ using namespace LiveSupport::GLiveSupport;
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
UploadFileWindow :: UploadFileWindow (Ptr<GLiveSupport>::Ref gLiveSupport,
|
UploadFileWindow :: UploadFileWindow (
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ()
|
throw ()
|
||||||
: WhiteWindow("",
|
: GuiWindow(gLiveSupport,
|
||||||
Colors::White,
|
bundle,
|
||||||
WidgetFactory::getInstance()->getWhiteWindowCorners()),
|
"",
|
||||||
LocalizedObject(bundle),
|
windowOpenerButton)
|
||||||
gLiveSupport(gLiveSupport)
|
|
||||||
{
|
{
|
||||||
isAudioClipValid = false;
|
isAudioClipValid = false;
|
||||||
|
|
||||||
|
@ -433,7 +434,6 @@ UploadFileWindow :: onCloseButtonClicked(void) throw ()
|
||||||
statusBar->set_text("");
|
statusBar->set_text("");
|
||||||
isAudioClipValid = false;
|
isAudioClipValid = false;
|
||||||
|
|
||||||
gLiveSupport->putWindowPosition(shared_from_this());
|
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,9 +53,8 @@
|
||||||
#include "LiveSupport/Widgets/EntryBin.h"
|
#include "LiveSupport/Widgets/EntryBin.h"
|
||||||
#include "LiveSupport/Widgets/ComboBoxText.h"
|
#include "LiveSupport/Widgets/ComboBoxText.h"
|
||||||
#include "LiveSupport/Widgets/Notebook.h"
|
#include "LiveSupport/Widgets/Notebook.h"
|
||||||
#include "LiveSupport/Widgets/WhiteWindow.h"
|
|
||||||
#include "LiveSupport/Widgets/ScrolledWindow.h"
|
#include "LiveSupport/Widgets/ScrolledWindow.h"
|
||||||
|
#include "GuiWindow.h"
|
||||||
#include "GLiveSupport.h"
|
#include "GLiveSupport.h"
|
||||||
#include "MasterPanelUserInfoWidget.h"
|
#include "MasterPanelUserInfoWidget.h"
|
||||||
|
|
||||||
|
@ -90,7 +89,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* @author $Author$
|
* @author $Author$
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
class UploadFileWindow : public WhiteWindow, public LocalizedObject
|
class UploadFileWindow : public GuiWindow
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
@ -178,11 +177,6 @@ class UploadFileWindow : public WhiteWindow, public LocalizedObject
|
||||||
*/
|
*/
|
||||||
Gtk::Label * statusBar;
|
Gtk::Label * statusBar;
|
||||||
|
|
||||||
/**
|
|
||||||
* The gLiveSupport object, handling the logic of the application.
|
|
||||||
*/
|
|
||||||
Ptr<GLiveSupport>::Ref gLiveSupport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the file to upload.
|
* The name of the file to upload.
|
||||||
*/
|
*/
|
||||||
|
@ -248,12 +242,16 @@ class UploadFileWindow : public WhiteWindow, public LocalizedObject
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param gLiveSupport the gLiveSupport object, handling the
|
* @param gLiveSupport the gLiveSupport object, containing
|
||||||
* logic of the application
|
* all the vital info.
|
||||||
* @param bundle the resource bundle holding localized resources
|
* @param bundle the resource bundle holding the localized
|
||||||
|
* resources for this window.
|
||||||
|
* @param windowOpenerButton the button which was pressed to open
|
||||||
|
* this window.
|
||||||
*/
|
*/
|
||||||
UploadFileWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
UploadFileWindow(Ptr<GLiveSupport>::Ref gLiveSupport,
|
||||||
Ptr<ResourceBundle>::Ref bundle)
|
Ptr<ResourceBundle>::Ref bundle,
|
||||||
|
Button * windowOpenerButton)
|
||||||
throw ();
|
throw ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue