Skip to content

Commit

Permalink
Merge pull request #253 from slarosa/master
Browse files Browse the repository at this point in the history
New style for the toolbar icons (Python Console)
  • Loading branch information
timlinux committed Sep 28, 2012
2 parents f2f1426 + 32deee7 commit 500a953
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 23 deletions.
2 changes: 1 addition & 1 deletion python/console.py
Expand Up @@ -128,7 +128,7 @@ def __init__(self, parent=None):
self.actionScript = QAction(parent)
self.actionScript.setCheckable(False)
self.actionScript.setEnabled(True)
self.actionScript.setIcon(QIcon(os.path.dirname(__file__) + "/iconConsole/iconTempConsole.png"))
self.actionScript.setIcon(QIcon(os.path.dirname(__file__) + "/iconConsole/iconScriptConsole.png"))
self.actionScript.setMenuRole(QAction.PreferencesRole)
self.actionScript.setIconVisibleInMenu(True)
self.actionScript.setToolTip(actionScriptBt)
Expand Down
4 changes: 2 additions & 2 deletions python/help.py
Expand Up @@ -9,9 +9,9 @@ def __init__(self):
QtGui.QDialog.__init__(self)
self.setModal(True)
self.setupUi()

def setupUi(self):
self.resize(400, 300)
self.setMaximumSize(500, 300)
self.webView = QtWebKit.QWebView()
self.setWindowTitle("Help Python Console")
self.verticalLayout= QtGui.QVBoxLayout()
Expand Down
48 changes: 28 additions & 20 deletions python/helpConsole/help.htm
Expand Up @@ -9,9 +9,13 @@
font-size : 12px;
}
#header{
background: #c6c6c6;
background: #cccccc;
width: 100%;
}
#headerTool td{
background: #f6f6f6;
/*width: 100%;*/
}
</style>
</head>
<body>
Expand Down Expand Up @@ -56,16 +60,16 @@ <h4>Features</h4>
<br>
<li>CTRL+ALT+SPACE to view the command history list.</li>
<br>
<li>Saves command history by typing <b>_save</b> or closing the widget.<br>
<li>Saves the command history by typing <b>_save</b> or closing the widget.<br>
This command saves the history command in the file ~/.qgis/console_history.txt
</li>
<br>
<li>Clears command history by typing <b>_clear</b>.<br>
This command clears the history command from file ~/.qgis/console_history.txt
<li>Clears the command history by typing <b>_clear</b>.<br>
This command clears the command history from file ~/.qgis/console_history.txt
</li>
<br>
<li>Clears completely command history by typing <b>_clearAll</b>.<br>
This command clears completely the history command. It has an irreversible effect.
This command clears completely the command history. It has an irreversible effect.
</li>
</ul>
</p>
Expand All @@ -77,34 +81,38 @@ <h4>Toolbar</h4>
</tr>
</table>
<p>The following is a description of the tools in the toolbar:</p>
<table width="100%">
<table width="100%" border="0" id="headerTool">
<tr>
<td><img src="../iconConsole/iconClearConsole.png" /></td>
<td>Tool to clear python console</td>
<td><img src="../iconConsole/iconClearConsole.png" /></td>
<td colspan="2">Tool to clear python console</td>
</tr>
<tr>
<td><img src="../iconConsole/iconIfaceConsole.png" /></td>
<td>Tool to import iface class</td>
<td><img src="../iconConsole/iconClassConsole.png" /></td>
<td><img src="../iconConsole/iconIfaceConsole.png" /></td>
<td>Tool to import iface class</td>
</tr>
<tr>
<td><img src="../iconConsole/iconSextanteConsole.png" /></td>
<td>Tool to import Sextante class</td>
<td></td>
<td><img src="../iconConsole/iconSextanteConsole.png" /></td>
<td>Tool to import Sextante class</td>
</tr>
<tr>
<td><img src="../iconConsole/iconOpenConsole.png" /></td>
<td>Tool to open a python script and load in console</td>
<td><img src="../iconConsole/iconScriptConsole.png" /></td>
<td><img src="../iconConsole/iconOpenConsole.png" /></td>
<td>Tool to open a python script and load in console</td>
</tr>
<tr>
<td><img src="../iconConsole/iconSaveConsole.png" /></td>
<td>Tool to save a python script</td>
<td></td>
<td><img src="../iconConsole/iconSaveConsole.png" /></td>
<td>Tool to save a python script</td>
</tr>
<tr>
<td><img src="../iconConsole/iconHelpConsole.png" /></td>
<td>This! ;-)</td>
<td><img src="../iconConsole/iconHelpConsole.png" /></td>
<td colspan="2">Help</td>
</tr>
<tr>
<td><img src="../iconConsole/iconRunConsole.png" /></td>
<td>Run command (like Enter key pressed)</td>
<td><img src="../iconConsole/iconRunConsole.png" /></td>
<td colspan="2">Run command (like Enter key pressed)</td>
</tr>
</table>
<br>
Expand Down
1 change: 1 addition & 0 deletions python/iconConsole/CMakeLists.txt
Expand Up @@ -9,6 +9,7 @@ iconHelpConsole.png
imgHelpDialog.png
iconIfaceConsole.png
iconClassConsole.png
iconScriptConsole.png
)

FILE(GLOB ICON_FILES *.png)
Expand Down
Binary file modified python/iconConsole/iconClassConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconClearConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconHelpConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconIfaceConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconOpenConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconRunConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconSaveConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/iconConsole/iconScriptConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconSextanteConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/iconConsole/iconTempConsole.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 500a953

Please sign in to comment.