bigger toolboxes. chat --> left
This commit is contained in:
@@ -112,6 +112,7 @@ HEADERS += src/game.h \
|
|||||||
src/gui/qt/mainwindow/mainwindowimpl.h \
|
src/gui/qt/mainwindow/mainwindowimpl.h \
|
||||||
src/gui/qt/mainwindow/mycardspixmaplabel.h \
|
src/gui/qt/mainwindow/mycardspixmaplabel.h \
|
||||||
src/gui/qt/mainwindow/myrighttabwidget.h \
|
src/gui/qt/mainwindow/myrighttabwidget.h \
|
||||||
|
src/gui/qt/mainwindow/mylefttabwidget.h \
|
||||||
src/gui/qt/mainwindow/startsplash/startsplash.h \
|
src/gui/qt/mainwindow/startsplash/startsplash.h \
|
||||||
src/gui/qt/mainwindow/log/log.h \
|
src/gui/qt/mainwindow/log/log.h \
|
||||||
src/gui/qt/mainwindow/chat/chat.h \
|
src/gui/qt/mainwindow/chat/chat.h \
|
||||||
@@ -201,6 +202,7 @@ SOURCES += src/game.cpp \
|
|||||||
src/gui/qt/mainwindow/mainwindowimpl.cpp \
|
src/gui/qt/mainwindow/mainwindowimpl.cpp \
|
||||||
src/gui/qt/mainwindow/mycardspixmaplabel.cpp \
|
src/gui/qt/mainwindow/mycardspixmaplabel.cpp \
|
||||||
src/gui/qt/mainwindow/myrighttabwidget.cpp \
|
src/gui/qt/mainwindow/myrighttabwidget.cpp \
|
||||||
|
src/gui/qt/mainwindow/mylefttabwidget.cpp \
|
||||||
src/gui/qt/mainwindow/startsplash/startsplash.cpp \
|
src/gui/qt/mainwindow/startsplash/startsplash.cpp \
|
||||||
src/gui/qt/mainwindow/log/log.cpp \
|
src/gui/qt/mainwindow/log/log.cpp \
|
||||||
src/gui/qt/mainwindow/chat/chat.cpp \
|
src/gui/qt/mainwindow/chat/chat.cpp \
|
||||||
|
|||||||
@@ -0,0 +1,82 @@
|
|||||||
|
<ui version="4.0" >
|
||||||
|
<class>changeHumanPlayerNameDialog</class>
|
||||||
|
<widget class="QDialog" name="changeHumanPlayerNameDialog" >
|
||||||
|
<property name="geometry" >
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>374</width>
|
||||||
|
<height>134</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle" >
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" colspan="2" >
|
||||||
|
<widget class="QLabel" name="label_Message" />
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<widget class="QLineEdit" name="lineEdit" />
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QLabel" name="label_2" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Human Player:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2" >
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox" >
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons" >
|
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Save</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>changeHumanPlayerNameDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>248</x>
|
||||||
|
<y>254</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>157</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>changeHumanPlayerNameDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>316</x>
|
||||||
|
<y>260</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>286</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
|
</ui>
|
||||||
+469
-370
@@ -551,7 +551,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>197</width>
|
<width>230</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -577,35 +577,473 @@
|
|||||||
<widget class="QGroupBox" name="groupBox_LeftToolBox" >
|
<widget class="QGroupBox" name="groupBox_LeftToolBox" >
|
||||||
<property name="minimumSize" >
|
<property name="minimumSize" >
|
||||||
<size>
|
<size>
|
||||||
<width>197</width>
|
<width>230</width>
|
||||||
<height>180</height>
|
<height>195</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize" >
|
<property name="maximumSize" >
|
||||||
<size>
|
<size>
|
||||||
<width>197</width>
|
<width>197</width>
|
||||||
<height>180</height>
|
<height>195</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet" >
|
<property name="styleSheet" >
|
||||||
<string>QGroupBox { background-image: url(:/graphics/resources/graphics/toolboxFrameBG.png) }</string>
|
<string>QGroupBox { background-image: url(:/graphics/resources/graphics/toolboxFrameBG.png) }</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="label" >
|
<layout class="QGridLayout" >
|
||||||
<property name="geometry" >
|
<property name="margin" >
|
||||||
<rect>
|
<number>9</number>
|
||||||
<x>10</x>
|
|
||||||
<y>20</y>
|
|
||||||
<width>181</width>
|
|
||||||
<height>133</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap" >
|
<property name="spacing" >
|
||||||
<pixmap resource="resources.qrc" >:/graphics/resources/graphics/handRanking_release.png</pixmap>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment" >
|
<item row="0" column="0" >
|
||||||
<set>Qt::AlignCenter</set>
|
<widget class="MyLeftTabWidget" name="tabWidget_Left" >
|
||||||
</property>
|
<property name="palette" >
|
||||||
</widget>
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>128</red>
|
||||||
|
<green>128</green>
|
||||||
|
<blue>128</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="font" >
|
||||||
|
<font>
|
||||||
|
<pointsize>8</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="tabShape" >
|
||||||
|
<enum>QTabWidget::Rounded</enum>
|
||||||
|
</property>
|
||||||
|
<property name="currentIndex" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="tab_Hands" >
|
||||||
|
<attribute name="title" >
|
||||||
|
<string>Hands</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QLabel" name="label" >
|
||||||
|
<property name="pixmap" >
|
||||||
|
<pixmap resource="resources.qrc" >:/graphics/resources/graphics/handRanking_release.png</pixmap>
|
||||||
|
</property>
|
||||||
|
<property name="alignment" >
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tab_Chat" >
|
||||||
|
<attribute name="title" >
|
||||||
|
<string>Chat</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QTextBrowser" name="textBrowser_Chat" >
|
||||||
|
<property name="palette" >
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Light" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="BrightText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="HighlightedText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Light" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="BrightText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="HighlightedText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>128</red>
|
||||||
|
<green>128</green>
|
||||||
|
<blue>128</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>40</red>
|
||||||
|
<green>82</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Light" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>199</red>
|
||||||
|
<green>199</green>
|
||||||
|
<blue>199</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="BrightText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="HighlightedText" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>240</red>
|
||||||
|
<green>240</green>
|
||||||
|
<blue>240</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="focusPolicy" >
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalScrollBarPolicy" >
|
||||||
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QLineEdit" name="lineEdit_ChatInput" >
|
||||||
|
<property name="palette" >
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="Button" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window" >
|
||||||
|
<brush brushstyle="SolidPattern" >
|
||||||
|
<color alpha="255" >
|
||||||
|
<red>29</red>
|
||||||
|
<green>59</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -620,7 +1058,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>23</width>
|
<width>106</width>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -639,7 +1077,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="maximumSize" >
|
<property name="maximumSize" >
|
||||||
<size>
|
<size>
|
||||||
<width>404</width>
|
<width>310</width>
|
||||||
<height>195</height>
|
<height>195</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -1211,7 +1649,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>23</width>
|
<width>106</width>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -1235,7 +1673,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>200</width>
|
<width>230</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -1261,14 +1699,14 @@
|
|||||||
<widget class="QGroupBox" name="groupBox_RightToolBox" >
|
<widget class="QGroupBox" name="groupBox_RightToolBox" >
|
||||||
<property name="minimumSize" >
|
<property name="minimumSize" >
|
||||||
<size>
|
<size>
|
||||||
<width>197</width>
|
<width>230</width>
|
||||||
<height>172</height>
|
<height>195</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize" >
|
<property name="maximumSize" >
|
||||||
<size>
|
<size>
|
||||||
<width>197</width>
|
<width>197</width>
|
||||||
<height>180</height>
|
<height>195</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet" >
|
<property name="styleSheet" >
|
||||||
@@ -1800,7 +2238,7 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="MyRightTabWidget" name="tabWidget" >
|
<widget class="MyRightTabWidget" name="tabWidget_Right" >
|
||||||
<property name="palette" >
|
<property name="palette" >
|
||||||
<palette>
|
<palette>
|
||||||
<active>
|
<active>
|
||||||
@@ -2125,350 +2563,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_Chat" >
|
|
||||||
<attribute name="title" >
|
|
||||||
<string>Chat</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QGridLayout" >
|
|
||||||
<property name="margin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QTextBrowser" name="textBrowser_Chat" >
|
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>128</red>
|
|
||||||
<green>128</green>
|
|
||||||
<blue>128</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>199</red>
|
|
||||||
<green>199</green>
|
|
||||||
<blue>199</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy" >
|
|
||||||
<enum>Qt::NoFocus</enum>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalScrollBarPolicy" >
|
|
||||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" >
|
|
||||||
<widget class="QLineEdit" name="lineEdit_ChatInput" >
|
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -5859,6 +5953,11 @@
|
|||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>MyLeftTabWidget</class>
|
||||||
|
<extends>QTabWidget</extends>
|
||||||
|
<header>mylefttabwidget.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>MyRightTabWidget</class>
|
<class>MyRightTabWidget</class>
|
||||||
<extends>QTabWidget</extends>
|
<extends>QTabWidget</extends>
|
||||||
|
|||||||
@@ -51,13 +51,13 @@ void Chat::receiveMessage(QString playerName, QString message) {
|
|||||||
|
|
||||||
void Chat::checkInvisible() {
|
void Chat::checkInvisible() {
|
||||||
|
|
||||||
switch (myW->tabWidget->currentIndex()) {
|
switch (myW->tabWidget_Left->currentIndex()) {
|
||||||
|
|
||||||
case 1: { myW->tabWidget->stopBlinkChatTab();
|
case 1: { myW->tabWidget_Left->stopBlinkChatTab();
|
||||||
myW->tabWidget->showDefaultChatTab();
|
myW->tabWidget_Left->showDefaultChatTab();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: { myW->tabWidget->startBlinkChatTab(); }
|
default: { myW->tabWidget_Left->startBlinkChatTab(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -558,7 +558,7 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) );
|
connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) );
|
||||||
connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!!
|
connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!!
|
||||||
|
|
||||||
connect( tabWidget, SIGNAL( currentChanged(int) ), this, SLOT( tabSwitchAction() ) );
|
connect( tabWidget_Left, SIGNAL( currentChanged(int) ), this, SLOT( tabSwitchAction() ) );
|
||||||
connect( lineEdit_ChatInput, SIGNAL( returnPressed () ), this, SLOT( sendChatMessage() ) );
|
connect( lineEdit_ChatInput, SIGNAL( returnPressed () ), this, SLOT( sendChatMessage() ) );
|
||||||
connect( lineEdit_ChatInput, SIGNAL( textChanged (QString) ), this, SLOT( checkChatInputLength(QString) ) );
|
connect( lineEdit_ChatInput, SIGNAL( textChanged (QString) ), this, SLOT( checkChatInputLength(QString) ) );
|
||||||
|
|
||||||
@@ -2516,7 +2516,7 @@ void mainWindowImpl::checkChatInputLength(QString string) { myChat->checkInputLe
|
|||||||
|
|
||||||
void mainWindowImpl::tabSwitchAction() {
|
void mainWindowImpl::tabSwitchAction() {
|
||||||
|
|
||||||
switch(tabWidget->currentIndex()) {
|
switch(tabWidget_Left->currentIndex()) {
|
||||||
|
|
||||||
case 1: { lineEdit_ChatInput->setFocus();
|
case 1: { lineEdit_ChatInput->setFocus();
|
||||||
myChat->checkInvisible();
|
myChat->checkInvisible();
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
//
|
||||||
|
// C++ Implementation: MyLeftTabWidget
|
||||||
|
//
|
||||||
|
// Description:
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
|
||||||
|
//
|
||||||
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
|
//
|
||||||
|
//
|
||||||
|
#include "mylefttabwidget.h"
|
||||||
|
|
||||||
|
// using namespace std;
|
||||||
|
|
||||||
|
MyLeftTabWidget::MyLeftTabWidget(QGroupBox *parent)
|
||||||
|
: QTabWidget(parent), chatBlinkTimer(0), myTabBar(0)
|
||||||
|
{
|
||||||
|
// fadeOutTimer = new QTimer;
|
||||||
|
// connect(flipCardsTimer, SIGNAL(timeout()), this, SLOT(nextFlipCardsFrame()));
|
||||||
|
myTabBar = this->tabBar();
|
||||||
|
|
||||||
|
chatBlinkTimer = new QTimer;
|
||||||
|
connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MyLeftTabWidget::~MyLeftTabWidget()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void MyLeftTabWidget::startBlinkChatTab() { chatBlinkTimer->start(500); }
|
||||||
|
void MyLeftTabWidget::stopBlinkChatTab() { chatBlinkTimer->stop(); }
|
||||||
|
void MyLeftTabWidget::showDefaultChatTab() { myTabBar->setTabTextColor(1, QColor(240,240,240)); }
|
||||||
|
|
||||||
|
void MyLeftTabWidget::blinkChatTab() {
|
||||||
|
|
||||||
|
if(myTabBar->tabTextColor(1).red() == 240) myTabBar->setTabTextColor(1, QColor(113,162,0));
|
||||||
|
else myTabBar->setTabTextColor(1, QColor(240,240,240));
|
||||||
|
}
|
||||||
|
|
||||||
|
void MyLeftTabWidget::paintEvent(QPaintEvent * event) {
|
||||||
|
|
||||||
|
QTabWidget::paintEvent(event);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
//
|
||||||
|
// C++ Interface: MyLeftTabWidget
|
||||||
|
//
|
||||||
|
// Description:
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
|
||||||
|
//
|
||||||
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
|
//
|
||||||
|
//
|
||||||
|
#ifndef MYLEFTTABWIDGET_H
|
||||||
|
#define MYLEFTTABWIDGET_H
|
||||||
|
|
||||||
|
#include <QtGui>
|
||||||
|
#include <QtCore>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
class MyLeftTabWidget : public QTabWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
MyLeftTabWidget(QGroupBox*);
|
||||||
|
|
||||||
|
~MyLeftTabWidget();
|
||||||
|
|
||||||
|
|
||||||
|
void paintEvent(QPaintEvent * event);
|
||||||
|
void startBlinkChatTab();
|
||||||
|
void stopBlinkChatTab();
|
||||||
|
void showDefaultChatTab();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
void blinkChatTab();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
QTimer *chatBlinkTimer;
|
||||||
|
QTabBar *myTabBar;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -14,14 +14,14 @@
|
|||||||
// using namespace std;
|
// using namespace std;
|
||||||
|
|
||||||
MyRightTabWidget::MyRightTabWidget(QGroupBox *parent)
|
MyRightTabWidget::MyRightTabWidget(QGroupBox *parent)
|
||||||
: QTabWidget(parent), chatBlinkTimer(0), myTabBar(0)
|
: QTabWidget(parent), myTabBar(0)
|
||||||
{
|
{
|
||||||
// fadeOutTimer = new QTimer;
|
// fadeOutTimer = new QTimer;
|
||||||
// connect(flipCardsTimer, SIGNAL(timeout()), this, SLOT(nextFlipCardsFrame()));
|
// connect(flipCardsTimer, SIGNAL(timeout()), this, SLOT(nextFlipCardsFrame()));
|
||||||
myTabBar = this->tabBar();
|
myTabBar = this->tabBar();
|
||||||
|
|
||||||
chatBlinkTimer = new QTimer;
|
// chatBlinkTimer = new QTimer;
|
||||||
connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
// connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -29,15 +29,15 @@ MyRightTabWidget::~MyRightTabWidget()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyRightTabWidget::startBlinkChatTab() { chatBlinkTimer->start(500); }
|
// // void MyRightTabWidget::startBlinkChatTab() { chatBlinkTimer->start(500); }
|
||||||
void MyRightTabWidget::stopBlinkChatTab() { chatBlinkTimer->stop(); }
|
// void MyRightTabWidget::stopBlinkChatTab() { chatBlinkTimer->stop(); }
|
||||||
void MyRightTabWidget::showDefaultChatTab() { myTabBar->setTabTextColor(1, QColor(240,240,240)); }
|
// void MyRightTabWidget::showDefaultChatTab() { myTabBar->setTabTextColor(1, QColor(240,240,240)); }
|
||||||
|
|
||||||
void MyRightTabWidget::blinkChatTab() {
|
// void MyRightTabWidget::blinkChatTab() {
|
||||||
|
//
|
||||||
if(myTabBar->tabTextColor(1).red() == 240) myTabBar->setTabTextColor(1, QColor(113,162,0));
|
// if(myTabBar->tabTextColor(1).red() == 240) myTabBar->setTabTextColor(1, QColor(113,162,0));
|
||||||
else myTabBar->setTabTextColor(1, QColor(240,240,240));
|
// else myTabBar->setTabTextColor(1, QColor(240,240,240));
|
||||||
}
|
// }
|
||||||
|
|
||||||
void MyRightTabWidget::paintEvent(QPaintEvent * event) {
|
void MyRightTabWidget::paintEvent(QPaintEvent * event) {
|
||||||
|
|
||||||
|
|||||||
@@ -27,17 +27,17 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
void paintEvent(QPaintEvent * event);
|
void paintEvent(QPaintEvent * event);
|
||||||
void startBlinkChatTab();
|
// void startBlinkChatTab();
|
||||||
void stopBlinkChatTab();
|
// void stopBlinkChatTab();
|
||||||
void showDefaultChatTab();
|
// void showDefaultChatTab();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void blinkChatTab();
|
// void blinkChatTab();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
QTimer *chatBlinkTimer;
|
// QTimer *chatBlinkTimer;
|
||||||
QTabBar *myTabBar;
|
QTabBar *myTabBar;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user