- Timestamp:
- 01/27/10 20:17:01 (13 years ago)
- Branches:
- master, qt5
- Children:
- 21d7cc0
- Parents:
- bc88043
- Location:
- src/gui
- Files:
-
- 5 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/daynavigatorwidget.cpp
rbc88043 rea638ef 30 30 31 31 QRect rect = mFontMetrics->boundingRect(mCurDate.toString("MMM dd yyyy")); 32 qDebug() << mCurDate.toString();33 32 34 33 if(mStartDate==mEndDate) // only one day conference -
src/gui/gui.pro
rbc88043 rea638ef 35 35 # (which means they need to be added to the test module as well, 36 36 # but I am sure you can live with that for the time being). 37 37 38 FORMS += searchhead.ui \ 38 39 mainwindow.ui \ … … 41 42 about.ui \ 42 43 eventdialog.ui \ 44 conflictsdialog.ui \ 43 45 tabcontainer.ui \ 44 46 mapwindow.ui 47 45 48 HEADERS += roomstabcontainer.h \ 46 49 nowtabcontainer.h \ … … 50 53 searchhead.h \ 51 54 dayviewtabcontainer.h \ 55 conflictdialogcontainer.h \ 56 conflictsdialog.h \ 52 57 mainwindow.h \ 53 58 daynavigatorwidget.h \ … … 57 62 tabcontainer.h \ 58 63 mapwindow.h 64 59 65 SOURCES += roomstabcontainer.cpp \ 60 66 nowtabcontainer.cpp \ … … 64 70 searchhead.cpp \ 65 71 dayviewtabcontainer.cpp \ 72 conflictdialogcontainer.cpp \ 73 conflictsdialog.cpp \ 66 74 mainwindow.cpp \ 67 75 daynavigatorwidget.cpp \ … … 71 79 tabcontainer.cpp \ 72 80 mapwindow.cpp 81 73 82 maemo { 74 FORMS += searchhead.ui \ 75 alarmdialog.ui 76 HEADERS += roomstabcontainer.h \ 77 nowtabcontainer.h \ 78 trackstabcontainer.h \ 79 favtabcontainer.h \ 80 searchtabcontainer.h \ 81 searchhead.h \ 82 dayviewtabcontainer.h \ 83 alarmdialog.h 84 SOURCES += roomstabcontainer.cpp \ 85 nowtabcontainer.cpp \ 86 trackstabcontainer.cpp \ 87 favtabcontainer.cpp \ 88 searchtabcontainer.cpp \ 89 searchhead.cpp \ 90 dayviewtabcontainer.cpp \ 91 alarmdialog.cpp 83 FORMS += alarmdialog.ui 84 HEADERS += alarmdialog.h 85 SOURCES += alarmdialog.cpp 92 86 } -
src/gui/mainwindow.ui
rbc88043 rea638ef 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 1 <ui version="4.0" > 3 2 <class>MainWindow</class> 4 <widget class="QMainWindow" name="MainWindow" >5 <property name="geometry" >3 <widget class="QMainWindow" name="MainWindow" > 4 <property name="geometry" > 6 5 <rect> 7 6 <x>0</x> … … 11 10 </rect> 12 11 </property> 13 <property name="minimumSize" >12 <property name="minimumSize" > 14 13 <size> 15 14 <width>400</width> … … 17 16 </size> 18 17 </property> 19 <property name="windowTitle" >18 <property name="windowTitle" > 20 19 <string>MainWindow</string> 21 20 </property> 22 <widget class="QWidget" name="centralwidget" >23 <layout class="QGridLayout" name="gridLayout" >24 <item row="0" column="0" >25 <widget class="TabWidget" name="tabWidget" >26 <property name="currentIndex" >27 <number> 3</number>21 <widget class="QWidget" name="centralwidget" > 22 <layout class="QGridLayout" name="gridLayout" > 23 <item row="0" column="0" > 24 <widget class="TabWidget" name="tabWidget" > 25 <property name="currentIndex" > 26 <number>0</number> 28 27 </property> 29 <widget class="QWidget" name="dayViewTab" >30 <attribute name="title" >28 <widget class="QWidget" name="dayViewTab" > 29 <attribute name="title" > 31 30 <string>Day View</string> 32 31 </attribute> 33 <layout class="QGridLayout" name="gridLayout_2" >34 <item row="0" column="0" >35 <widget class="DayViewTabContainer" na me="dayTabContainer" native="true"/>36 </item> 37 </layout> 38 </widget> 39 <widget class="QWidget" name="favouritesTab" >40 <attribute name="title" >32 <layout class="QGridLayout" name="gridLayout_2" > 33 <item row="0" column="0" > 34 <widget class="DayViewTabContainer" native="1" name="dayTabContainer" /> 35 </item> 36 </layout> 37 </widget> 38 <widget class="QWidget" name="favouritesTab" > 39 <attribute name="title" > 41 40 <string>Favourites</string> 42 41 </attribute> 43 <layout class="QGridLayout" name="gridLayout_3" >44 <item row="0" column="0" >45 <widget class="FavTabContainer" na me="favsTabContainer" native="true"/>46 </item> 47 </layout> 48 </widget> 49 <widget class="QWidget" name="tracksTab" >50 <attribute name="title" >42 <layout class="QGridLayout" name="gridLayout_3" > 43 <item row="0" column="0" > 44 <widget class="FavTabContainer" native="1" name="favsTabContainer" /> 45 </item> 46 </layout> 47 </widget> 48 <widget class="QWidget" name="tracksTab" > 49 <attribute name="title" > 51 50 <string>Tracks</string> 52 51 </attribute> 53 <layout class="QGridLayout" name="gridLayout_4" >54 <item row="0" column="0" >55 <widget class="TracksTabContainer" na me="tracksTabContainer" native="true"/>56 </item> 57 </layout> 58 </widget> 59 <widget class="QWidget" name="searchTab" >60 <attribute name="title" >52 <layout class="QGridLayout" name="gridLayout_4" > 53 <item row="0" column="0" > 54 <widget class="TracksTabContainer" native="1" name="tracksTabContainer" /> 55 </item> 56 </layout> 57 </widget> 58 <widget class="QWidget" name="searchTab" > 59 <attribute name="title" > 61 60 <string>Search</string> 62 61 </attribute> 63 <layout class="QHBoxLayout" name="horizontalLayout_1" >62 <layout class="QHBoxLayout" name="horizontalLayout_1" > 64 63 <item> 65 <widget class="SearchTabContainer" na me="searchTabContainer" native="true">66 <property name="sizePolicy" >67 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">64 <widget class="SearchTabContainer" native="1" name="searchTabContainer" > 65 <property name="sizePolicy" > 66 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 68 67 <horstretch>0</horstretch> 69 68 <verstretch>0</verstretch> … … 74 73 </layout> 75 74 </widget> 76 <widget class="QWidget" name="roomsTab" >77 <attribute name="title" >75 <widget class="QWidget" name="roomsTab" > 76 <attribute name="title" > 78 77 <string>Rooms</string> 79 78 </attribute> 80 <layout class="QGridLayout" name="gridLayout_8" >81 <item row="0" column="0" >82 <widget class="RoomsTabContainer" na me="roomsTabContainer" native="true"/>83 </item> 84 </layout> 85 </widget> 86 <widget class="QWidget" name="conferenceTab" >87 <attribute name="title" >79 <layout class="QGridLayout" name="gridLayout_8" > 80 <item row="0" column="0" > 81 <widget class="RoomsTabContainer" native="1" name="roomsTabContainer" /> 82 </item> 83 </layout> 84 </widget> 85 <widget class="QWidget" name="conferenceTab" > 86 <attribute name="title" > 88 87 <string>Conference</string> 89 88 </attribute> 90 <layout class="QGridLayout" name="gridLayout_5" >91 <item row="0" column="0" >92 <layout class="QVBoxLayout" name="verticalLayout_4" >93 <item> 94 <widget class="QLabel" name="conferenceTitle" >95 <property name="font" >89 <layout class="QGridLayout" name="gridLayout_5" > 90 <item row="0" column="0" > 91 <layout class="QVBoxLayout" name="verticalLayout_4" > 92 <item> 93 <widget class="QLabel" name="conferenceTitle" > 94 <property name="font" > 96 95 <font> 97 96 <weight>75</weight> … … 99 98 </font> 100 99 </property> 101 <property name="text" >100 <property name="text" > 102 101 <string>Conference Name</string> 103 102 </property> 104 <property name="alignment" >103 <property name="alignment" > 105 104 <set>Qt::AlignCenter</set> 106 105 </property> 107 <property name="wordWrap" >106 <property name="wordWrap" > 108 107 <bool>true</bool> 109 108 </property> … … 111 110 </item> 112 111 <item> 113 <widget class="QLabel" name="conferenceSubtitle" >114 <property name="text" >112 <widget class="QLabel" name="conferenceSubtitle" > 113 <property name="text" > 115 114 <string>Conference Subtitle</string> 116 115 </property> 117 <property name="alignment" >116 <property name="alignment" > 118 117 <set>Qt::AlignCenter</set> 119 118 </property> 120 <property name="wordWrap" >119 <property name="wordWrap" > 121 120 <bool>true</bool> 122 121 </property> … … 124 123 </item> 125 124 <item> 126 <widget class="Line" name="line" >127 <property name="orientation" >125 <widget class="Line" name="line" > 126 <property name="orientation" > 128 127 <enum>Qt::Horizontal</enum> 129 128 </property> … … 131 130 </item> 132 131 <item> 133 <layout class="QGridLayout" name="gridLayout_6" >134 <item row="0" column="0" >135 <widget class="QLabel" name="label" >136 <property name="font" >132 <layout class="QGridLayout" name="gridLayout_6" > 133 <item row="0" column="0" > 134 <widget class="QLabel" name="label" > 135 <property name="font" > 137 136 <font> 138 137 <weight>75</weight> … … 141 140 </font> 142 141 </property> 143 <property name="text" >142 <property name="text" > 144 143 <string>When:</string> 145 144 </property> 146 145 </widget> 147 146 </item> 148 <item row="1" column="0" >149 <widget class="QLabel" name="label_2" >150 <property name="font" >147 <item row="1" column="0" > 148 <widget class="QLabel" name="label_2" > 149 <property name="font" > 151 150 <font> 152 151 <weight>75</weight> … … 155 154 </font> 156 155 </property> 157 <property name="text" >156 <property name="text" > 158 157 <string>Where:</string> 159 158 </property> 160 159 </widget> 161 160 </item> 162 <item row="0" column="2" >163 <widget class="QLabel" name="conferenceWhen" >164 <property name="text" >161 <item row="0" column="2" > 162 <widget class="QLabel" name="conferenceWhen" > 163 <property name="text" > 165 164 <string>DATE (FROM - TO)</string> 166 165 </property> 167 166 </widget> 168 167 </item> 169 <item row="1" column="2" >170 <widget class="QLabel" name="conferenceWhere" >171 <property name="text" >168 <item row="1" column="2" > 169 <widget class="QLabel" name="conferenceWhere" > 170 <property name="text" > 172 171 <string>CITY, CAMPUS</string> 173 172 </property> 174 173 </widget> 175 174 </item> 176 <item row="1" column="3" >177 <widget class="QPushButton" name="showMapButton" >178 <property name="text" >175 <item row="1" column="3" > 176 <widget class="QPushButton" name="showMapButton" > 177 <property name="text" > 179 178 <string>MAP</string> 180 179 </property> 181 <property name="icon" >182 <iconset resource="../icons.qrc" >180 <property name="icon" > 181 <iconset resource="../icons.qrc" > 183 182 <normaloff>:/icons/compassBig.png</normaloff>:/icons/compassBig.png</iconset> 184 183 </property> 185 <property name="flat" >184 <property name="flat" > 186 185 <bool>true</bool> 187 186 </property> 188 187 </widget> 189 188 </item> 190 <item row="1" column="4" >191 <spacer name="horizontalSpacer_3" >192 <property name="orientation" >189 <item row="1" column="4" > 190 <spacer name="horizontalSpacer_3" > 191 <property name="orientation" > 193 192 <enum>Qt::Horizontal</enum> 194 193 </property> 195 <property name="sizeHint" stdset="0" >194 <property name="sizeHint" stdset="0" > 196 195 <size> 197 196 <width>40</width> … … 201 200 </spacer> 202 201 </item> 203 <item row="0" column="1" >204 <widget class="QLabel" name="spacer" >205 <property name="text" >202 <item row="0" column="1" > 203 <widget class="QLabel" name="spacer" > 204 <property name="text" > 206 205 <string/> 207 206 </property> … … 211 210 </item> 212 211 <item> 213 <widget class="Line" name="line_2" >214 <property name="orientation" >212 <widget class="Line" name="line_2" > 213 <property name="orientation" > 215 214 <enum>Qt::Horizontal</enum> 216 215 </property> … … 218 217 </item> 219 218 <item> 220 <widget class="ImportScheduleWidget" na me="importScheduleWidget" native="true">221 <property name="sizePolicy" >222 <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">219 <widget class="ImportScheduleWidget" native="1" name="importScheduleWidget" > 220 <property name="sizePolicy" > 221 <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" > 223 222 <horstretch>0</horstretch> 224 223 <verstretch>0</verstretch> … … 228 227 </item> 229 228 <item> 230 <spacer name="verticalSpacer" >231 <property name="orientation" >229 <spacer name="verticalSpacer" > 230 <property name="orientation" > 232 231 <enum>Qt::Vertical</enum> 233 232 </property> 234 <property name="sizeHint" stdset="0" >233 <property name="sizeHint" stdset="0" > 235 234 <size> 236 235 <width>20</width> … … 244 243 </layout> 245 244 </widget> 246 <widget class="QWidget" name="nowTab" >247 <attribute name="title" >245 <widget class="QWidget" name="nowTab" > 246 <attribute name="title" > 248 247 <string>Now</string> 249 248 </attribute> 250 <layout class="QGridLayout" name="gridLayout_7" >251 <item row="0" column="0" >252 <widget class="NowTabContainer" na me="nowTabContainer" native="true"/>249 <layout class="QGridLayout" name="gridLayout_7" > 250 <item row="0" column="0" > 251 <widget class="NowTabContainer" native="1" name="nowTabContainer" /> 253 252 </item> 254 253 </layout> … … 258 257 </layout> 259 258 </widget> 260 <widget class="QStatusBar" name="statusbar" />259 <widget class="QStatusBar" name="statusbar" /> 261 260 </widget> 262 261 <customwidgets> … … 305 304 </customwidgets> 306 305 <resources> 307 <include location="../icons.qrc" />306 <include location="../icons.qrc" /> 308 307 </resources> 309 308 <connections/> -
src/gui/searchtabcontainer.cpp
rbc88043 rea638ef 46 46 void SearchTabContainer::searchButtonClicked() 47 47 { 48 qDebug() << "SearchTab::searchButtonClicked()";49 50 48 QHash<QString,QString> columns; 51 49 -
src/gui/tabcontainer.cpp
rbc88043 rea638ef 10 10 #include "eventdialog.h" 11 11 #include "mapwindow.h" 12 13 #include "conflictsdialog.h" 12 14 13 15 TabContainer::TabContainer(QWidget *aParent) … … 28 30 connect(treeView, SIGNAL(clicked(const QModelIndex &)), SLOT(itemClicked(const QModelIndex &))); 29 31 connect(treeView, SIGNAL(requestForMap(const QModelIndex &)), SLOT(displayMap(const QModelIndex &))); 30 connect(treeView, SIGNAL(requestFor Warning(const QModelIndex &)), SLOT(displayWarning(const QModelIndex &)));32 connect(treeView, SIGNAL(requestForConflicts(const QModelIndex &)), SLOT(displayConflicts(const QModelIndex &))); 31 33 32 34 if(!Conference::getAll().count()) // no conference(s) in the DB … … 82 84 } 83 85 84 void TabContainer::display Warning(const QModelIndex &aIndex)86 void TabContainer::displayConflicts(const QModelIndex &aIndex) 85 87 { 86 88 Q_UNUSED(aIndex); 87 89 88 QMessageBox::warning(89 this,90 tr("Time Conflict Warning"),91 tr("This event happens at the same time than another one of your favourites."));90 ConflictsDialog dialog; 91 connect(&dialog, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int))); 92 dialog.exec(); 93 disconnect(&dialog, SIGNAL(eventHasChanged(int)), this, SIGNAL(eventHasChanged(int))); 92 94 } 93 95 -
src/gui/tabcontainer.h
rbc88043 rea638ef 36 36 void itemClicked(const QModelIndex &aIndex); 37 37 void displayMap(const QModelIndex &aIndex); 38 void display Warning(const QModelIndex &aIndex);38 void displayConflicts(const QModelIndex &aIndex); 39 39 }; 40 40
Note: See TracChangeset
for help on using the changeset viewer.