mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-25 12:47:44 +01:00
bugfix 2570
This commit is contained in:
parent
b8897f2456
commit
84e1b735e2
@ -77,6 +77,21 @@ void TimeDialog::loadFWObject(FWObject *o)
|
||||
init=true;
|
||||
|
||||
fillLibraries(m_dialog->libs,obj);
|
||||
m_dialog->cbStart1->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart2->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart3->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart4->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart5->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart6->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStart7->setCheckState(Qt::Unchecked);
|
||||
|
||||
m_dialog->cbStop1->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop2->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop3->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop4->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop5->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop6->setCheckState(Qt::Unchecked);
|
||||
m_dialog->cbStop7->setCheckState(Qt::Unchecked);
|
||||
|
||||
m_dialog->obj_name->setText( QString::fromUtf8(s->getName().c_str()) );
|
||||
m_dialog->comment->setPlainText( QString::fromUtf8(s->getComment().c_str()) );
|
||||
@ -118,7 +133,25 @@ void TimeDialog::loadFWObject(FWObject *o)
|
||||
m_dialog->useStartDate->setChecked(using_start_date);
|
||||
|
||||
// from_weekday is -1 for "All days"
|
||||
m_dialog->startDOW->setCurrentIndex( obj->getInt("from_weekday") + 1 );
|
||||
// m_dialog->startDOW->setCurrentIndex( obj->getInt("from_weekday") + 1 );
|
||||
QString sFromWeekday = obj->getStr("from_weekday").c_str();
|
||||
qDebug (sFromWeekday.toAscii().data());
|
||||
if (sFromWeekday=="-1")
|
||||
sFromWeekday="0,1,2,3,4,5,6";
|
||||
if (sFromWeekday.contains('0'))
|
||||
m_dialog->cbStart1->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('1'))
|
||||
m_dialog->cbStart2->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('2'))
|
||||
m_dialog->cbStart3->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('3'))
|
||||
m_dialog->cbStart4->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('4'))
|
||||
m_dialog->cbStart5->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('5'))
|
||||
m_dialog->cbStart6->setCheckState(Qt::Checked);
|
||||
if (sFromWeekday.contains('6'))
|
||||
m_dialog->cbStart7->setCheckState(Qt::Checked);
|
||||
|
||||
int toH = obj->getInt("to_hour");
|
||||
int toM = obj->getInt("to_minute");
|
||||
@ -134,7 +167,24 @@ void TimeDialog::loadFWObject(FWObject *o)
|
||||
m_dialog->useEndDate->setChecked(using_end_date);
|
||||
|
||||
// to_weekday is -1 for "All days"
|
||||
m_dialog->endDOW->setCurrentIndex( obj->getInt("to_weekday") + 1 );
|
||||
// m_dialog->endDOW->setCurrentIndex( obj->getInt("to_weekday") + 1 );
|
||||
QString sToWeekday = obj->getStr("to_weekday").c_str();
|
||||
if (sToWeekday=="-1")
|
||||
sToWeekday="0,1,2,3,4,5,6";
|
||||
if (sToWeekday.contains('0'))
|
||||
m_dialog->cbStop1->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('1'))
|
||||
m_dialog->cbStop2->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('2'))
|
||||
m_dialog->cbStop3->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('3'))
|
||||
m_dialog->cbStop4->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('4'))
|
||||
m_dialog->cbStop5->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('5'))
|
||||
m_dialog->cbStop6->setCheckState(Qt::Checked);
|
||||
if (sToWeekday.contains('6'))
|
||||
m_dialog->cbStop7->setCheckState(Qt::Checked);
|
||||
|
||||
|
||||
setDisabledPalette(m_dialog->obj_name);
|
||||
@ -166,12 +216,27 @@ void TimeDialog::enableAllWidgets()
|
||||
m_dialog->startTime->setEnabled(!obj->isReadOnly());
|
||||
m_dialog->useStartDate->setEnabled(!obj->isReadOnly());
|
||||
m_dialog->startDate->setEnabled(!obj->isReadOnly() && m_dialog->useStartDate->isChecked());
|
||||
m_dialog->startDOW->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
// m_dialog->startDOW->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart1->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart2->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart3->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart4->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart5->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart6->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
m_dialog->cbStart7->setEnabled(!obj->isReadOnly() && !m_dialog->useStartDate->isChecked());
|
||||
|
||||
m_dialog->endTime->setEnabled(!obj->isReadOnly());
|
||||
m_dialog->useEndDate->setEnabled(!obj->isReadOnly());
|
||||
m_dialog->endDate->setEnabled(!obj->isReadOnly() && m_dialog->useEndDate->isChecked());
|
||||
m_dialog->endDOW->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop1->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop2->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop3->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop4->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop5->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop6->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
m_dialog->cbStop7->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
|
||||
// m_dialog->endDOW->setEnabled(!obj->isReadOnly() && !m_dialog->useEndDate->isChecked());
|
||||
}
|
||||
|
||||
void TimeDialog::changed()
|
||||
@ -222,8 +287,27 @@ void TimeDialog::applyChanges()
|
||||
}
|
||||
obj->setInt( "from_minute" , m_dialog->startTime->time().minute());
|
||||
obj->setInt( "from_hour" , m_dialog->startTime->time().hour() );
|
||||
obj->setInt( "from_weekday" , m_dialog->startDOW->currentIndex() -1);
|
||||
|
||||
QString sFromWeekday ;
|
||||
if (m_dialog->cbStart1->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="0,";
|
||||
if (m_dialog->cbStart2->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="1,";
|
||||
if (m_dialog->cbStart3->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="2,";
|
||||
if (m_dialog->cbStart4->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="3,";
|
||||
if (m_dialog->cbStart5->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="4,";
|
||||
if (m_dialog->cbStart6->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="5,";
|
||||
if (m_dialog->cbStart7->checkState ()==Qt::Checked)
|
||||
sFromWeekday+="6,";
|
||||
if (sFromWeekday.length()>0)
|
||||
sFromWeekday.remove(sFromWeekday.length()-1,0);
|
||||
|
||||
// obj->setInt( "from_weekday" , m_dialog->startDOW->currentIndex() -1);
|
||||
obj->setStr ("from_weekday" , sFromWeekday.toAscii().data());
|
||||
|
||||
if (m_dialog->useEndDate->isChecked())
|
||||
{
|
||||
@ -238,7 +322,28 @@ void TimeDialog::applyChanges()
|
||||
}
|
||||
obj->setInt( "to_minute" , m_dialog->endTime->time().minute() );
|
||||
obj->setInt( "to_hour" , m_dialog->endTime->time().hour() );
|
||||
obj->setInt( "to_weekday" , m_dialog->endDOW->currentIndex() - 1 );
|
||||
|
||||
QString sToWeekday ;
|
||||
if (m_dialog->cbStop1->checkState ()==Qt::Checked)
|
||||
sToWeekday+="0,";
|
||||
if (m_dialog->cbStop2->checkState ()==Qt::Checked)
|
||||
sToWeekday+="1,";
|
||||
if (m_dialog->cbStop3->checkState ()==Qt::Checked)
|
||||
sToWeekday+="2,";
|
||||
if (m_dialog->cbStop4->checkState ()==Qt::Checked)
|
||||
sToWeekday+="3,";
|
||||
if (m_dialog->cbStop5->checkState ()==Qt::Checked)
|
||||
sToWeekday+="4,";
|
||||
if (m_dialog->cbStop6->checkState ()==Qt::Checked)
|
||||
sToWeekday+="5,";
|
||||
if (m_dialog->cbStop7->checkState ()==Qt::Checked)
|
||||
sToWeekday+="6,";
|
||||
if (sToWeekday.length()>0)
|
||||
sToWeekday.remove(sFromWeekday.length()-1,0);
|
||||
|
||||
|
||||
// obj->setInt( "to_weekday" , m_dialog->endDOW->currentIndex() - 1 );
|
||||
obj->setStr( "to_weekday" , sToWeekday.toAscii().data() );
|
||||
|
||||
mw->updateObjName(obj,QString::fromUtf8(oldname.c_str()));
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>679</width>
|
||||
<height>200</height>
|
||||
<width>714</width>
|
||||
<height>238</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
@ -147,270 +147,12 @@
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>10</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>10</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QFrame" name="frame18" >
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow" >
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="leftMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox2" >
|
||||
<property name="title" >
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item row="0" column="2" colspan="2" >
|
||||
<widget class="QDateEdit" name="startDate" >
|
||||
<property name="date" >
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3" >
|
||||
<widget class="QTimeEdit" name="startTime" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2" colspan="2" >
|
||||
<widget class="QComboBox" name="startDOW" >
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Any</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Sunday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Monday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Tuesday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Wednesday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Thursday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Friday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Saturday</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2" >
|
||||
<widget class="QLabel" name="textLabel3" >
|
||||
<property name="text" >
|
||||
<string>Start day of week:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3" >
|
||||
<widget class="QLabel" name="textLabel1_3" >
|
||||
<property name="text" >
|
||||
<string>Start time:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="useStartDate" >
|
||||
<property name="text" >
|
||||
<string>Start date:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox1" >
|
||||
<property name="title" >
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item row="1" column="4" >
|
||||
<widget class="QTimeEdit" name="endTime" />
|
||||
</item>
|
||||
<item row="0" column="2" colspan="3" >
|
||||
<widget class="QDateEdit" name="endDate" >
|
||||
<property name="date" >
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="useEndDate" >
|
||||
<property name="text" >
|
||||
<string>End date:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="4" >
|
||||
<widget class="QLabel" name="textLabel1_3_2" >
|
||||
<property name="text" >
|
||||
<string>End time:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3" colspan="2" >
|
||||
<widget class="QComboBox" name="endDOW" >
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Any</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Sunday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Monday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Tuesday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Wednesday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Thursday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Friday</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>Saturday</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3" >
|
||||
<widget class="QLabel" name="textLabel3_2" >
|
||||
<property name="text" >
|
||||
<string>End day of week:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" colspan="2" >
|
||||
<item row="0" column="2" >
|
||||
<widget class="QLabel" name="textLabel2" >
|
||||
<property name="text" >
|
||||
<string>Comment:</string>
|
||||
@ -506,6 +248,320 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QFrame" name="frame18" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>350</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="frameShadow" >
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="leftMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox2" >
|
||||
<property name="title" >
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="useStartDate" >
|
||||
<property name="text" >
|
||||
<string>Start date:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2" >
|
||||
<widget class="QDateEdit" name="startDate" >
|
||||
<property name="date" >
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2" >
|
||||
<widget class="QLabel" name="textLabel1_3" >
|
||||
<property name="text" >
|
||||
<string>Start time:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QTimeEdit" name="startTime" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3" >
|
||||
<widget class="QFrame" name="frame" >
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow" >
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="cbStart1" >
|
||||
<property name="text" >
|
||||
<string>Mon</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QCheckBox" name="cbStart2" >
|
||||
<property name="text" >
|
||||
<string>Tue</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" >
|
||||
<widget class="QCheckBox" name="cbStart3" >
|
||||
<property name="text" >
|
||||
<string>Wed</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3" >
|
||||
<widget class="QCheckBox" name="cbStart4" >
|
||||
<property name="text" >
|
||||
<string>Thu</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4" >
|
||||
<widget class="QCheckBox" name="cbStart5" >
|
||||
<property name="text" >
|
||||
<string>Fri</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5" >
|
||||
<widget class="QCheckBox" name="cbStart6" >
|
||||
<property name="text" >
|
||||
<string>Sat</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6" >
|
||||
<widget class="QCheckBox" name="cbStart7" >
|
||||
<property name="text" >
|
||||
<string>Sun</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox1" >
|
||||
<property name="title" >
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="useEndDate" >
|
||||
<property name="text" >
|
||||
<string>End date:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="2" >
|
||||
<widget class="QDateEdit" name="endDate" >
|
||||
<property name="date" >
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2" >
|
||||
<widget class="QLabel" name="textLabel1_3_2" >
|
||||
<property name="text" >
|
||||
<string>End time:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QTimeEdit" name="endTime" />
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3" >
|
||||
<widget class="QFrame" name="frame_2" >
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow" >
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" >
|
||||
<property name="leftMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="horizontalSpacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="verticalSpacing" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0" >
|
||||
<widget class="QCheckBox" name="cbStop1" >
|
||||
<property name="text" >
|
||||
<string>Mon</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QCheckBox" name="cbStop2" >
|
||||
<property name="text" >
|
||||
<string>Tue</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" >
|
||||
<widget class="QCheckBox" name="cbStop3" >
|
||||
<property name="text" >
|
||||
<string>Wed</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3" >
|
||||
<widget class="QCheckBox" name="cbStop4" >
|
||||
<property name="text" >
|
||||
<string>Thu</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4" >
|
||||
<widget class="QCheckBox" name="cbStop5" >
|
||||
<property name="text" >
|
||||
<string>Fri</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5" >
|
||||
<widget class="QCheckBox" name="cbStop6" >
|
||||
<property name="text" >
|
||||
<string>Sat</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6" >
|
||||
<widget class="QCheckBox" name="cbStop7" >
|
||||
<property name="text" >
|
||||
<string>Sun</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QTextEdit" name="comment" >
|
||||
<property name="sizePolicy" >
|
||||
@ -516,7 +572,7 @@
|
||||
</property>
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>200</width>
|
||||
<width>50</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
@ -551,8 +607,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>81</x>
|
||||
<y>75</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -567,8 +623,8 @@
|
||||
<slot>libChanged()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>81</x>
|
||||
<y>102</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -583,8 +639,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>568</x>
|
||||
<y>71</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -599,8 +655,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>448</x>
|
||||
<y>106</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -615,8 +671,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>336</x>
|
||||
<y>79</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -631,8 +687,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>448</x>
|
||||
<y>193</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -647,40 +703,8 @@
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>startDOW</sender>
|
||||
<signal>editTextChanged(QString)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>endDOW</sender>
|
||||
<signal>editTextChanged(QString)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>336</x>
|
||||
<y>166</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -695,8 +719,8 @@
|
||||
<slot>useStartOrEndDate()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>224</x>
|
||||
<y>79</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -711,8 +735,8 @@
|
||||
<slot>useStartOrEndDate()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<x>224</x>
|
||||
<y>166</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>20</x>
|
||||
@ -720,5 +744,229 @@
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart1</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>220</x>
|
||||
<y>126</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>219</x>
|
||||
<y>127</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart2</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>282</x>
|
||||
<y>125</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>259</x>
|
||||
<y>116</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart3</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>327</x>
|
||||
<y>123</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>296</x>
|
||||
<y>123</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart4</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>372</x>
|
||||
<y>131</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>502</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart5</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>416</x>
|
||||
<y>125</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>394</x>
|
||||
<y>1</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart6</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>478</x>
|
||||
<y>125</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>456</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStart7</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>517</x>
|
||||
<y>118</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>598</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop1</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>221</x>
|
||||
<y>216</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>215</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop2</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>279</x>
|
||||
<y>213</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>262</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop3</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>327</x>
|
||||
<y>212</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>166</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop4</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>378</x>
|
||||
<y>204</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>676</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop5</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>432</x>
|
||||
<y>214</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>57</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop6</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>462</x>
|
||||
<y>212</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>86</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cbStop7</sender>
|
||||
<signal>stateChanged(int)</signal>
|
||||
<receiver>TimeDialog_q</receiver>
|
||||
<slot>changed()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>542</x>
|
||||
<y>214</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>776</x>
|
||||
<y>0</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user