Skip to content

Commit 2943a4e

Browse files
committed
Polish and bump up to version 1.0!
1 parent 534cff6 commit 2943a4e

File tree

9 files changed

+34
-16
lines changed

9 files changed

+34
-16
lines changed

gns3/console_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, parent):
3636

3737
# Set introduction message
3838
bitness = struct.calcsize("P") * 8
39-
self.intro = "GNS3 management console. Running GNS3 Early Release (ER) version {} on {} ({}-bit).\n" \
39+
self.intro = "GNS3 management console. Running GNS3 version {} on {} ({}-bit).\n" \
4040
"Copyright (c) 2006-2014 GNS3 Technologies.".format(__version__, platform.system(), bitness)
4141

4242
# Parent class initialization

gns3/dialogs/new_project_dialog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
import os
19+
import shutil
1920
from ..qt import QtCore, QtGui
2021
from ..ui.new_project_dialog_ui import Ui_NewProjectDialog
2122

@@ -98,4 +99,8 @@ def done(self, result):
9899
self._project_settings["project_path"] = os.path.join(project_location, project_name + ".gns3")
99100
self._project_settings["project_files_dir"] = os.path.join(project_location, project_name + "-files")
100101
self._project_settings["project_type"] = project_type
102+
103+
# delete all the project files
104+
shutil.rmtree(self._project_settings["project_files_dir"], ignore_errors=True)
105+
101106
QtGui.QDialog.done(self, result)

gns3/dialogs/preferences_dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _loadPreferencePages(self):
5858
GeneralPreferencesPage,
5959
ServerPreferencesPage,
6060
PacketCapturePreferencesPage,
61-
CloudPreferencesPage,
61+
#CloudPreferencesPage,
6262
]
6363

6464
for page in pages:

gns3/main_window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def __init__(self, parent=None):
137137
# set the window icon
138138
self.setWindowIcon(QtGui.QIcon(":/images/gns3.ico"))
139139

140-
#FIXME: hide the cloud dock for beta release
141-
# self.uiCloudInspectorDockWidget.hide()
140+
#FIXME: hide the cloud dock for release
141+
self.uiCloudInspectorDockWidget.hide()
142142

143143
# Network Manager (used to check for update)
144144
self._network_manager = QtNetwork.QNetworkAccessManager(self)
@@ -839,7 +839,7 @@ def _gettingStartedActionSlot(self, auto=False):
839839

840840
dialog = GettingStartedDialog(self)
841841
dialog.showit()
842-
if auto is True and not dialog.showit():
842+
if auto is True and dialog.showit():
843843
return
844844
dialog.show()
845845
dialog.exec_()

gns3/modules/iou/dialogs/iou_device_wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def getSettings(self):
167167
hover_symbol = ":/symbols/router.selected.svg"
168168
category = Node.routers
169169

170-
if IOU.instance().settings()["use_local_server"] or self.uiLoadBalanceCheckBox.isChecked():
170+
if IOU.instance().settings()["use_local_server"] or self.uiLocalRadioButton.isChecked():
171171
server = "local"
172172
elif self.uiLoadBalanceCheckBox.isChecked():
173173
server = next(iter(Servers.instance()))

gns3/modules/qemu/dialogs/qemu_vm_wizard.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
Wizard for QEMU VMs.
2020
"""
2121

22+
import sys
2223
import os
2324
import shutil
2425

@@ -232,10 +233,18 @@ def _getQemuBinariesFromServerCallback(self, result, error=False):
232233
else:
233234
self.uiQemuListComboBox.clear()
234235
for qemu in result["qemus"]:
235-
self.uiQemuListComboBox.addItem("{path} (v{version})".format(path=qemu["path"], version=qemu["version"]), qemu["path"])
236-
237-
# default is qemu-system-x86_64
238-
index = self.uiQemuListComboBox.findText("x86_64 ", QtCore.Qt.MatchContains) # the space after x86_64 must be present!
236+
if qemu["version"]:
237+
self.uiQemuListComboBox.addItem("{path} (v{version})".format(path=qemu["path"], version=qemu["version"]), qemu["path"])
238+
else:
239+
self.uiQemuListComboBox.addItem("{path}".format(path=qemu["path"]), qemu["path"])
240+
241+
#FIXME: use findData instead
242+
if sys.platform.startswith("win"):
243+
# default is qemu-system-x86_64w on Windows
244+
index = self.uiQemuListComboBox.findText("x86_64w", QtCore.Qt.MatchContains)
245+
else:
246+
# default is qemu-system-x86_64 on other platforms
247+
index = self.uiQemuListComboBox.findText("x86_64 ", QtCore.Qt.MatchContains) # the space after x86_64 must be present!
239248
if index != -1:
240249
self.uiQemuListComboBox.setCurrentIndex(index)
241250

gns3/ui/new_project_dialog.ui

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<rect>
1010
<x>0</x>
1111
<y>0</y>
12-
<width>622</width>
13-
<height>202</height>
12+
<width>472</width>
13+
<height>175</height>
1414
</rect>
1515
</property>
1616
<property name="windowTitle">
@@ -20,6 +20,9 @@
2020
<bool>true</bool>
2121
</property>
2222
<layout class="QGridLayout" name="gridLayout_2">
23+
<property name="sizeConstraint">
24+
<enum>QLayout::SetFixedSize</enum>
25+
</property>
2326
<item row="1" column="0">
2427
<widget class="QDialogButtonBox" name="uiButtonBox">
2528
<property name="orientation">

gns3/ui/new_project_dialog_ui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/ui/new_project_dialog.ui'
44
#
5-
# Created: Thu Oct 16 22:18:42 2014
5+
# Created: Mon Oct 20 16:31:02 2014
66
# by: PyQt4 UI code generator 4.10.4
77
#
88
# WARNING! All changes made in this file will be lost!
@@ -27,9 +27,10 @@ class Ui_NewProjectDialog(object):
2727
def setupUi(self, NewProjectDialog):
2828
NewProjectDialog.setObjectName(_fromUtf8("NewProjectDialog"))
2929
NewProjectDialog.setWindowModality(QtCore.Qt.ApplicationModal)
30-
NewProjectDialog.resize(622, 202)
30+
NewProjectDialog.resize(472, 175)
3131
NewProjectDialog.setModal(True)
3232
self.gridLayout_2 = QtGui.QGridLayout(NewProjectDialog)
33+
self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetFixedSize)
3334
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
3435
self.uiButtonBox = QtGui.QDialogButtonBox(NewProjectDialog)
3536
self.uiButtonBox.setOrientation(QtCore.Qt.Horizontal)

gns3/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
number has been incremented)
2626
"""
2727

28-
__version__ = "1.0.dev1"
29-
__version_info__ = (1, 0, 0, -99)
28+
__version__ = "1.0"
29+
__version_info__ = (1, 0, 0, 0)

0 commit comments

Comments
 (0)