<configuration password="admin" >
<connection>
- <!-- TEST SERVER DATA-->
- <!--<serverurl>192.168.0.35</serverurl>
- <username>maemo</username>
- <password>P@ssw0rd</password>-->
- <serverurl>jklexch01.ixonos.com</serverurl>
+ <serverurl></serverurl>
<username></username>
<password></password>
<!-- interval is interpreted in seconds -->
</connection>
<startup>
- <powersaving enabled="true" on="08:00" off="17:00" />
+ <powersaving enabled="true" on="08:00" off="16:00" />
</startup>
<display>
+qtmeetings (1.0.6-1) unstable; urgency=low
+
+ * Improved user interface
+ * Fix for settings read and write
+
+ -- Risto Lintinen <risto.lintinen@ixonos.com> Mon, 24 May 2009 12:30:00 +0300
+
qtmeetings (1.0.5-1) unstable; urgency=low
* Improved communication module for getting a meeting secondary id and detailed information
+resources/QtMeetings.conf etc
<file alias="popup_ok" >icons/popup_ok.png</file>
<file alias="popup_question" >icons/popup_question.png</file>
<file alias="popup_warning" >icons/popup_warning.png</file>
- <file alias="ixonos_logo" >icons/ixonos_logo.png</file>
</qresource>
</RCC>
iAutoRefresh->start();
connect( iAutoRefresh, SIGNAL( timeout() ), iAutoRefresh, SLOT( start() ) );
connect( iAutoRefresh, SIGNAL( timeout() ), this, SLOT( updateRoomInfo() ) );
+
+ connect(iWindowManager, SIGNAL(closeClicked()), this, SLOT(closeApplication()));
+
// connect( iAutoRefresh, SIGNAL( timeout() ), this, SLOT( fetchMeetings() ) );
if( iDevice->currentOperationMode() == DeviceManager::KioskMode )
const QColor ScheduleWidget::sFreeBackground = QColor( Qt::white );
const QColor ScheduleWidget::sBusyBackground = QColor( 238, 147, 17 );
const QColor ScheduleWidget::sBusyBackgroundStart = QColor( 254, 193, 104 );
+const QColor ScheduleWidget::sCurrentBackgroundStart = QColor( 237, 124, 125 );
+const QColor ScheduleWidget::sCurrentBackground = QColor( 161, 1, 1 );
const QColor ScheduleWidget::sHeaderBackground = QColor( Qt::white );
const QColor ScheduleWidget::sDayHighlightColor = QColor( 255, 235, 160 );
const QColor ScheduleWidget::sTimeHighlightColor = QColor( Qt::black );
for ( int i = 0; i < iMeetingsByDay[day].size(); ++i )
{
QLinearGradient linearGrad( QPoint(iMeetingsByDay[day][i].rect.x(),iMeetingsByDay[day][i].rect.y()) , QPoint(iMeetingsByDay[day][i].rect.x(),iMeetingsByDay[day][i].rect.bottom()) );
- linearGrad.setColorAt(0, ScheduleWidget::sBusyBackgroundStart);
- linearGrad.setColorAt(1, ScheduleWidget::sBusyBackground);
+ // draw meeting with red if it is ongoing
+ if ( iMeetingsByDay[day][i].meeting->startsAt() <= QDateTime::currentDateTime() &&
+ iMeetingsByDay[day][i].meeting->endsAt() >= QDateTime::currentDateTime() )
+ {
+ linearGrad.setColorAt(0, ScheduleWidget::sCurrentBackgroundStart);
+ linearGrad.setColorAt(1, ScheduleWidget::sCurrentBackground);
+ }
+ else
+ {
+ linearGrad.setColorAt(0, ScheduleWidget::sBusyBackgroundStart);
+ linearGrad.setColorAt(1, ScheduleWidget::sBusyBackground);
+ }
painter.setBrush(linearGrad);
painter.drawRoundRect( iMeetingsByDay[day][i].rect, 20, 20 );
iScheduleTable->setShowGrid( false );
QFont font;
- font.setPointSize( 10 );
+ font.setStyleHint( QFont::Helvetica );
+ font.setBold( true );
+ font.setPixelSize( 20 );
// add empty item to top-left corner, this will be updated in refresh()
QTableWidgetItem *weekItem = new QTableWidgetItem();
item->setText( tr( "Wk %1" ).arg( iShownDate.weekNumber() ) );
continue;
}
- item->setText( iShownDate.addDays( i - 1 ).toString( tr( "ddd d MMM" ) ) );
+ item->setText( iShownDate.addDays( i - 1 ).toString( tr( "ddd d/M" ) ) );
if ( iCurrentDateTime.date() == iShownDate.addDays( i - 1 ) )
{
void ScheduleWidget::resizeEvent( QResizeEvent* /* aEvent */ )
{
QRect rect = iScheduleTable->contentsRect();
- int rowHeight = ( int )( rect.height() / ( float )iScheduleTable->rowCount() );
- int headerRowHeight = rowHeight;
- int columnWidth = ( int )( rect.width() / ( iScheduleTable->columnCount() - 0.5f ) );
- int headerColumnWidth = columnWidth / 2;
+ int rowHeight = ( int )( rect.height() / ( float )( iScheduleTable->rowCount() + 1 ) );
+ int headerRowHeight = ( int )rowHeight*2;
+ int headerColumnWidth = rect.width() * 0.15f;
+ int columnWidth = ( rect.width() - headerColumnWidth ) / ( iScheduleTable->columnCount() - 1 );
iScheduleTable->setRowHeight( 0, headerRowHeight );
for ( int i = 1; i < iScheduleTable->rowCount(); ++i )
// resize table so that frame size matches exactly
int leftMargin = 0, topMargin = 0, rightMargin = 0, bottomMargin = 0;
iScheduleTable->getContentsMargins( &leftMargin, &topMargin, &rightMargin, &bottomMargin );
- iScheduleTable->resize( columnWidth * iScheduleTable->columnCount() - headerColumnWidth + leftMargin + rightMargin,
- rowHeight * iScheduleTable->rowCount() + topMargin + bottomMargin );
+ iScheduleTable->resize( columnWidth * ( iScheduleTable->columnCount() - 1 ) +
+ headerColumnWidth + leftMargin + rightMargin,
+ rowHeight * ( iScheduleTable->rowCount() + 1 ) + topMargin + bottomMargin );
}
//! Color for a busy cell.
static const QColor sBusyBackground;
+ //! Color for a busy cell.
+ static const QColor sCurrentBackgroundStart;
+
+ //! Color for a busy cell.
+ static const QColor sCurrentBackground;
+
//! Color for headers.
static const QColor sHeaderBackground;
QFont statusBarFont;
statusBarFont.setStyleHint( QFont::Helvetica );
- statusBarFont.setPixelSize( 12 );
+ statusBarFont.setPixelSize( 18 );
// display for current time
// Note: the time display receives current time info from Engine::clock()
iStatusBar->setBackgroundColor( Qt::white );
iStatusBar->setBorderWidth( 4 );
iStatusBar->setFont(statusBarFont);
- iStatusBar->setFixedHeight( 28 );
- QPixmap pixmap(":ixonos_logo");
- iStatusBar->setPixmap( pixmap );
+ iStatusBar->setFixedHeight( 36 );
iStatusBar->setText( tr("Disconnected"), BorderedBarWidget::LeftAlign );
// Pegasus
\r
QFont statusBarFont;\r
statusBarFont.setStyleHint( QFont::Helvetica );\r
- statusBarFont.setPixelSize( 12 );\r
+ statusBarFont.setPixelSize( 18 );\r
\r
QFont buttonFont;\r
buttonFont.setStyleHint( QFont::Helvetica );\r
iStatusBar->setBackgroundColor( Qt::white );\r
iStatusBar->setBorderWidth( 4 );\r
iStatusBar->setFont(statusBarFont);\r
- iStatusBar->setFixedHeight( 28 );\r
- QPixmap pixmap(":ixonos_logo");\r
- iStatusBar->setPixmap( pixmap );\r
+ iStatusBar->setFixedHeight( 36 );\r
iStatusBar->setText( tr("Disconnected"), BorderedBarWidget::LeftAlign );\r
\r
iSchedule = new ScheduleWidget( aCurrentDateTime, iConfiguration->displaySettings(), this );\r
{
this->setWindowTitle( iApplicationName );
settingsAction = new QAction(tr("&Settings"), this);
+ closeAction = new QAction(tr("&Close"), this);
connect(settingsAction, SIGNAL(triggered()), this, SIGNAL(showSettingsClicked()));
- menuBar()->addAction(settingsAction);
+ connect(closeAction, SIGNAL(triggered()), this, SIGNAL(closeClicked()));
+ editMenu = menuBar()->addMenu(tr("&Edit"));
+ editMenu->addAction(settingsAction);
+ menuBar()->addMenu(editMenu);
+ menuBar()->addAction(closeAction);
}
WindowManager::~WindowManager()
void showSettingsClicked();
+ void closeClicked();
+
void dialogActivated();
void dialogDeactivated();
//! Stack of views previously displayed.
QStack<ViewBase *> iViewList;
+ //! Menu settings
QAction *settingsAction;
+ //! Menu close application
+ QAction *closeAction;
+ //! Edit menu
+ QMenu *editMenu;
};
#endif /*WINDOWMANAGER_H_*/