##// END OF EJS Templates
***
ralonso -
r4:5
parent child
Show More
@@ -1,151 +1,157
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE Project SYSTEM "Project-4.6.dtd">
2 <!DOCTYPE Project SYSTEM "Project-4.6.dtd">
3 <!-- eric4 project file for project jro_backup_manager -->
3 <!-- eric4 project file for project jro_backup_manager -->
4 <!-- Saved: 2010-04-13, 14:18:05 -->
4 <!-- Saved: 2010-04-13, 15:35:18 -->
5 <!-- Copyright (C) 2010 , -->
5 <!-- Copyright (C) 2010 , -->
6 <Project version="4.6">
6 <Project version="4.6">
7 <Language>en</Language>
7 <Language>en</Language>
8 <ProgLanguage mixed="0">Python</ProgLanguage>
8 <ProgLanguage mixed="0">Python</ProgLanguage>
9 <ProjectType>Qt4</ProjectType>
9 <ProjectType>Qt4</ProjectType>
10 <Description></Description>
10 <Description></Description>
11 <Version>0.1</Version>
11 <Version>0.1</Version>
12 <Author></Author>
12 <Author></Author>
13 <Email></Email>
13 <Email></Email>
14 <Sources>
14 <Sources>
15 <Source>__init__.py</Source>
15 <Source>__init__.py</Source>
16 <Source>ui/Ui_MainWindow.py</Source>
17 <Source>ui/MainWindow.py</Source>
18 <Source>main.py</Source>
19 <Source>ui/__init__.py</Source>
16 </Sources>
20 </Sources>
17 <Forms>
21 <Forms>
22 <Form>ui/MainWindow.ui</Form>
18 </Forms>
23 </Forms>
19 <Translations>
24 <Translations>
20 </Translations>
25 </Translations>
21 <Resources>
26 <Resources>
22 </Resources>
27 </Resources>
23 <Interfaces>
28 <Interfaces>
24 </Interfaces>
29 </Interfaces>
25 <Others>
30 <Others>
26 </Others>
31 </Others>
32 <MainScript>main.py</MainScript>
27 <Vcs>
33 <Vcs>
28 <VcsType>Subversion</VcsType>
34 <VcsType>Subversion</VcsType>
29 <VcsOptions>
35 <VcsOptions>
30 <dict>
36 <dict>
31 <key>
37 <key>
32 <string>add</string>
38 <string>add</string>
33 </key>
39 </key>
34 <value>
40 <value>
35 <list>
41 <list>
36 <string></string>
42 <string></string>
37 </list>
43 </list>
38 </value>
44 </value>
39 <key>
45 <key>
40 <string>checkout</string>
46 <string>checkout</string>
41 </key>
47 </key>
42 <value>
48 <value>
43 <list>
49 <list>
44 <string></string>
50 <string></string>
45 </list>
51 </list>
46 </value>
52 </value>
47 <key>
53 <key>
48 <string>commit</string>
54 <string>commit</string>
49 </key>
55 </key>
50 <value>
56 <value>
51 <list>
57 <list>
52 <string></string>
58 <string></string>
53 </list>
59 </list>
54 </value>
60 </value>
55 <key>
61 <key>
56 <string>diff</string>
62 <string>diff</string>
57 </key>
63 </key>
58 <value>
64 <value>
59 <list>
65 <list>
60 <string></string>
66 <string></string>
61 </list>
67 </list>
62 </value>
68 </value>
63 <key>
69 <key>
64 <string>export</string>
70 <string>export</string>
65 </key>
71 </key>
66 <value>
72 <value>
67 <list>
73 <list>
68 <string></string>
74 <string></string>
69 </list>
75 </list>
70 </value>
76 </value>
71 <key>
77 <key>
72 <string>global</string>
78 <string>global</string>
73 </key>
79 </key>
74 <value>
80 <value>
75 <list>
81 <list>
76 <string></string>
82 <string></string>
77 </list>
83 </list>
78 </value>
84 </value>
79 <key>
85 <key>
80 <string>history</string>
86 <string>history</string>
81 </key>
87 </key>
82 <value>
88 <value>
83 <list>
89 <list>
84 <string></string>
90 <string></string>
85 </list>
91 </list>
86 </value>
92 </value>
87 <key>
93 <key>
88 <string>log</string>
94 <string>log</string>
89 </key>
95 </key>
90 <value>
96 <value>
91 <list>
97 <list>
92 <string></string>
98 <string></string>
93 </list>
99 </list>
94 </value>
100 </value>
95 <key>
101 <key>
96 <string>remove</string>
102 <string>remove</string>
97 </key>
103 </key>
98 <value>
104 <value>
99 <list>
105 <list>
100 <string></string>
106 <string></string>
101 </list>
107 </list>
102 </value>
108 </value>
103 <key>
109 <key>
104 <string>status</string>
110 <string>status</string>
105 </key>
111 </key>
106 <value>
112 <value>
107 <list>
113 <list>
108 <string></string>
114 <string></string>
109 </list>
115 </list>
110 </value>
116 </value>
111 <key>
117 <key>
112 <string>tag</string>
118 <string>tag</string>
113 </key>
119 </key>
114 <value>
120 <value>
115 <list>
121 <list>
116 <string></string>
122 <string></string>
117 </list>
123 </list>
118 </value>
124 </value>
119 <key>
125 <key>
120 <string>update</string>
126 <string>update</string>
121 </key>
127 </key>
122 <value>
128 <value>
123 <list>
129 <list>
124 <string></string>
130 <string></string>
125 </list>
131 </list>
126 </value>
132 </value>
127 </dict>
133 </dict>
128 </VcsOptions>
134 </VcsOptions>
129 <VcsOtherData>
135 <VcsOtherData>
130 <dict>
136 <dict>
131 <key>
137 <key>
132 <string>standardLayout</string>
138 <string>standardLayout</string>
133 </key>
139 </key>
134 <value>
140 <value>
135 <bool>True</bool>
141 <bool>True</bool>
136 </value>
142 </value>
137 </dict>
143 </dict>
138 </VcsOtherData>
144 </VcsOtherData>
139 </Vcs>
145 </Vcs>
140 <FiletypeAssociations>
146 <FiletypeAssociations>
141 <FiletypeAssociation pattern="*.ui" type="FORMS" />
147 <FiletypeAssociation pattern="*.ui" type="FORMS" />
142 <FiletypeAssociation pattern="*.idl" type="INTERFACES" />
148 <FiletypeAssociation pattern="*.idl" type="INTERFACES" />
143 <FiletypeAssociation pattern="*.qm" type="TRANSLATIONS" />
149 <FiletypeAssociation pattern="*.qm" type="TRANSLATIONS" />
144 <FiletypeAssociation pattern="*.ptl" type="SOURCES" />
150 <FiletypeAssociation pattern="*.ptl" type="SOURCES" />
145 <FiletypeAssociation pattern="*.pyw" type="SOURCES" />
151 <FiletypeAssociation pattern="*.pyw" type="SOURCES" />
146 <FiletypeAssociation pattern="*.ui.h" type="FORMS" />
152 <FiletypeAssociation pattern="*.ui.h" type="FORMS" />
147 <FiletypeAssociation pattern="*.ts" type="TRANSLATIONS" />
153 <FiletypeAssociation pattern="*.ts" type="TRANSLATIONS" />
148 <FiletypeAssociation pattern="*.py" type="SOURCES" />
154 <FiletypeAssociation pattern="*.py" type="SOURCES" />
149 <FiletypeAssociation pattern="*.qrc" type="RESOURCES" />
155 <FiletypeAssociation pattern="*.qrc" type="RESOURCES" />
150 </FiletypeAssociations>
156 </FiletypeAssociations>
151 </Project> No newline at end of file
157 </Project>
@@ -1,15 +1,14
1 #!/usr/bin/python
1 #!/usr/bin/python
2
2
3 from PyQt4.QtGui import QApplication
3 from PyQt4.QtGui import QApplication
4 #from ui import import MainWindow
5 from ui.MainWindow import MainWindow
4 from ui.MainWindow import MainWindow
6
5
7 def main():
6 def main():
8 import sys
7 import sys
9 app = QApplication(sys.argv)
8 app = QApplication(sys.argv)
10 wnd = MainWindow()
9 wnd = MainWindow()
11 wnd.show()
10 wnd.show()
12 sys.exit(app.exec_())
11 sys.exit(app.exec_())
13
12
14 if __name__ == '__main__':
13 if __name__ == '__main__':
15 main()
14 main()
@@ -1,51 +1,51
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2
2
3 """
3 """
4 Module implementing MainWindow.
4 Module implementing MainWindow.
5 """
5 """
6
6
7 from PyQt4.QtGui import QMainWindow
7 from PyQt4.QtGui import QMainWindow
8 from PyQt4.QtCore import pyqtSignature
8 from PyQt4.QtCore import pyqtSignature
9 from Ui_MainWindow import Ui_MainWindow
9 from Ui_MainWindow import Ui_MainWindow
10 from PyQt4 import QtGui
10 from PyQt4 import QtGui
11
11
12 class MainWindow(QMainWindow, Ui_MainWindow):
12 class MainWindow(QMainWindow, Ui_MainWindow):
13 """
13 """
14 Class documentation goes here.
14 Class documentation goes here.
15 """
15 """
16 def __init__(self, parent = None):
16 def __init__(self, parent = None):
17 """
17 """
18 Constructor
18 Constructor
19 """
19 """
20 QMainWindow.__init__(self, parent)
20 QMainWindow.__init__(self, parent)
21 self.setupUi(self)
21 self.setupUi(self)
22
22
23 @pyqtSignature("")
23 @pyqtSignature("")
24 def on_btnDpath_clicked(self):
24 def on_btnDpath_clicked(self):
25 """
25 """
26 Slot documentation goes here.
26 Slot documentation goes here.
27 """
27 """
28 filename = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
28 filename = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
29 self.txtDpath.setText(filename)
29 self.txtDpath.setText(filename)
30
30
31 # TODO: not implemented yet
31 # TODO: not implemented yet
32 # raise NotImplementedError
32 # raise NotImplementedError
33
33
34 @pyqtSignature("")
34 @pyqtSignature("")
35 def on_btnRpath_clicked(self):
35 def on_btnRpath_clicked(self):
36 """
36 """
37 Slot documentation goes here.
37 Slot documentation goes here.
38 """
38 """
39 filename = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
39 filename = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
40 self.txtRpath.setText(filename)
40 self.txtRpath.setText(filename)
41
41
42 # TODO: not implemented yet
42 # TODO: not implemented yet
43 # raise NotImplementedError
43 # raise NotImplementedError
44
44
45 @pyqtSignature("")
45 @pyqtSignature("QString")
46 def on_btnStopburn_clicked(self):
46 def on_txtDpath_textChanged(self, p0):
47 """
47 """
48 Slot documentation goes here.
48 Slot documentation goes here.
49 """
49 """
50 # TODO: not implemented yet
50 # TODO: not implemented yet
51 raise NotImplementedError
51 # raise NotImplementedError
General Comments 0
You need to be logged in to leave comments. Login now