Skip to content

Commit 500a953

Browse files
committed
Merge pull request #253 from slarosa/master
New style for the toolbar icons (Python Console)
2 parents f2f1426 + 32deee7 commit 500a953

14 files changed

Lines changed: 32 additions & 23 deletions

‎python/console.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(self, parent=None):
128128
self.actionScript = QAction(parent)
129129
self.actionScript.setCheckable(False)
130130
self.actionScript.setEnabled(True)
131-
self.actionScript.setIcon(QIcon(os.path.dirname(__file__) + "/iconConsole/iconTempConsole.png"))
131+
self.actionScript.setIcon(QIcon(os.path.dirname(__file__) + "/iconConsole/iconScriptConsole.png"))
132132
self.actionScript.setMenuRole(QAction.PreferencesRole)
133133
self.actionScript.setIconVisibleInMenu(True)
134134
self.actionScript.setToolTip(actionScriptBt)

‎python/help.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def __init__(self):
99
QtGui.QDialog.__init__(self)
1010
self.setModal(True)
1111
self.setupUi()
12-
12+
1313
def setupUi(self):
14-
self.resize(400, 300)
14+
self.setMaximumSize(500, 300)
1515
self.webView = QtWebKit.QWebView()
1616
self.setWindowTitle("Help Python Console")
1717
self.verticalLayout= QtGui.QVBoxLayout()

‎python/helpConsole/help.htm‎

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
font-size : 12px;
1010
}
1111
#header{
12-
background: #c6c6c6;
12+
background: #cccccc;
1313
width: 100%;
1414
}
15+
#headerTool td{
16+
background: #f6f6f6;
17+
/*width: 100%;*/
18+
}
1519
</style>
1620
</head>
1721
<body>
@@ -56,16 +60,16 @@ <h4>Features</h4>
5660
<br>
5761
<li>CTRL+ALT+SPACE to view the command history list.</li>
5862
<br>
59-
<li>Saves command history by typing <b>_save</b> or closing the widget.<br>
63+
<li>Saves the command history by typing <b>_save</b> or closing the widget.<br>
6064
This command saves the history command in the file ~/.qgis/console_history.txt
6165
</li>
6266
<br>
63-
<li>Clears command history by typing <b>_clear</b>.<br>
64-
This command clears the history command from file ~/.qgis/console_history.txt
67+
<li>Clears the command history by typing <b>_clear</b>.<br>
68+
This command clears the command history from file ~/.qgis/console_history.txt
6569
</li>
6670
<br>
6771
<li>Clears completely command history by typing <b>_clearAll</b>.<br>
68-
This command clears completely the history command. It has an irreversible effect.
72+
This command clears completely the command history. It has an irreversible effect.
6973
</li>
7074
</ul>
7175
</p>
@@ -77,34 +81,38 @@ <h4>Toolbar</h4>
7781
</tr>
7882
</table>
7983
<p>The following is a description of the tools in the toolbar:</p>
80-
<table width="100%">
84+
<table width="100%" border="0" id="headerTool">
8185
<tr>
82-
<td><img src="../iconConsole/iconClearConsole.png" /></td>
83-
<td>Tool to clear python console</td>
86+
<td><img src="../iconConsole/iconClearConsole.png" /></td>
87+
<td colspan="2">Tool to clear python console</td>
8488
</tr>
8589
<tr>
86-
<td><img src="../iconConsole/iconIfaceConsole.png" /></td>
87-
<td>Tool to import iface class</td>
90+
<td><img src="../iconConsole/iconClassConsole.png" /></td>
91+
<td><img src="../iconConsole/iconIfaceConsole.png" /></td>
92+
<td>Tool to import iface class</td>
8893
</tr>
8994
<tr>
90-
<td><img src="../iconConsole/iconSextanteConsole.png" /></td>
91-
<td>Tool to import Sextante class</td>
95+
<td></td>
96+
<td><img src="../iconConsole/iconSextanteConsole.png" /></td>
97+
<td>Tool to import Sextante class</td>
9298
</tr>
9399
<tr>
94-
<td><img src="../iconConsole/iconOpenConsole.png" /></td>
95-
<td>Tool to open a python script and load in console</td>
100+
<td><img src="../iconConsole/iconScriptConsole.png" /></td>
101+
<td><img src="../iconConsole/iconOpenConsole.png" /></td>
102+
<td>Tool to open a python script and load in console</td>
96103
</tr>
97104
<tr>
98-
<td><img src="../iconConsole/iconSaveConsole.png" /></td>
99-
<td>Tool to save a python script</td>
105+
<td></td>
106+
<td><img src="../iconConsole/iconSaveConsole.png" /></td>
107+
<td>Tool to save a python script</td>
100108
</tr>
101109
<tr>
102-
<td><img src="../iconConsole/iconHelpConsole.png" /></td>
103-
<td>This! ;-)</td>
110+
<td><img src="../iconConsole/iconHelpConsole.png" /></td>
111+
<td colspan="2">Help</td>
104112
</tr>
105113
<tr>
106-
<td><img src="../iconConsole/iconRunConsole.png" /></td>
107-
<td>Run command (like Enter key pressed)</td>
114+
<td><img src="../iconConsole/iconRunConsole.png" /></td>
115+
<td colspan="2">Run command (like Enter key pressed)</td>
108116
</tr>
109117
</table>
110118
<br>

‎python/iconConsole/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ iconHelpConsole.png
99
imgHelpDialog.png
1010
iconIfaceConsole.png
1111
iconClassConsole.png
12+
iconScriptConsole.png
1213
)
1314

1415
FILE(GLOB ICON_FILES *.png)
-18 Bytes
Loading
174 Bytes
Loading
282 Bytes
Loading
236 Bytes
Loading
30 Bytes
Loading
121 Bytes
Loading

0 commit comments

Comments
 (0)