add avatars

about changes
This commit is contained in:
doitux
2007-06-05 00:48:05 +00:00
parent 28556c2acb
commit 5cef146eab
25 changed files with 116 additions and 73 deletions
+35 -23
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>530</width>
<height>440</height>
<width>615</width>
<height>324</height>
</rect>
</property>
<property name="windowTitle" >
@@ -22,6 +22,9 @@
</property>
<item row="0" column="0" >
<widget class="QTabWidget" name="tabWidget" >
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="currentIndex" >
<number>0</number>
</property>
@@ -44,7 +47,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>211</height>
<height>100</height>
</size>
</property>
</spacer>
@@ -99,22 +102,9 @@ p, li { white-space: pre-wrap; }
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>81</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<widget class="QTextBrowser" name="textBrowser_2" >
<property name="html" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Nimbus Sans L'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
@@ -136,11 +126,30 @@ p, li { white-space: pre-wrap; }
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Erhard List (&lt;a href="mailto:dunkanx@pokerth.net">&lt;span style=" text-decoration: underline; color:#0000ff;">dunkanx@pokerth.net&lt;/span>&lt;/a>)&lt;/p>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - MacOS package&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
<property name="openExternalLinks" >
<bool>true</bool>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_4" >
<attribute name="title" >
<string>Thanks to</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QTextBrowser" name="textBrowser_3" >
<property name="html" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Nimbus Sans L'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600;">Following flickr.com users for avatar image sources:&lt;/span> &lt;/p>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Chales Johnson, Eli Hodapp, Hans Dekker, Indigo Goat, Jerry Daykin, Presty, The Marmot, William Holtkamp, _cr_, dps, ellievanhoutte, jarrodtrainique, joeltelling, loufi, riccardodivirgilio, rileyroxx, said&amp;amp;done, scottfeldstein&lt;/p>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> &lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>
</item>
@@ -159,6 +168,9 @@ p, li { white-space: pre-wrap; }
</property>
<item row="0" column="0" >
<widget class="QTextBrowser" name="textBrowser" >
<property name="autoFillBackground" >
<bool>true</bool>
</property>
<property name="html" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
@@ -25,4 +25,11 @@ aboutPokerthImpl::aboutPokerthImpl(QWidget *parent)
setupUi(this);
QPalette myPalette = textBrowser->palette();
QColor myColor = myPalette.color(QPalette::Window);
myPalette.setColor(QPalette::Base, myColor);
textBrowser->setPalette(myPalette);
textBrowser_2->setPalette(myPalette);
textBrowser_3->setPalette(myPalette);
}
+5 -5
View File
@@ -6172,11 +6172,6 @@
</action>
</widget>
<customwidgets>
<customwidget>
<class>MyRightTabWidget</class>
<extends>QTabWidget</extends>
<header>myrighttabwidget.h</header>
</customwidget>
<customwidget>
<class>MyLeftTabWidget</class>
<extends>QTabWidget</extends>
@@ -6187,6 +6182,11 @@
<extends>QLabel</extends>
<header>mysetlabel.h</header>
</customwidget>
<customwidget>
<class>MyRightTabWidget</class>
<extends>QTabWidget</extends>
<header>myrighttabwidget.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>spinBox_set</tabstop>
+39 -17
View File
@@ -1,9 +1,4 @@
<RCC>
<qresource prefix="/translations" >
<file>resources/translations/pokerth_de.qm</file>
<file>resources/translations/pokerth_nl.qm</file>
<file>resources/translations/pokerth_fr.qm</file>
</qresource>
<qresource prefix="/actions" >
<file>resources/graphics/actions/action_allin.png</file>
<file>resources/graphics/actions/action_bet.png</file>
@@ -12,7 +7,29 @@
<file>resources/graphics/actions/action_fold.png</file>
<file>resources/graphics/actions/action_raise.png</file>
<file>resources/graphics/actions/action_set.png</file>
<file>resources/graphics/actions/action_winner.png</file>
<file>resources/graphics/actions/action_winner.png</file>
</qresource>
<qresource prefix="/avatar" >
<file>resources/avatar/Chales_Johnson.png</file>
<file>resources/avatar/Eli_Hodapp.png</file>
<file>resources/avatar/Eli_Hodapp1.png</file>
<file>resources/avatar/Hans_Dekker.png</file>
<file>resources/avatar/Indigo_Goat.png</file>
<file>resources/avatar/Jerry_Daykin.png</file>
<file>resources/avatar/Presty.png</file>
<file>resources/avatar/The_Marmot.png</file>
<file>resources/avatar/William_Holtkamp.png</file>
<file>resources/avatar/cr.png</file>
<file>resources/avatar/dps.png</file>
<file>resources/avatar/ellievanhoutte.png</file>
<file>resources/avatar/jarrodtrainique.png</file>
<file>resources/avatar/joeltelling.png</file>
<file>resources/avatar/loufi.png</file>
<file>resources/avatar/riccardodivirgilio.png</file>
<file>resources/avatar/riccardodivirgilio1.png</file>
<file>resources/avatar/rileyroxx.png</file>
<file>resources/avatar/saidanddone.png</file>
<file>resources/avatar/scottfeldstein.png</file>
</qresource>
<qresource prefix="/cards" >
<file>resources/graphics/cards/0.png</file>
@@ -70,13 +87,8 @@
<file>resources/graphics/cards/flipside.png</file>
</qresource>
<qresource prefix="/data" >
<file>resources/data/flopValues</file>
<file>resources/data/preflopValues</file>
<file>resources/data/flopValues</file>
</qresource>
<qresource prefix="/sounds" >
<file>resources/sounds/dealtwocards.wav</file>
<file>resources/sounds/call.wav</file>
<file>resources/sounds/raise.wav</file>
</qresource>
<qresource prefix="/fonts" >
<file>resources/fonts/VeraBd.ttf</file>
@@ -86,13 +98,13 @@
</qresource>
<qresource prefix="/graphics" >
<file>resources/graphics/1px.png</file>
<file>resources/graphics/bigblindPuck.png</file>
<file>resources/graphics/fileopen16.png</file>
<file>resources/graphics/handRanking_release.png</file>
<file>resources/graphics/toolboxFrameBG.png</file>
<file>resources/graphics/logoChip3D.png</file>
<file>resources/graphics/windowicon.png</file>
<file>resources/graphics/smallblindPuck.png</file>
<file>resources/graphics/bigblindPuck.png</file>
<file>resources/graphics/logoChip3D.png</file>
<file>resources/graphics/smallblindPuck.png</file>
<file>resources/graphics/toolboxFrameBG.png</file>
<file>resources/graphics/windowicon.png</file>
</qresource>
<qresource prefix="/guiv2" >
<file>resources/guiv2/cardholder_03.png</file>
@@ -110,4 +122,14 @@
<file>resources/guiv2/playeraction_07.png</file>
<file>resources/guiv2/table.png</file>
</qresource>
<qresource prefix="/sounds" >
<file>resources/sounds/call.wav</file>
<file>resources/sounds/dealtwocards.wav</file>
<file>resources/sounds/raise.wav</file>
</qresource>
<qresource prefix="/translations" >
<file>resources/translations/pokerth_de.qm</file>
<file>resources/translations/pokerth_fr.qm</file>
<file>resources/translations/pokerth_nl.qm</file>
</qresource>
</RCC>
Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

@@ -50,36 +50,38 @@ selectAvatarDialogImpl::selectAvatarDialogImpl(QWidget *parent, ConfigFile *c)
// myItem->setText("PokerTH");
// listWidget->addItem(myItem);
// };
QStringList avatarList;
avatarList << ":avatar/resources/avatar/Chales_Johnson.png";
avatarList << ":avatar/resources/avatar/Eli_Hodapp.png";
avatarList << ":avatar/resources/avatar/Eli_Hodapp1.png";
avatarList << ":avatar/resources/avatar/Hans_Dekker.png";
avatarList << ":avatar/resources/avatar/Indigo_Goat.png";
avatarList << ":avatar/resources/avatar/Jerry_Daykin.png";
avatarList << ":avatar/resources/avatar/Presty.png";
avatarList << ":avatar/resources/avatar/The_Marmot.png";
avatarList << ":avatar/resources/avatar/William_Holtkamp.png";
avatarList << ":avatar/resources/avatar/cr.png";
avatarList << ":avatar/resources/avatar/dps.png";
avatarList << ":avatar/resources/avatar/ellievanhoutte.png";
avatarList << ":avatar/resources/avatar/jarrodtrainique.png";
avatarList << ":avatar/resources/avatar/joeltelling.png";
avatarList << ":avatar/resources/avatar/loufi.png";
avatarList << ":avatar/resources/avatar/riccardodivirgilio.png";
avatarList << ":avatar/resources/avatar/riccardodivirgilio1.png";
avatarList << ":avatar/resources/avatar/rileyroxx.png";
avatarList << ":avatar/resources/avatar/saidanddone.png";
avatarList << ":avatar/resources/avatar/scottfeldstein.png";
int i;
for (i=0; i<20; i++) {
MyAvatarListItem *myItem = new MyAvatarListItem(listWidget);
myItem->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/genereticAvatar.png").scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem->setMyLink(":/guiv2/resources/guiv2/genereticAvatar.png");
myItem->setText("Avatar 1");
myItem->setIcon(QIcon(QPixmap(avatarList.at(i)).scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem->setMyLink(avatarList.at(i));
myItem->setText(QString("No. ")+QString::number(i+1,10));
listWidget->addItem(myItem);
MyAvatarListItem *myItem1 = new MyAvatarListItem(listWidget);
myItem1->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/dealerPuck.png").scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem1->setMyLink(":/guiv2/resources/guiv2/dealerPuck.png");
myItem1->setText("Avatar 2");
listWidget->addItem(myItem1);
MyAvatarListItem *myItem2 = new MyAvatarListItem(listWidget);
myItem2->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/playeraction_03.png").scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem2->setMyLink(":/guiv2/resources/guiv2/playeraction_03.png");
myItem2->setText("Avatar 3");
listWidget->addItem(myItem2);
MyAvatarListItem *myItem3 = new MyAvatarListItem(listWidget);
myItem3->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/playeraction_05.png").scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem3->setMyLink(":/guiv2/resources/guiv2/playeraction_05.png");
myItem3->setText("Avatar 4");
listWidget->addItem(myItem3);
MyAvatarListItem *myItem4 = new MyAvatarListItem(listWidget);
myItem4->setIcon(QIcon(QPixmap(":/guiv2/resources/guiv2/playeraction_07.png").scaled(50,50,Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));
myItem4->setMyLink(":/guiv2/resources/guiv2/playeraction_07.png");
myItem4->setText("Avatar 5");
listWidget->addItem(myItem4);
}
connect(groupBox, SIGNAL(toggled(bool)), this, SLOT(toggleGroupBox1(bool)));
connect(groupBox_2, SIGNAL(toggled(bool)), this, SLOT(toggleGroupBox2(bool)));