Пример #1
0
playerWindow::playerWindow
(
	BaseObjectType* cobject, 
	const Glib::RefPtr<Gtk::Builder>& refGlade
) 
	: 
		Gtk::Window(cobject),
		m_refGlade(refGlade)
{
	// To instanciate and initialize the player engine
	gst = new playerEngine();
	
	// To link the Glade references
	refGladeMenu(); // for menus
	refGladeButton(); // for buttons
	refGladeWidget(); // for any widgets;
	
	// To connect the signals
	connectSignalClicked(); // clicked 
	connectSignalActivate(); // activate
	connectSignalChangeValue(); // changeValue
	//connectSignalRealize(); // realize
	
	// To initialize all Gtk widgets and mediaplayer's variables
	initMPStates();
	
}
Пример #2
0
playlistWindow::playlistWindow(BaseObjectType* cobject, 
	const Glib::RefPtr<Gtk::Builder>& refGlade)
: Gtk::Window(cobject),
	m_refGlade(refGlade)
{
	refGladeButton(refGlade); // " " " " buttons
	refGladeWidgets(refGlade);// " " " " widgets
	connectSignalClicked(); // clicked buttons
	configureTreeview(); // configure the treeview
}
Пример #3
0
playlistWindow::playlistWindow
(
    BaseObjectType* cobject,
    const Glib::RefPtr<Gtk::Builder>& refGlade
)
    :
    Gtk::Window(cobject),
    m_refGlade(refGlade)
{
    refGladeButton(); // instantiates the buttons
    refGladeWidget();//  widgets
    connectSignalClicked(); // signal clicked buttons
    initPlaylistStates(); // initalize the playlistWindows states
}
Пример #4
0
mxfGeneratorWindow::mxfGeneratorWindow
	(
		BaseObjectType* cobject, 
		const Glib::RefPtr<Gtk::Builder>& refGlade
	) 
	: 
		Gtk::Window(cobject),
		m_refGlade(refGlade)
{
	// To link the Glade references
	refGladeButton(); // for buttons
	refGladeWidget(); // for any widgets;
	// To initialize all Gtk widgets and mediaplayer's variables
	initMXFGenStates();
	// To connect the signals
	connectSignalClicked(); // clicked 
}
// class constructor
genericFilechooserInputOutput::genericFilechooserInputOutput
(
	Gtk::Window& parent, 
	const Glib::ustring& title,
	const Glib::ustring& inputLabel,
	const Glib::ustring& outputLabel,
	const Glib::ustring& inputButtonLabel,
	const Glib::ustring& outputButtonLabel,
	const Glib::ustring& inputPlaceHolderLabel,
	const Glib::ustring& outputPlaceHolderLabel,
	bool setModal
)
: 
	Gtk::Dialog(title, parent, setModal),
	dialogOptionBox(get_vbox ())
{
	// dialog configuration
	set_resizable(true);
	set_position(Gtk::WIN_POS_CENTER);
	set_decorated(true);
	// define labels
	Gtk::Label * inputPathLabel = Gtk::manage(new Gtk::Label(inputLabel));
	Gtk::Label * outputPathLabel = Gtk::manage(new Gtk::Label(outputLabel));
	// define box
	Gtk::Box * pathInputBox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 2));
	Gtk::Box * pathOutputBox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 2));
	// define buttons
	pathInputButton = Gtk::manage(new Gtk::Button(inputButtonLabel));
	pathOutputButton = Gtk::manage(new Gtk::Button(outputButtonLabel));
	// define entry
	pathInputEntry = Gtk::manage(new Gtk::Entry());
	pathInputEntry->set_editable(true);
	pathInputEntry->set_placeholder_text(inputPlaceHolderLabel);
	pathOutputEntry = Gtk::manage(new Gtk::Entry());
	pathOutputEntry->set_editable(true);
	pathOutputEntry->set_placeholder_text(outputPlaceHolderLabel);
	// pack the entry and its button
	pathInputBox->pack_start(*pathInputEntry);
	pathInputBox->pack_start(*pathInputButton);
	pathOutputBox->pack_start(*pathOutputEntry);
	pathOutputBox->pack_start(*pathOutputButton);
    // pack elements into the dialog box
    dialogOptionBox->pack_start(*inputPathLabel);
    dialogOptionBox->pack_start(*pathInputBox);
    dialogOptionBox->pack_start(*outputPathLabel);
    dialogOptionBox->pack_start(*pathOutputBox);
	// append filechooser buttons and linked events
	add_button
	(
		Gtk::Stock::CANCEL, 
		Gtk::RESPONSE_CANCEL
	);
	add_button
	(
		Gtk::Stock::OK, 
		Gtk::RESPONSE_OK
	);
	connectSignalClicked();
	show_all_children();
//	
	// run the filechooser and grab the result
	response = run();
}