Example #1
0
void ConferenceChat::load()
{
	if (!isValidStorage())
		return;

	Chat::load();
	CurrentContacts = ContactSetConfigurationHelper::loadFromConfiguration(this, "Contacts");
	refreshTitle();
}
Example #2
0
MainWindow::MainWindow()
    : QMainWindow(), configDialog(NULL)
{
    ui.setupUi(this);
    refreshTitle();

    ui.actionAbout->setText(ui.actionAbout->text().arg(PROJECT_NAME));
    ui.dockWidget->hide();
    ui.dockFindReplace->hide();
}
Example #3
0
//////////////////////////////////////////////////////////////////////
// Function Name:	setTitle	
// Description:		
// Parameters:		
// Data IN/OUT:		
// Return:		
// Notes:		
//////////////////////////////////////////////////////////////////////
bool CListFrame::setTitle(char* title)
{
	//TRACE("[CListFrame]->setTitle \r\n");
	if(!(m_nMode & TITLE)) return(false);
	if(title == NULL) return(false);

	m_textTitle = title;
	refreshTitle();
	
	return(true);
}
Example #4
0
//////////////////////////////////////////////////////////////////////
// Function Name:	Refresh	
// Description:		
// Parameters:		
// Data IN/OUT:		
// Return:		
// Notes:		
//////////////////////////////////////////////////////////////////////
void CListFrame::refresh(void)
{
	if( m_pcWindow == NULL) return;
	//TRACE("[CListFrame]->Refresh\r\n");

	//Paint List
	refreshTitle();
	refreshScroll();
	refreshHeaderList();
	refreshList();
}
Example #5
0
void SleeperDialog::setTimeoutStamp(qint64 timeoutStamp)
{
    this->timeoutStamp = timeoutStamp;

    if (timeoutStamp == -1) {
        refreshTimer->stop();
        this->setWindowTitle(tr("Sleep timer"));
    } else {
        refreshTimer->start();
        refreshTitle();
    }
}
Example #6
0
SleeperDialog::SleeperDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SleeperDialog)
{
    ui->setupUi(this);

    ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Start"));
    ui->buttonBox->button(QDialogButtonBox::Reset)->setText(tr("Stop"));

    this->setAttribute(Qt::WA_DeleteOnClose);

    QMaemo5ListPickSelector *selector;
    QStandardItemModel *model;

    selector = new QMaemo5ListPickSelector;
    model = new QStandardItemModel(0, 1, selector);
    model->appendRow(new QStandardItem(tr("Stop playback")));
    model->appendRow(new QStandardItem(tr("Pause playback")));
    model->appendRow(new QStandardItem(tr("Close application")));
    selector->setModel(model);
    selector->setCurrentIndex(QSettings().value("timer/action").toString() == "stop-playback" ? 0 :
                              QSettings().value("timer/action").toString() == "pause-playback" ? 1 :
                              QSettings().value("timer/action").toString() == "close-application" ? 2 : 0);
    ui->actionBox->setPickSelector(selector);

    selector = new QMaemo5ListPickSelector;
    model = new QStandardItemModel(0, 1, selector);
    model->appendRow(new QStandardItem(tr("None")));
    model->appendRow(new QStandardItem(tr("Linear")));
    model->appendRow(new QStandardItem(tr("Exponential")));
    selector->setModel(model);
    selector->setCurrentIndex(QSettings().value("timer/volumeReduction").toString() == "none"        ? Sleeper::NoReduction :
                              QSettings().value("timer/volumeReduction").toString() == "linear"      ? Sleeper::LinearReduction :
                              QSettings().value("timer/volumeReduction").toString() == "exponential" ? Sleeper::ExponentialReduction :
                                                                                                       Sleeper::NoReduction);
    ui->volumeBox->setPickSelector(selector);

    ui->minutesBox->setValue(QSettings().value("timer/minutes", 30).toInt());

    refreshTimer = new QTimer(this);
    refreshTimer->setInterval(1000);

    connect(refreshTimer, SIGNAL(timeout()), this, SLOT(refreshTitle()));
    connect(ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(onButtonClicked(QAbstractButton*)));

    Sleeper *sleeper = MissionControl::acquire()->sleeper();
    connect(sleeper, SIGNAL(finished()), this, SLOT(setTimeoutStamp()));
    setTimeoutStamp(sleeper->end());

    Rotator::acquire()->addClient(this);
}
Example #7
0
void MainWindow::initialize()
{
    refreshTitle();

    createBrowserAndTabs();

    createDeviceChooser();
    createBoardChooser();

    setupActions();

    tabHasChanged();

    refreshLibrariesMenu();

    restoreState(ideApp->settings()->mainWindowState());
    showFindBox(false);
}
Example #8
0
void AbstractBox::refreshLang() {
	refreshTitle();
	refreshAdditionalTitle();
	InvokeQueued(this, [this] { updateButtonsPositions(); });
}
Example #9
0
void AbstractBox::setTitle(Fn<TextWithEntities()> titleFactory) {
	_titleFactory = std::move(titleFactory);
	refreshTitle();
}