Commits

Ivan Andrianov committed e31ad67 Merge

Comments (0)

Files changed (1)

fftranscoder/gui.py

 # THE SOFTWARE.                                                                 #
 #################################################################################
 
-from PyQt4.QtGui import QMainWindow
+from PyQt4.QtCore import Qt
+from PyQt4.QtGui import QMainWindow, QTreeView
 
 class MainWindow(QMainWindow):
-    pass
+    def __init__(self):
+        QMainWindow.__init__(self)
+
+        self.setWindowTitle('FFTranscoder')
+
+        self.__toolBar = self.addToolBar('Main')
+        self.__toolBar.setMovable(False)
+        self.__toolBar.setFloatable(False)
+        self.__toolBar.setContextMenuPolicy(Qt.NoContextMenu)
+
+        self.__addFilesAction = self.__toolBar.addAction(self.tr('Add files') + '...')
+        self.__addFilesAction.triggered.connect(self.__addFiles)
+
+        self.__removeFilesAction = self.__toolBar.addAction(self.tr('Remove file(s)'))
+        self.__removeFilesAction.triggered.connect(self.__removeFiles)
+
+        self.__transcodeAction = self.__toolBar.addAction(self.tr('Transcode') + '...')
+        self.__transcodeAction.triggered.connect(self.__transcode)
+
+        self.__view = QTreeView()
+        self.setCentralWidget(self.__view)
+
+    def __addFiles(self):
+        pass
+
+    def __removeFiles(self):
+        pass
+
+    def __transcode(self):
+        pass