Exemple #1
0
int main()
{
	vector<Book> bookCollection; // creates vector of Book objects
	vector<Book>& rbookCollection = bookCollection; // reference to the vector of book objects
	setUpWindow(); 
	//loadCollection(rbookCollection);  // loads from file to memory
	menu(rbookCollection); // starts menu 
	system("pause");
	return 0; 
}
Exemple #2
0
EncTtsCfgGui::EncTtsCfgGui(QDialog* parent, EncTtsSettingInterface* iface, QString name)
        : QDialog(parent)
{
    m_settingInterface = iface;

    m_busyCnt=0;
    // create a busy Dialog
    m_busyDlg= new QProgressDialog("", "", 0, 0,this);
    m_busyDlg->setWindowTitle(tr("Waiting for engine..."));
    m_busyDlg->setModal(true);
    m_busyDlg->setLabel(0);
    m_busyDlg->setCancelButton(0);
    m_busyDlg->hide();
    connect(iface,SIGNAL(busy()),this,SLOT(showBusy()));
    connect(iface,SIGNAL(busyEnd()),this,SLOT(hideBusy()));

    //setup the window
    setWindowTitle(name);
    setUpWindow();
}
// ------------------------------------------------------------------------
MainWindow::MainWindow(DataContainer *data)
{
	setUpWindow();
	initialiseFromData(data);
}
// ------------------------------------------------------------------------
MainWindow::MainWindow() : data(NULL)
{
	setUpWindow();
}