First sheleton of the mainwin

parent bdfa3a0d
<html>
<head>
<title>SkyliveX 0.1.0</title>
<script type="text/javascript" src="SkyliveX.js"></script>
<style>
#page {
background-color: #FFFFFF;
color: #000000;
text-align: center;
margin: 0 auto;
overflow:hidden;
}
#top {
width:100%;
height:50px;
margin: 0 auto;
border: 1px solid #00FF00;
}
#left {
width: 330px;
float:left;
}
#livearea {
}
#right {
width:auto;
padding-left: 330px;
}
#chatwrapperarea {
border: 1px solid #00FF00;
top:50px;
}
#chatarea {
min-height: 100px;
overflow-y: auto;
height: 450px;
border: 1px solid #FF0000;
}
#chatinput {
border: 1px solid #0000FF;
height: 70px;
}
</style>
</head>
<body>
<div id="page">
<div id="top">
</div>
<div id="left">
<div id="livearea">
<img src="http://live1.skylive.name/tele1/live640.jpg"></img>
</div>
</div>
<div id="right">
<div id="chatwrapperarea">
<div id="chatarea">
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>CHAT</p>
<p>PIPPO</p>
</div>
</div>
<div id="chatinput">
<p>INPUT</p>
</div>
</div>
</div>
</body>
</html>
...@@ -220,7 +220,10 @@ void MainWin::handle_loginres(SKMessage &msg) ...@@ -220,7 +220,10 @@ void MainWin::handle_loginres(SKMessage &msg)
{ {
if(msg.handle=="loginok") if(msg.handle=="loginok")
{ {
std::cout << "LOGIN OK" << std::endl; //std::cout << "LOGIN OK" << std::endl;
QString html("gui/maingui.html");
setHtmlFile(html, true, false);
resize(800, 600);
} }
else else
{ {
......
...@@ -117,10 +117,8 @@ class MainWin : public QWebView ...@@ -117,10 +117,8 @@ class MainWin : public QWebView
void putMessage(SKMessage &msg); void putMessage(SKMessage &msg);
// XXX Future usage // XXX Future usage
/* //protected:
protected: // void dragMoveEvent(QDragMoveEvent *ev);
void dragMoveEvent(QDragMoveEvent *ev);
*/
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment