Sagi Dayan
11b4101c58
GoogleCalendar/iCal/Outlook at the gui - calendar tab - there is now an export to csv button. clicking it will prompt thr user to save the file on his system hard drive. the app will add the .csv extention. the csv file, will export only one week, starting from the begining of the first semester of 2015 (the one that is coming). in the future i will add a Held doc for exporting and importimg to the users calendar. cheers!
685 lines
23 KiB
XML
685 lines
23 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainScreen</class>
|
|
<widget class="QMainWindow" name="MainScreen">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>855</width>
|
|
<height>517</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>JCE Avg Calculator</string>
|
|
</property>
|
|
<property name="windowIcon">
|
|
<iconset resource="../resources/connectionstatus.qrc">
|
|
<normaloff>:/icons/icon.ico</normaloff>:/icons/icon.ico</iconset>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">#centralWidget
|
|
{
|
|
background: qlineargradient(spread:pad, x1:0.496, y1:0, x2:0.508, y2:1, stop:0 rgba(195, 231, 224, 218), stop:1 rgba(255, 255, 255, 255));
|
|
}</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>48</width>
|
|
<height>48</height>
|
|
</size>
|
|
</property>
|
|
<property name="documentMode">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="dockNestingEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<widget class="QWidget" name="centralWidget">
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="tabPosition">
|
|
<enum>QTabWidget::North</enum>
|
|
</property>
|
|
<property name="tabShape">
|
|
<enum>QTabWidget::Rounded</enum>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="documentMode">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="tabsClosable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="movable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<widget class="QWidget" name="LoginTab">
|
|
<property name="toolTip">
|
|
<string/>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string/>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<attribute name="title">
|
|
<string>Login</string>
|
|
</attribute>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinimumSize</enum>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>200</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>100</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>200</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>100</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QFrame" name="LoginFrame">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">#LoginFrame {
|
|
border: 3px solid rgb(160, 165, 170);
|
|
border-radius: 40px;
|
|
|
|
}
|
|
#loginButton {
|
|
color: white;
|
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88d, stop: 0.1 #99e, stop: 0.49 #77c, stop: 0.5 #66b, stop: 1 #77c);
|
|
border-width: 1px;
|
|
border-color: #339;
|
|
border-style: solid;
|
|
border-radius: 7;
|
|
padding: 3px;
|
|
font-size: 12px;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
min-width: 60px;
|
|
max-width: 60px;
|
|
min-height: 20px;
|
|
max-height: 20px;
|
|
}
|
|
#loginButton:pressed {
|
|
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #88d, stop: 0.1 #99e, stop: 0.49 #88c, stop: 0.5 #77b, stop: 1 #88c);
|
|
}
|
|
|
|
#pswdLabel {
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
}
|
|
#usrnmLabel {
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
}</string>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::StyledPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetDefaultConstraint</enum>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>20</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>15</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>20</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>15</number>
|
|
</property>
|
|
<item row="2" column="0">
|
|
<layout class="QHBoxLayout" name="loginButtonHorizontalLayout">
|
|
<item>
|
|
<widget class="QCheckBox" name="keepLogin">
|
|
<property name="text">
|
|
<string>Keep login</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="loginButton">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="text">
|
|
<string>Login</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_5">
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="usrnmLineEdit">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="inputMethodHints">
|
|
<set>Qt::ImhLatinOnly|Qt::ImhNoPredictiveText</set>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>20</number>
|
|
</property>
|
|
<property name="clearButtonEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="usrnmLabel">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Username</string>
|
|
</property>
|
|
<property name="textFormat">
|
|
<enum>Qt::RichText</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="pswdHorizontalLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="pswdLabel">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Password</string>
|
|
</property>
|
|
<property name="textFormat">
|
|
<enum>Qt::RichText</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="pswdLineEdit">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="inputMethodHints">
|
|
<set>Qt::ImhHiddenText|Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText|Qt::ImhSensitiveData</set>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>20</number>
|
|
</property>
|
|
<property name="echoMode">
|
|
<enum>QLineEdit::Password</enum>
|
|
</property>
|
|
<property name="clearButtonEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="CoursesTab">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<attribute name="title">
|
|
<string>GPA</string>
|
|
</attribute>
|
|
<layout class="QGridLayout" name="gridLayout_4">
|
|
<item row="0" column="0">
|
|
<layout class="QGridLayout" name="courseGrid">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="3" column="0">
|
|
<widget class="QTableWidget" name="coursesTable">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="layoutDirection">
|
|
<enum>Qt::RightToLeft</enum>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::SingleSelection</enum>
|
|
</property>
|
|
<property name="sortingEnabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<layout class="QHBoxLayout" name="coursesTableControlHorizontalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="coursesButtonLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="ratesButton">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="whatsThis">
|
|
<string><html><head/><body><p><span style=" font-weight:600;">Get your grades</span></p></body></html></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Add</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="clearTableButton">
|
|
<property name="toolTip">
|
|
<string><html><head/><body><p><span style=" font-weight:600;">Clear table</span></p></body></html></string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Clear</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer name="coursesAvgSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>378</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="AvghorizontalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="labelAverage">
|
|
<property name="text">
|
|
<string>Average:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLCDNumber" name="avgLCD">
|
|
<property name="font">
|
|
<font>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="midLineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="smallDecimalPoint">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="segmentStyle">
|
|
<enum>QLCDNumber::Filled</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
<item>
|
|
<widget class="QCheckBox" name="checkBoxCoursesInfluence">
|
|
<property name="text">
|
|
<string>Only Main Courses</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelFrom">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Ignored">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>From</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelFromYear">
|
|
<property name="text">
|
|
<string>Year:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxCoursesFromYear">
|
|
<property name="minimum">
|
|
<number>2008</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>2015</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>2011</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelFromSemester">
|
|
<property name="text">
|
|
<string>Semester:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxCoursesFromSemester">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Minimum</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelTo">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Ignored">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>To</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelToYear">
|
|
<property name="text">
|
|
<string>Year:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxCoursesToYear">
|
|
<property name="minimum">
|
|
<number>2008</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>2015</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>2014</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelToSemester">
|
|
<property name="text">
|
|
<string>Semester</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxCoursesToSemester">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="CalendarTab">
|
|
<attribute name="title">
|
|
<string>Calendar</string>
|
|
</attribute>
|
|
<layout class="QGridLayout" name="gridLayout_6">
|
|
<item row="0" column="0">
|
|
<layout class="QGridLayout" name="calendarGridLayoutMain">
|
|
<item row="0" column="0">
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxYear">
|
|
<property name="minimum">
|
|
<number>2012</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>2020</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>2014</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBoxSemester">
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>3</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>2</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pushButton">
|
|
<property name="text">
|
|
<string>Get Calendar</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pushButton_2">
|
|
<property name="text">
|
|
<string>Export to CSV</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menuBar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>855</width>
|
|
<height>29</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuA_about">
|
|
<property name="title">
|
|
<string>&About</string>
|
|
</property>
|
|
<addaction name="actionHow_To"/>
|
|
<addaction name="actionCredits"/>
|
|
<addaction name="actionExit"/>
|
|
</widget>
|
|
<addaction name="menuA_about"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusBar">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
<action name="actionCredits">
|
|
<property name="text">
|
|
<string>Credits</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionExit">
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionHow_To">
|
|
<property name="text">
|
|
<string>How-To</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<tabstops>
|
|
<tabstop>usrnmLineEdit</tabstop>
|
|
<tabstop>pswdLineEdit</tabstop>
|
|
<tabstop>loginButton</tabstop>
|
|
<tabstop>ratesButton</tabstop>
|
|
<tabstop>clearTableButton</tabstop>
|
|
<tabstop>coursesTable</tabstop>
|
|
</tabstops>
|
|
<resources>
|
|
<include location="../resources/connectionstatus.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|