globalchat 1.0.0 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/bin/.DS_Store +0 -0
- data/bin/GlobalChat.ui +74 -0
- data/bin/ServerList.ui +159 -0
- data/bin/globalchat +2 -3
- data/lib/gc2-qtruby/version.rb +1 -1
- metadata +5 -2
data/.DS_Store
CHANGED
Binary file
|
data/bin/.DS_Store
ADDED
Binary file
|
data/bin/GlobalChat.ui
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>MainWindow</class>
|
4
|
+
<widget class="QMainWindow" name="MainWindow">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>603</width>
|
10
|
+
<height>434</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="sizePolicy">
|
14
|
+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
15
|
+
<horstretch>0</horstretch>
|
16
|
+
<verstretch>0</verstretch>
|
17
|
+
</sizepolicy>
|
18
|
+
</property>
|
19
|
+
<property name="minimumSize">
|
20
|
+
<size>
|
21
|
+
<width>603</width>
|
22
|
+
<height>434</height>
|
23
|
+
</size>
|
24
|
+
</property>
|
25
|
+
<property name="windowTitle">
|
26
|
+
<string>MainWindow</string>
|
27
|
+
</property>
|
28
|
+
<widget class="QWidget" name="centralwidget">
|
29
|
+
<layout class="QGridLayout" name="gridLayout">
|
30
|
+
<item row="0" column="0">
|
31
|
+
<widget class="QListWidget" name="listWidget">
|
32
|
+
<property name="minimumSize">
|
33
|
+
<size>
|
34
|
+
<width>121</width>
|
35
|
+
<height>381</height>
|
36
|
+
</size>
|
37
|
+
</property>
|
38
|
+
</widget>
|
39
|
+
</item>
|
40
|
+
<item row="0" column="1">
|
41
|
+
<widget class="QTextEdit" name="textEdit">
|
42
|
+
<property name="enabled">
|
43
|
+
<bool>true</bool>
|
44
|
+
</property>
|
45
|
+
<property name="sizePolicy">
|
46
|
+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
47
|
+
<horstretch>0</horstretch>
|
48
|
+
<verstretch>0</verstretch>
|
49
|
+
</sizepolicy>
|
50
|
+
</property>
|
51
|
+
<property name="minimumSize">
|
52
|
+
<size>
|
53
|
+
<width>441</width>
|
54
|
+
<height>381</height>
|
55
|
+
</size>
|
56
|
+
</property>
|
57
|
+
</widget>
|
58
|
+
</item>
|
59
|
+
<item row="1" column="0" colspan="2">
|
60
|
+
<widget class="QLineEdit" name="lineEdit">
|
61
|
+
<property name="minimumSize">
|
62
|
+
<size>
|
63
|
+
<width>571</width>
|
64
|
+
<height>21</height>
|
65
|
+
</size>
|
66
|
+
</property>
|
67
|
+
</widget>
|
68
|
+
</item>
|
69
|
+
</layout>
|
70
|
+
</widget>
|
71
|
+
</widget>
|
72
|
+
<resources/>
|
73
|
+
<connections/>
|
74
|
+
</ui>
|
data/bin/ServerList.ui
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>Dialog</class>
|
4
|
+
<widget class="QDialog" name="Dialog">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>402</width>
|
10
|
+
<height>339</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="minimumSize">
|
14
|
+
<size>
|
15
|
+
<width>400</width>
|
16
|
+
<height>339</height>
|
17
|
+
</size>
|
18
|
+
</property>
|
19
|
+
<property name="maximumSize">
|
20
|
+
<size>
|
21
|
+
<width>402</width>
|
22
|
+
<height>339</height>
|
23
|
+
</size>
|
24
|
+
</property>
|
25
|
+
<property name="windowTitle">
|
26
|
+
<string>Dialog</string>
|
27
|
+
</property>
|
28
|
+
<widget class="QListWidget" name="listWidget">
|
29
|
+
<property name="geometry">
|
30
|
+
<rect>
|
31
|
+
<x>0</x>
|
32
|
+
<y>0</y>
|
33
|
+
<width>401</width>
|
34
|
+
<height>141</height>
|
35
|
+
</rect>
|
36
|
+
</property>
|
37
|
+
</widget>
|
38
|
+
<widget class="QLabel" name="label">
|
39
|
+
<property name="geometry">
|
40
|
+
<rect>
|
41
|
+
<x>20</x>
|
42
|
+
<y>170</y>
|
43
|
+
<width>46</width>
|
44
|
+
<height>13</height>
|
45
|
+
</rect>
|
46
|
+
</property>
|
47
|
+
<property name="text">
|
48
|
+
<string>Handle</string>
|
49
|
+
</property>
|
50
|
+
</widget>
|
51
|
+
<widget class="QLabel" name="label_2">
|
52
|
+
<property name="geometry">
|
53
|
+
<rect>
|
54
|
+
<x>20</x>
|
55
|
+
<y>210</y>
|
56
|
+
<width>46</width>
|
57
|
+
<height>13</height>
|
58
|
+
</rect>
|
59
|
+
</property>
|
60
|
+
<property name="text">
|
61
|
+
<string>Host</string>
|
62
|
+
</property>
|
63
|
+
</widget>
|
64
|
+
<widget class="QLabel" name="label_3">
|
65
|
+
<property name="geometry">
|
66
|
+
<rect>
|
67
|
+
<x>210</x>
|
68
|
+
<y>210</y>
|
69
|
+
<width>46</width>
|
70
|
+
<height>13</height>
|
71
|
+
</rect>
|
72
|
+
</property>
|
73
|
+
<property name="text">
|
74
|
+
<string>Port</string>
|
75
|
+
</property>
|
76
|
+
</widget>
|
77
|
+
<widget class="QLabel" name="label_4">
|
78
|
+
<property name="geometry">
|
79
|
+
<rect>
|
80
|
+
<x>20</x>
|
81
|
+
<y>250</y>
|
82
|
+
<width>46</width>
|
83
|
+
<height>13</height>
|
84
|
+
</rect>
|
85
|
+
</property>
|
86
|
+
<property name="text">
|
87
|
+
<string>Password</string>
|
88
|
+
</property>
|
89
|
+
</widget>
|
90
|
+
<widget class="QLineEdit" name="lineEdit">
|
91
|
+
<property name="geometry">
|
92
|
+
<rect>
|
93
|
+
<x>80</x>
|
94
|
+
<y>170</y>
|
95
|
+
<width>113</width>
|
96
|
+
<height>20</height>
|
97
|
+
</rect>
|
98
|
+
</property>
|
99
|
+
</widget>
|
100
|
+
<widget class="QLineEdit" name="lineEdit_2">
|
101
|
+
<property name="geometry">
|
102
|
+
<rect>
|
103
|
+
<x>80</x>
|
104
|
+
<y>210</y>
|
105
|
+
<width>113</width>
|
106
|
+
<height>20</height>
|
107
|
+
</rect>
|
108
|
+
</property>
|
109
|
+
</widget>
|
110
|
+
<widget class="QLineEdit" name="lineEdit_3">
|
111
|
+
<property name="geometry">
|
112
|
+
<rect>
|
113
|
+
<x>240</x>
|
114
|
+
<y>210</y>
|
115
|
+
<width>113</width>
|
116
|
+
<height>20</height>
|
117
|
+
</rect>
|
118
|
+
</property>
|
119
|
+
</widget>
|
120
|
+
<widget class="QLineEdit" name="lineEdit_4">
|
121
|
+
<property name="geometry">
|
122
|
+
<rect>
|
123
|
+
<x>80</x>
|
124
|
+
<y>250</y>
|
125
|
+
<width>113</width>
|
126
|
+
<height>20</height>
|
127
|
+
</rect>
|
128
|
+
</property>
|
129
|
+
</widget>
|
130
|
+
<widget class="QPushButton" name="pushButton">
|
131
|
+
<property name="geometry">
|
132
|
+
<rect>
|
133
|
+
<x>20</x>
|
134
|
+
<y>300</y>
|
135
|
+
<width>75</width>
|
136
|
+
<height>23</height>
|
137
|
+
</rect>
|
138
|
+
</property>
|
139
|
+
<property name="text">
|
140
|
+
<string>Refresh</string>
|
141
|
+
</property>
|
142
|
+
</widget>
|
143
|
+
<widget class="QPushButton" name="pushButton_2">
|
144
|
+
<property name="geometry">
|
145
|
+
<rect>
|
146
|
+
<x>120</x>
|
147
|
+
<y>300</y>
|
148
|
+
<width>75</width>
|
149
|
+
<height>23</height>
|
150
|
+
</rect>
|
151
|
+
</property>
|
152
|
+
<property name="text">
|
153
|
+
<string>Connect</string>
|
154
|
+
</property>
|
155
|
+
</widget>
|
156
|
+
</widget>
|
157
|
+
<resources/>
|
158
|
+
<connections/>
|
159
|
+
</ui>
|
data/bin/globalchat
CHANGED
@@ -10,7 +10,6 @@ require 'socket'
|
|
10
10
|
require 'thread'
|
11
11
|
require 'pstore'
|
12
12
|
|
13
|
-
|
14
13
|
class GlobalChatController < Qt::Object
|
15
14
|
|
16
15
|
attr_accessor :chat_token,
|
@@ -247,7 +246,7 @@ class ServerList < Qt::Widget
|
|
247
246
|
def initialize(parent=nil)
|
248
247
|
super parent
|
249
248
|
loader = Qt::UiLoader.new
|
250
|
-
file = Qt::File.new
|
249
|
+
file = Qt::File.new "#{File.expand_path(File.dirname(__FILE__))}/ServerList.ui" do
|
251
250
|
open Qt::File::ReadOnly
|
252
251
|
end
|
253
252
|
window = loader.load file
|
@@ -363,7 +362,7 @@ class GlobalChat < Qt::Widget
|
|
363
362
|
timer.start(1)
|
364
363
|
|
365
364
|
loader = Qt::UiLoader.new
|
366
|
-
file = Qt::File.new
|
365
|
+
file = Qt::File.new "#{File.expand_path(File.dirname(__FILE__))}/GlobalChat.ui" do
|
367
366
|
open Qt::File::ReadOnly
|
368
367
|
end
|
369
368
|
window = loader.load file
|
data/lib/gc2-qtruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -45,6 +45,10 @@ files:
|
|
45
45
|
- README.md
|
46
46
|
- Rakefile
|
47
47
|
- ServerList.ui
|
48
|
+
- bin/.DS_Store
|
49
|
+
- bin/GlobalChat.ui
|
50
|
+
- bin/ServerList.ui
|
51
|
+
- bin/globalchat
|
48
52
|
- gc2-qtruby.gemspec
|
49
53
|
- gchat2pro.pstore
|
50
54
|
- global_chat_2_pro.rb
|
@@ -52,7 +56,6 @@ files:
|
|
52
56
|
- lib/gc2-qtruby.rb
|
53
57
|
- lib/gc2-qtruby/version.rb
|
54
58
|
- server.rb
|
55
|
-
- bin/globalchat
|
56
59
|
homepage: http://globalchat2.net
|
57
60
|
licenses: []
|
58
61
|
post_install_message:
|