Commits

Tom Burdick committed 039d742

Fixed setup.py so it now will generate the ui files if they don't exist.

  • Participants
  • Parent commits 82fca6d
  • Tags 0.02

Comments (0)

Files changed (8)

cutehg/dialogs/__init__.py

 #from history import *
-from update import * 
-from synchronize import *
-from merge_revision_selection import *
-from merge_conflict_resolution import *
-from merge_commit import *
+from ui_update import * 
+from ui_synchronize import *
+from ui_merge_revision_selection import *
+from ui_merge_conflict_resolution import *
+from ui_merge_commit import *

cutehg/dialogs/history.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'history.ui'
-#
-# Created: Sun Feb  8 13:23:23 2009
-#      by: PyQt4 UI code generator 4.4.4
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_MainWindow(object):
-    def setupUi(self, MainWindow):
-        MainWindow.setObjectName("MainWindow")
-        MainWindow.resize(800, 600)
-        self.centralwidget = QtGui.QWidget(MainWindow)
-        self.centralwidget.setObjectName("centralwidget")
-        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.tableView = QtGui.QTableView(self.centralwidget)
-        self.tableView.setObjectName("tableView")
-        self.verticalLayout.addWidget(self.tableView)
-        self.widget = QtGui.QWidget(self.centralwidget)
-        self.widget.setObjectName("widget")
-        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
-        self.horizontalLayout.setObjectName("horizontalLayout")
-        self.findText = QtGui.QLineEdit(self.widget)
-        self.findText.setObjectName("findText")
-        self.horizontalLayout.addWidget(self.findText)
-        self.findFieldsCombo = QtGui.QComboBox(self.widget)
-        self.findFieldsCombo.setObjectName("findFieldsCombo")
-        self.findFieldsCombo.addItem(QtCore.QString())
-        self.horizontalLayout.addWidget(self.findFieldsCombo)
-        self.findPreviousButton = QtGui.QToolButton(self.widget)
-        icon = QtGui.QIcon()
-        icon.addPixmap(QtGui.QPixmap(":/go-up-search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.findPreviousButton.setIcon(icon)
-        self.findPreviousButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
-        self.findPreviousButton.setObjectName("findPreviousButton")
-        self.horizontalLayout.addWidget(self.findPreviousButton)
-        self.findNextButton = QtGui.QToolButton(self.widget)
-        icon1 = QtGui.QIcon()
-        icon1.addPixmap(QtGui.QPixmap(":/go-down-search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.findNextButton.setIcon(icon1)
-        self.findNextButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
-        self.findNextButton.setObjectName("findNextButton")
-        self.horizontalLayout.addWidget(self.findNextButton)
-        self.verticalLayout.addWidget(self.widget)
-        MainWindow.setCentralWidget(self.centralwidget)
-        self.menubar = QtGui.QMenuBar(MainWindow)
-        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25))
-        self.menubar.setObjectName("menubar")
-        MainWindow.setMenuBar(self.menubar)
-        self.statusbar = QtGui.QStatusBar(MainWindow)
-        self.statusbar.setObjectName("statusbar")
-        MainWindow.setStatusBar(self.statusbar)
-        self.hgActions = QtGui.QToolBar(MainWindow)
-        self.hgActions.setMovable(False)
-        self.hgActions.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
-        self.hgActions.setFloatable(False)
-        self.hgActions.setObjectName("hgActions")
-        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.hgActions)
-        self.actionPull = QtGui.QAction(MainWindow)
-        icon2 = QtGui.QIcon()
-        icon2.addPixmap(QtGui.QPixmap(":/vcs_update.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionPull.setIcon(icon2)
-        self.actionPull.setObjectName("actionPull")
-        self.actionPush = QtGui.QAction(MainWindow)
-        icon3 = QtGui.QIcon()
-        icon3.addPixmap(QtGui.QPixmap(":/vcs_commit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionPush.setIcon(icon3)
-        self.actionPush.setObjectName("actionPush")
-        self.actionUpdate = QtGui.QAction(MainWindow)
-        icon4 = QtGui.QIcon()
-        icon4.addPixmap(QtGui.QPixmap(":/svn_switch.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionUpdate.setIcon(icon4)
-        self.actionUpdate.setObjectName("actionUpdate")
-        self.actionMerge = QtGui.QAction(MainWindow)
-        icon5 = QtGui.QIcon()
-        icon5.addPixmap(QtGui.QPixmap(":/svn_merge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionMerge.setIcon(icon5)
-        self.actionMerge.setObjectName("actionMerge")
-        self.actionDiff = QtGui.QAction(MainWindow)
-        icon6 = QtGui.QIcon()
-        icon6.addPixmap(QtGui.QPixmap(":/vcs_diff.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionDiff.setIcon(icon6)
-        self.actionDiff.setObjectName("actionDiff")
-        self.actionRefresh = QtGui.QAction(MainWindow)
-        icon7 = QtGui.QIcon()
-        icon7.addPixmap(QtGui.QPixmap(":/view-refresh.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionRefresh.setIcon(icon7)
-        self.actionRefresh.setObjectName("actionRefresh")
-        self.actionCommit = QtGui.QAction(MainWindow)
-        icon8 = QtGui.QIcon()
-        icon8.addPixmap(QtGui.QPixmap(":/im-status-message-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionCommit.setIcon(icon8)
-        self.actionCommit.setObjectName("actionCommit")
-        self.actionBackout = QtGui.QAction(MainWindow)
-        icon9 = QtGui.QIcon()
-        icon9.addPixmap(QtGui.QPixmap(":/document-revert.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionBackout.setIcon(icon9)
-        self.actionBackout.setObjectName("actionBackout")
-        self.actionRollback = QtGui.QAction(MainWindow)
-        icon10 = QtGui.QIcon()
-        icon10.addPixmap(QtGui.QPixmap(":/edit-undo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionRollback.setIcon(icon10)
-        self.actionRollback.setObjectName("actionRollback")
-        self.actionServe = QtGui.QAction(MainWindow)
-        icon11 = QtGui.QIcon()
-        icon11.addPixmap(QtGui.QPixmap(":/network-connect.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionServe.setIcon(icon11)
-        self.actionServe.setObjectName("actionServe")
-        self.actionStatus = QtGui.QAction(MainWindow)
-        self.actionStatus.setCheckable(True)
-        icon12 = QtGui.QIcon()
-        icon12.addPixmap(QtGui.QPixmap(":/svn_status.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.actionStatus.setIcon(icon12)
-        self.actionStatus.setObjectName("actionStatus")
-        self.actionFind_Next = QtGui.QAction(MainWindow)
-        self.actionFind_Next.setIcon(icon1)
-        self.actionFind_Next.setObjectName("actionFind_Next")
-        self.actionFind_Previous = QtGui.QAction(MainWindow)
-        self.actionFind_Previous.setIcon(icon)
-        self.actionFind_Previous.setObjectName("actionFind_Previous")
-        self.hgActions.addAction(self.actionRefresh)
-        self.hgActions.addAction(self.actionStatus)
-        self.hgActions.addAction(self.actionPush)
-        self.hgActions.addAction(self.actionPull)
-        self.hgActions.addAction(self.actionUpdate)
-        self.hgActions.addAction(self.actionMerge)
-        self.hgActions.addAction(self.actionDiff)
-        self.hgActions.addAction(self.actionCommit)
-        self.hgActions.addAction(self.actionServe)
-        self.hgActions.addAction(self.actionBackout)
-        self.hgActions.addAction(self.actionRollback)
-
-        self.retranslateUi(MainWindow)
-        QtCore.QObject.connect(self.findNextButton, QtCore.SIGNAL("clicked()"), self.actionFind_Next.trigger)
-        QtCore.QObject.connect(self.findPreviousButton, QtCore.SIGNAL("clicked()"), self.actionFind_Previous.trigger)
-        QtCore.QMetaObject.connectSlotsByName(MainWindow)
-
-    def retranslateUi(self, MainWindow):
-        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "CuteHg History View", None, QtGui.QApplication.UnicodeUTF8))
-        self.findFieldsCombo.setItemText(0, QtGui.QApplication.translate("MainWindow", "All Fields", None, QtGui.QApplication.UnicodeUTF8))
-        self.findPreviousButton.setText(QtGui.QApplication.translate("MainWindow", "Find Previous", None, QtGui.QApplication.UnicodeUTF8))
-        self.findNextButton.setText(QtGui.QApplication.translate("MainWindow", "Find Next", None, QtGui.QApplication.UnicodeUTF8))
-        self.hgActions.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionPull.setText(QtGui.QApplication.translate("MainWindow", "Pull", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionPull.setToolTip(QtGui.QApplication.translate("MainWindow", "Pull changesets from a remote repository", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionPush.setText(QtGui.QApplication.translate("MainWindow", "Push", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionPush.setToolTip(QtGui.QApplication.translate("MainWindow", "Push changesets to a remote repository", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionUpdate.setText(QtGui.QApplication.translate("MainWindow", "Update", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionUpdate.setToolTip(QtGui.QApplication.translate("MainWindow", "Update the working directory to the selected revision", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionMerge.setText(QtGui.QApplication.translate("MainWindow", "Merge", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionMerge.setToolTip(QtGui.QApplication.translate("MainWindow", "Merge the current working directory and the selected revision", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionDiff.setText(QtGui.QApplication.translate("MainWindow", "Diff", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionDiff.setToolTip(QtGui.QApplication.translate("MainWindow", "Show the differences in all files between the current working directory and the selected revision", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionRefresh.setText(QtGui.QApplication.translate("MainWindow", "Refresh", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionRefresh.setToolTip(QtGui.QApplication.translate("MainWindow", "Refresh the history view", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionCommit.setText(QtGui.QApplication.translate("MainWindow", "Commit", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionCommit.setToolTip(QtGui.QApplication.translate("MainWindow", "Commit changes made to the working directory", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionBackout.setText(QtGui.QApplication.translate("MainWindow", "Backout", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionBackout.setToolTip(QtGui.QApplication.translate("MainWindow", "Undo the effects of a changeset by creating a new changeset", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionRollback.setText(QtGui.QApplication.translate("MainWindow", "Rollback", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionRollback.setToolTip(QtGui.QApplication.translate("MainWindow", "Undo the most recent action", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionServe.setText(QtGui.QApplication.translate("MainWindow", "Serve", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionServe.setToolTip(QtGui.QApplication.translate("MainWindow", "Serve the mercurial repository as a website", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionStatus.setText(QtGui.QApplication.translate("MainWindow", "Status", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionStatus.setToolTip(QtGui.QApplication.translate("MainWindow", "See that status of all files in the repository", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionFind_Next.setText(QtGui.QApplication.translate("MainWindow", "Find Next", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionFind_Previous.setText(QtGui.QApplication.translate("MainWindow", "Find Previous", None, QtGui.QApplication.UnicodeUTF8))
-
-import history_rc

cutehg/dialogs/merge_commit.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'merge_commit.ui'
-#
-# Created: Sun Jan 25 15:25:59 2009
-#      by: PyQt4 UI code generator 4.4.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_mergeCommit(object):
-    def setupUi(self, mergeCommit):
-        mergeCommit.setObjectName("mergeCommit")
-        mergeCommit.resize(552, 471)
-        self.verticalLayout = QtGui.QVBoxLayout(mergeCommit)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.mergeCommitLabel = QtGui.QLabel(mergeCommit)
-        self.mergeCommitLabel.setObjectName("mergeCommitLabel")
-        self.verticalLayout.addWidget(self.mergeCommitLabel)
-        self.messageTextEdit = QtGui.QTextEdit(mergeCommit)
-        self.messageTextEdit.setObjectName("messageTextEdit")
-        self.verticalLayout.addWidget(self.messageTextEdit)
-        self.line = QtGui.QFrame(mergeCommit)
-        self.line.setFrameShape(QtGui.QFrame.HLine)
-        self.line.setFrameShadow(QtGui.QFrame.Sunken)
-        self.line.setObjectName("line")
-        self.verticalLayout.addWidget(self.line)
-        self.statusView = QtGui.QTableView(mergeCommit)
-        self.statusView.setObjectName("statusView")
-        self.verticalLayout.addWidget(self.statusView)
-
-        self.retranslateUi(mergeCommit)
-        QtCore.QMetaObject.connectSlotsByName(mergeCommit)
-
-    def retranslateUi(self, mergeCommit):
-        mergeCommit.setWindowTitle(QtGui.QApplication.translate("mergeCommit", "Form", None, QtGui.QApplication.UnicodeUTF8))
-        self.mergeCommitLabel.setText(QtGui.QApplication.translate("mergeCommit", "Merge completed. Enter a message for the merge commit.", None, QtGui.QApplication.UnicodeUTF8))
-

cutehg/dialogs/merge_conflict_resolution.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'merge_conflict_resolution.ui'
-#
-# Created: Sun Jan 25 15:29:26 2009
-#      by: PyQt4 UI code generator 4.4.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_mergeConflictResolution(object):
-    def setupUi(self, mergeConflictResolution):
-        mergeConflictResolution.setObjectName("mergeConflictResolution")
-        mergeConflictResolution.resize(573, 362)
-        self.verticalLayout = QtGui.QVBoxLayout(mergeConflictResolution)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.mergeConflictLabel = QtGui.QLabel(mergeConflictResolution)
-        self.mergeConflictLabel.setWordWrap(True)
-        self.mergeConflictLabel.setObjectName("mergeConflictLabel")
-        self.verticalLayout.addWidget(self.mergeConflictLabel)
-        self.conflictView = QtGui.QTableView(mergeConflictResolution)
-        self.conflictView.setObjectName("conflictView")
-        self.verticalLayout.addWidget(self.conflictView)
-
-        self.retranslateUi(mergeConflictResolution)
-        QtCore.QMetaObject.connectSlotsByName(mergeConflictResolution)
-
-    def retranslateUi(self, mergeConflictResolution):
-        mergeConflictResolution.setWindowTitle(QtGui.QApplication.translate("mergeConflictResolution", "Form", None, QtGui.QApplication.UnicodeUTF8))
-        self.mergeConflictLabel.setText(QtGui.QApplication.translate("mergeConflictResolution", "There were conflicts. Please resolve them and click the checkbox to signify you\'ve resolved each conflicting file.", None, QtGui.QApplication.UnicodeUTF8))
-

cutehg/dialogs/merge_revision_selection.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'merge_revision_selection.ui'
-#
-# Created: Sun Jan 25 15:26:27 2009
-#      by: PyQt4 UI code generator 4.4.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_mergeRevisionSelection(object):
-    def setupUi(self, mergeRevisionSelection):
-        mergeRevisionSelection.setObjectName("mergeRevisionSelection")
-        mergeRevisionSelection.resize(554, 253)
-        self.verticalLayout = QtGui.QVBoxLayout(mergeRevisionSelection)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.historyChoiceLabel = QtGui.QLabel(mergeRevisionSelection)
-        self.historyChoiceLabel.setWordWrap(True)
-        self.historyChoiceLabel.setObjectName("historyChoiceLabel")
-        self.verticalLayout.addWidget(self.historyChoiceLabel)
-        self.widget_2 = QtGui.QWidget(mergeRevisionSelection)
-        self.widget_2.setObjectName("widget_2")
-        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget_2)
-        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
-        self.findLineEdit = QtGui.QLineEdit(self.widget_2)
-        self.findLineEdit.setObjectName("findLineEdit")
-        self.horizontalLayout_2.addWidget(self.findLineEdit)
-        self.fieldComboBox = QtGui.QComboBox(self.widget_2)
-        self.fieldComboBox.setObjectName("fieldComboBox")
-        self.fieldComboBox.addItem(QtCore.QString())
-        self.horizontalLayout_2.addWidget(self.fieldComboBox)
-        self.findButton = QtGui.QPushButton(self.widget_2)
-        self.findButton.setObjectName("findButton")
-        self.horizontalLayout_2.addWidget(self.findButton)
-        self.verticalLayout.addWidget(self.widget_2)
-        self.historyView = QtGui.QTableView(mergeRevisionSelection)
-        self.historyView.setObjectName("historyView")
-        self.verticalLayout.addWidget(self.historyView)
-
-        self.retranslateUi(mergeRevisionSelection)
-        QtCore.QMetaObject.connectSlotsByName(mergeRevisionSelection)
-
-    def retranslateUi(self, mergeRevisionSelection):
-        mergeRevisionSelection.setWindowTitle(QtGui.QApplication.translate("mergeRevisionSelection", "Form", None, QtGui.QApplication.UnicodeUTF8))
-        self.historyChoiceLabel.setText(QtGui.QApplication.translate("mergeRevisionSelection", "Choose a revision to merge the current working directory with.", None, QtGui.QApplication.UnicodeUTF8))
-        self.fieldComboBox.setItemText(0, QtGui.QApplication.translate("mergeRevisionSelection", "All Fields", None, QtGui.QApplication.UnicodeUTF8))
-        self.findButton.setText(QtGui.QApplication.translate("mergeRevisionSelection", "Find", None, QtGui.QApplication.UnicodeUTF8))
-

cutehg/dialogs/synchronize.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'synchronize.ui'
-#
-# Created: Fri Jan 23 14:43:34 2009
-#      by: PyQt4 UI code generator 4.4.4
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_syncDialog(object):
-    def setupUi(self, syncDialog):
-        syncDialog.setObjectName("syncDialog")
-        syncDialog.resize(392, 295)
-        self.verticalLayout = QtGui.QVBoxLayout(syncDialog)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.urlContainer = QtGui.QWidget(syncDialog)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.urlContainer.sizePolicy().hasHeightForWidth())
-        self.urlContainer.setSizePolicy(sizePolicy)
-        self.urlContainer.setObjectName("urlContainer")
-        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.urlContainer)
-        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
-        self.urlLabel = QtGui.QLabel(self.urlContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.urlLabel.sizePolicy().hasHeightForWidth())
-        self.urlLabel.setSizePolicy(sizePolicy)
-        self.urlLabel.setObjectName("urlLabel")
-        self.horizontalLayout_2.addWidget(self.urlLabel)
-        self.urlComboBox = QtGui.QComboBox(self.urlContainer)
-        self.urlComboBox.setEditable(True)
-        self.urlComboBox.setObjectName("urlComboBox")
-        self.horizontalLayout_2.addWidget(self.urlComboBox)
-        self.verticalLayout.addWidget(self.urlContainer)
-        spacerItem = QtGui.QSpacerItem(20, 5, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
-        self.verticalLayout.addItem(spacerItem)
-        self.line = QtGui.QFrame(syncDialog)
-        self.line.setFrameShape(QtGui.QFrame.HLine)
-        self.line.setFrameShadow(QtGui.QFrame.Sunken)
-        self.line.setObjectName("line")
-        self.verticalLayout.addWidget(self.line)
-        self.protocolContainer = QtGui.QWidget(syncDialog)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.protocolContainer.sizePolicy().hasHeightForWidth())
-        self.protocolContainer.setSizePolicy(sizePolicy)
-        self.protocolContainer.setObjectName("protocolContainer")
-        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.protocolContainer)
-        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
-        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
-        self.protocolLabel = QtGui.QLabel(self.protocolContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.protocolLabel.sizePolicy().hasHeightForWidth())
-        self.protocolLabel.setSizePolicy(sizePolicy)
-        self.protocolLabel.setObjectName("protocolLabel")
-        self.horizontalLayout_3.addWidget(self.protocolLabel)
-        self.protocolComboBox = QtGui.QComboBox(self.protocolContainer)
-        self.protocolComboBox.setObjectName("protocolComboBox")
-        self.protocolComboBox.addItem(QtCore.QString())
-        self.protocolComboBox.addItem(QtCore.QString())
-        self.protocolComboBox.addItem(QtCore.QString())
-        self.protocolComboBox.addItem(QtCore.QString())
-        self.horizontalLayout_3.addWidget(self.protocolComboBox)
-        self.verticalLayout.addWidget(self.protocolContainer)
-        spacerItem1 = QtGui.QSpacerItem(20, 3, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
-        self.verticalLayout.addItem(spacerItem1)
-        self.optionsStackWidget = QtGui.QStackedWidget(syncDialog)
-        self.optionsStackWidget.setObjectName("optionsStackWidget")
-        self.folderPage = QtGui.QWidget()
-        self.folderPage.setObjectName("folderPage")
-        self.verticalLayout_3 = QtGui.QVBoxLayout(self.folderPage)
-        self.verticalLayout_3.setObjectName("verticalLayout_3")
-        self.folderContainer = QtGui.QWidget(self.folderPage)
-        self.folderContainer.setObjectName("folderContainer")
-        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.folderContainer)
-        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
-        self.browseLineEdit = QtGui.QLineEdit(self.folderContainer)
-        self.browseLineEdit.setObjectName("browseLineEdit")
-        self.horizontalLayout_4.addWidget(self.browseLineEdit)
-        self.browseButton = QtGui.QPushButton(self.folderContainer)
-        self.browseButton.setObjectName("browseButton")
-        self.horizontalLayout_4.addWidget(self.browseButton)
-        self.verticalLayout_3.addWidget(self.folderContainer)
-        self.optionsStackWidget.addWidget(self.folderPage)
-        self.remotePage = QtGui.QWidget()
-        self.remotePage.setObjectName("remotePage")
-        self.verticalLayout_4 = QtGui.QVBoxLayout(self.remotePage)
-        self.verticalLayout_4.setObjectName("verticalLayout_4")
-        self.hostContainer = QtGui.QWidget(self.remotePage)
-        self.hostContainer.setObjectName("hostContainer")
-        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.hostContainer)
-        self.horizontalLayout_5.setSpacing(2)
-        self.horizontalLayout_5.setMargin(2)
-        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
-        self.loginContainer = QtGui.QWidget(self.hostContainer)
-        self.loginContainer.setObjectName("loginContainer")
-        self.formLayout = QtGui.QFormLayout(self.loginContainer)
-        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
-        self.formLayout.setMargin(0)
-        self.formLayout.setSpacing(0)
-        self.formLayout.setObjectName("formLayout")
-        self.hostLabel = QtGui.QLabel(self.loginContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.hostLabel.sizePolicy().hasHeightForWidth())
-        self.hostLabel.setSizePolicy(sizePolicy)
-        self.hostLabel.setObjectName("hostLabel")
-        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.hostLabel)
-        self.widget = QtGui.QWidget(self.loginContainer)
-        self.widget.setObjectName("widget")
-        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.widget)
-        self.horizontalLayout_7.setSpacing(0)
-        self.horizontalLayout_7.setMargin(0)
-        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
-        self.hostLineEdit = QtGui.QLineEdit(self.widget)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.hostLineEdit.sizePolicy().hasHeightForWidth())
-        self.hostLineEdit.setSizePolicy(sizePolicy)
-        self.hostLineEdit.setMinimumSize(QtCore.QSize(200, 0))
-        self.hostLineEdit.setObjectName("hostLineEdit")
-        self.horizontalLayout_7.addWidget(self.hostLineEdit)
-        self.portLabel = QtGui.QLabel(self.widget)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.portLabel.sizePolicy().hasHeightForWidth())
-        self.portLabel.setSizePolicy(sizePolicy)
-        self.portLabel.setObjectName("portLabel")
-        self.horizontalLayout_7.addWidget(self.portLabel)
-        self.portLineEdit = QtGui.QLineEdit(self.widget)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.portLineEdit.sizePolicy().hasHeightForWidth())
-        self.portLineEdit.setSizePolicy(sizePolicy)
-        self.portLineEdit.setMinimumSize(QtCore.QSize(60, 0))
-        self.portLineEdit.setMaximumSize(QtCore.QSize(80, 16777215))
-        self.portLineEdit.setObjectName("portLineEdit")
-        self.horizontalLayout_7.addWidget(self.portLineEdit)
-        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.widget)
-        self.folderLabel = QtGui.QLabel(self.loginContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.folderLabel.sizePolicy().hasHeightForWidth())
-        self.folderLabel.setSizePolicy(sizePolicy)
-        self.folderLabel.setObjectName("folderLabel")
-        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.folderLabel)
-        self.folderLineEdit = QtGui.QLineEdit(self.loginContainer)
-        self.folderLineEdit.setObjectName("folderLineEdit")
-        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.folderLineEdit)
-        self.userLabel = QtGui.QLabel(self.loginContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.userLabel.sizePolicy().hasHeightForWidth())
-        self.userLabel.setSizePolicy(sizePolicy)
-        self.userLabel.setObjectName("userLabel")
-        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.userLabel)
-        self.userLineEdit = QtGui.QLineEdit(self.loginContainer)
-        self.userLineEdit.setObjectName("userLineEdit")
-        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.userLineEdit)
-        self.passwordLabel = QtGui.QLabel(self.loginContainer)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.passwordLabel.sizePolicy().hasHeightForWidth())
-        self.passwordLabel.setSizePolicy(sizePolicy)
-        self.passwordLabel.setObjectName("passwordLabel")
-        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.passwordLabel)
-        self.passwordLineEdit = QtGui.QLineEdit(self.loginContainer)
-        self.passwordLineEdit.setEchoMode(QtGui.QLineEdit.Password)
-        self.passwordLineEdit.setObjectName("passwordLineEdit")
-        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.passwordLineEdit)
-        self.horizontalLayout_5.addWidget(self.loginContainer)
-        self.verticalLayout_4.addWidget(self.hostContainer)
-        self.optionsStackWidget.addWidget(self.remotePage)
-        self.verticalLayout.addWidget(self.optionsStackWidget)
-        self.buttonContainer = QtGui.QWidget(syncDialog)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.buttonContainer.sizePolicy().hasHeightForWidth())
-        self.buttonContainer.setSizePolicy(sizePolicy)
-        self.buttonContainer.setObjectName("buttonContainer")
-        self.horizontalLayout = QtGui.QHBoxLayout(self.buttonContainer)
-        self.horizontalLayout.setObjectName("horizontalLayout")
-        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
-        self.horizontalLayout.addItem(spacerItem2)
-        self.syncButton = QtGui.QPushButton(self.buttonContainer)
-        self.syncButton.setObjectName("syncButton")
-        self.horizontalLayout.addWidget(self.syncButton)
-        self.cancelButton = QtGui.QPushButton(self.buttonContainer)
-        self.cancelButton.setObjectName("cancelButton")
-        self.horizontalLayout.addWidget(self.cancelButton)
-        self.verticalLayout.addWidget(self.buttonContainer)
-        self.actionCancel = QtGui.QAction(syncDialog)
-        self.actionCancel.setObjectName("actionCancel")
-        self.actionSync = QtGui.QAction(syncDialog)
-        self.actionSync.setObjectName("actionSync")
-
-        self.retranslateUi(syncDialog)
-        self.optionsStackWidget.setCurrentIndex(0)
-        QtCore.QObject.connect(self.syncButton, QtCore.SIGNAL("clicked()"), self.actionSync.trigger)
-        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), self.actionCancel.trigger)
-        QtCore.QMetaObject.connectSlotsByName(syncDialog)
-
-    def retranslateUi(self, syncDialog):
-        syncDialog.setWindowTitle(QtGui.QApplication.translate("syncDialog", "Mercurial Synchronize", None, QtGui.QApplication.UnicodeUTF8))
-        self.urlLabel.setText(QtGui.QApplication.translate("syncDialog", "URL:", None, QtGui.QApplication.UnicodeUTF8))
-        self.urlComboBox.setToolTip(QtGui.QApplication.translate("syncDialog", "A URL of the location you wish to push, pull, or clone from. \n"
-"\n"
-"Examples:\n"
-"\n"
-"http://user@myhost.com/user/myrepo\n"
-"\n"
-"ssh://user@myhost.com//home/hg/myrepo\n"
-"\n"
-"", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolLabel.setText(QtGui.QApplication.translate("syncDialog", "Protocol: ", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolComboBox.setToolTip(QtGui.QApplication.translate("syncDialog", "Select the source type.\n"
-"\n"
-"Local is a location on your computer or a network share you can browse to using a file browser.\n"
-"\n"
-"HTTP, HTTPS, and SSH are all remote locations using different network protocols.", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolComboBox.setItemText(0, QtGui.QApplication.translate("syncDialog", "Local", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolComboBox.setItemText(1, QtGui.QApplication.translate("syncDialog", "HTTP", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolComboBox.setItemText(2, QtGui.QApplication.translate("syncDialog", "HTTPS", None, QtGui.QApplication.UnicodeUTF8))
-        self.protocolComboBox.setItemText(3, QtGui.QApplication.translate("syncDialog", "SSH", None, QtGui.QApplication.UnicodeUTF8))
-        self.browseButton.setText(QtGui.QApplication.translate("syncDialog", "Browse...", None, QtGui.QApplication.UnicodeUTF8))
-        self.hostLabel.setText(QtGui.QApplication.translate("syncDialog", "Host:", None, QtGui.QApplication.UnicodeUTF8))
-        self.hostLineEdit.setToolTip(QtGui.QApplication.translate("syncDialog", "The remote host name or ip address the repository is stored on.", None, QtGui.QApplication.UnicodeUTF8))
-        self.portLabel.setText(QtGui.QApplication.translate("syncDialog", "Port", None, QtGui.QApplication.UnicodeUTF8))
-        self.portLineEdit.setToolTip(QtGui.QApplication.translate("syncDialog", "The port number the repository is being served from.", None, QtGui.QApplication.UnicodeUTF8))
-        self.folderLabel.setText(QtGui.QApplication.translate("syncDialog", "Folder:", None, QtGui.QApplication.UnicodeUTF8))
-        self.folderLineEdit.setToolTip(QtGui.QApplication.translate("syncDialog", "The location on the server the repository is located at.\n"
-"\n"
-"For SSH the path is a relative path from where the user logging in would normally be.\n"
-"Ex\n"
-"/repository/blah is really /home/myuser/repository/blah\n"
-"\n"
-"For the full path use\n"
-"//home/hg/repos/myrepo", None, QtGui.QApplication.UnicodeUTF8))
-        self.userLabel.setText(QtGui.QApplication.translate("syncDialog", "User:", None, QtGui.QApplication.UnicodeUTF8))
-        self.userLineEdit.setToolTip(QtGui.QApplication.translate("syncDialog", "The remote user name.", None, QtGui.QApplication.UnicodeUTF8))
-        self.passwordLabel.setText(QtGui.QApplication.translate("syncDialog", "Password:", None, QtGui.QApplication.UnicodeUTF8))
-        self.passwordLineEdit.setToolTip(QtGui.QApplication.translate("syncDialog", "The remote user password.", None, QtGui.QApplication.UnicodeUTF8))
-        self.syncButton.setToolTip(QtGui.QApplication.translate("syncDialog", "Push or Pull changes to or from selected repository to the local one.", None, QtGui.QApplication.UnicodeUTF8))
-        self.syncButton.setText(QtGui.QApplication.translate("syncDialog", "Synchronize", None, QtGui.QApplication.UnicodeUTF8))
-        self.cancelButton.setText(QtGui.QApplication.translate("syncDialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionCancel.setText(QtGui.QApplication.translate("syncDialog", "cancel", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionSync.setText(QtGui.QApplication.translate("syncDialog", "sync", None, QtGui.QApplication.UnicodeUTF8))
-

cutehg/dialogs/update.py

-# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'update.ui'
-#
-# Created: Wed Jan 21 21:51:48 2009
-#      by: PyQt4 UI code generator 4.4.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_updateDialog(object):
-    def setupUi(self, updateDialog):
-        updateDialog.setObjectName("updateDialog")
-        updateDialog.resize(627, 436)
-        self.verticalLayout = QtGui.QVBoxLayout(updateDialog)
-        self.verticalLayout.setObjectName("verticalLayout")
-        self.findContainer = QtGui.QWidget(updateDialog)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.findContainer.sizePolicy().hasHeightForWidth())
-        self.findContainer.setSizePolicy(sizePolicy)
-        self.findContainer.setObjectName("findContainer")
-        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.findContainer)
-        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
-        self.findLineEdit = QtGui.QLineEdit(self.findContainer)
-        self.findLineEdit.setObjectName("findLineEdit")
-        self.horizontalLayout_2.addWidget(self.findLineEdit)
-        self.findFieldCombo = QtGui.QComboBox(self.findContainer)
-        self.findFieldCombo.setObjectName("findFieldCombo")
-        self.findFieldCombo.addItem(QtCore.QString())
-        self.horizontalLayout_2.addWidget(self.findFieldCombo)
-        self.findButton = QtGui.QPushButton(self.findContainer)
-        self.findButton.setObjectName("findButton")
-        self.horizontalLayout_2.addWidget(self.findButton)
-        self.verticalLayout.addWidget(self.findContainer)
-        self.revisionsBox = QtGui.QGroupBox(updateDialog)
-        self.revisionsBox.setObjectName("revisionsBox")
-        self.verticalLayout_2 = QtGui.QVBoxLayout(self.revisionsBox)
-        self.verticalLayout_2.setObjectName("verticalLayout_2")
-        self.historyView = QtGui.QTableView(self.revisionsBox)
-        self.historyView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
-        self.historyView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
-        self.historyView.setAlternatingRowColors(True)
-        self.historyView.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
-        self.historyView.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
-        self.historyView.setHorizontalScrollMode(QtGui.QAbstractItemView.ScrollPerItem)
-        self.historyView.setShowGrid(False)
-        self.historyView.setObjectName("historyView")
-        self.verticalLayout_2.addWidget(self.historyView)
-        self.verticalLayout.addWidget(self.revisionsBox)
-        self.buttonContainer = QtGui.QWidget(updateDialog)
-        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
-        sizePolicy.setHorizontalStretch(0)
-        sizePolicy.setVerticalStretch(0)
-        sizePolicy.setHeightForWidth(self.buttonContainer.sizePolicy().hasHeightForWidth())
-        self.buttonContainer.setSizePolicy(sizePolicy)
-        self.buttonContainer.setObjectName("buttonContainer")
-        self.horizontalLayout = QtGui.QHBoxLayout(self.buttonContainer)
-        self.horizontalLayout.setObjectName("horizontalLayout")
-        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
-        self.horizontalLayout.addItem(spacerItem)
-        self.updateButton = QtGui.QPushButton(self.buttonContainer)
-        self.updateButton.setObjectName("updateButton")
-        self.horizontalLayout.addWidget(self.updateButton)
-        self.cancelButton = QtGui.QPushButton(self.buttonContainer)
-        self.cancelButton.setObjectName("cancelButton")
-        self.horizontalLayout.addWidget(self.cancelButton)
-        self.verticalLayout.addWidget(self.buttonContainer)
-        self.actionUpdate = QtGui.QAction(updateDialog)
-        self.actionUpdate.setObjectName("actionUpdate")
-        self.actionCancel = QtGui.QAction(updateDialog)
-        self.actionCancel.setObjectName("actionCancel")
-        self.actionFind = QtGui.QAction(updateDialog)
-        self.actionFind.setObjectName("actionFind")
-
-        self.retranslateUi(updateDialog)
-        QtCore.QObject.connect(self.updateButton, QtCore.SIGNAL("clicked()"), self.actionUpdate.trigger)
-        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL("clicked()"), self.actionCancel.trigger)
-        QtCore.QObject.connect(self.findButton, QtCore.SIGNAL("clicked()"), self.actionFind.trigger)
-        QtCore.QMetaObject.connectSlotsByName(updateDialog)
-
-    def retranslateUi(self, updateDialog):
-        updateDialog.setWindowTitle(QtGui.QApplication.translate("updateDialog", "Mercurial Update", None, QtGui.QApplication.UnicodeUTF8))
-        self.findFieldCombo.setItemText(0, QtGui.QApplication.translate("updateDialog", "All Fields", None, QtGui.QApplication.UnicodeUTF8))
-        self.findButton.setText(QtGui.QApplication.translate("updateDialog", "Find", None, QtGui.QApplication.UnicodeUTF8))
-        self.revisionsBox.setTitle(QtGui.QApplication.translate("updateDialog", "Revisions", None, QtGui.QApplication.UnicodeUTF8))
-        self.updateButton.setText(QtGui.QApplication.translate("updateDialog", "Update", None, QtGui.QApplication.UnicodeUTF8))
-        self.cancelButton.setText(QtGui.QApplication.translate("updateDialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionUpdate.setText(QtGui.QApplication.translate("updateDialog", "Update", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionCancel.setText(QtGui.QApplication.translate("updateDialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
-        self.actionFind.setText(QtGui.QApplication.translate("updateDialog", "Find", None, QtGui.QApplication.UnicodeUTF8))
-
 
 #author tom
 
+import os
+import dircache
 import distutils.core
 import distutils.util
+from distutils.command.build import build
 
-platform = distutils.util.get_platform()
+
+class CuteHgBuild(build):
+    def compile_ui(self, ui_file, py_file):
+        # Search for pyuic4 in python bin dir, then in the $Path.
+        try:
+            from PyQt4 import uic
+            fp = open(py_file, 'w')
+            uic.compileUi(ui_file, fp)
+            fp.close()
+        except Exception, e:
+            print 'Unable to compile user interface', e
+            return
+
+    def run(self):
+        ui_files = dircache.listdir('cutehg/ui')
+        for filename in ui_files:
+            name = filename.split('.')[0]
+            if not os.path.exists( ('cutehg/dialogs/ui_%s.py' % name) ):
+                self.compile_ui( ('cutehg/ui/%s.ui' % name), ('cutehg/dialogs/ui_%s.py' % name) )
+        build.run(self)
+
 
 distutils.core.setup(
     name='cutehg',
-    version='0.01',
+    version='0.02',
     description='Qt4 Dialog extension to Mercurial',
     author="Tom Burdick",
     author_email='thomas.burdick@gmail.com',
-    license='GPL',
-    platforms='Linux',
+    license='GNU GPL2',
+    cmdclass = { 'build' : CuteHgBuild }, # define custom build class
+    platforms='All',
     packages=['cutehg', 'cutehg.dialogs', 'cutehg.vcsmodel'],
     url='http://www.bitbucket.org/bfrog/cutehg',
     )