How do you open the font picker for a UITextField in Xcode4? - xcode4

In Xcode 3 you used to simply use Cmd T.
However, in Xcode 4 this now opens a new tab.
What's the shortcut (or menu command) to open the font picker for a UITextField in Xcode 4?

Shortcut to open a font picker is: control + command + shift + T

Related

About Qt Creator IDE UI

Please look the image below , I want to know what are the components of the three regions?
I think:
A - is QToolBar + QAction
B - is QListView
C - I don't know what it is
Have you any examples to create Qt IDE style ?
Thanks.
You can use spy++ tool in the Microsoft Visual Studio ( any version )
That shows the class name of the window control by selected.
run spy++
click main toolbar -> log message
it shows a dialog
click search tool in top right and drag to the window control you want
see class name in the dialog.

How to open up another tab with a different shell in console2

In my console2 settings under tabs, I have 3 different tabs the defult console, one with powershell shell and one with bash shell.
Is there a way to set a hotkey so when I press ex, ctrl + a it opens up powershell and ctrl + b it opens up bash?
I'm using ConsoleZ which is a fork of Console2. So the setting is possibly the same, if not you might consider using ConsoleZ instead.
You can define hotkeys for New tab 1 to New tab 12 in the settings. By default the hotkeys to open new tabs are Ctrl+F1 to Ctrl+F10 and to switch existing tabs Ctrl+1 to Ctrl+0

How do I change the highlighter color in Adobe Acrobat Reader DC permanently?

I downloaded the latest version of Acrobat Reader and cannot figure out how to permanently change the highlighter color for all future uses. In the version I have on another computer, I can simply right click on the highlighter icon and select the color and transparency I wish to use.
Is this still possible in the new version? I don't like the harsh yellow that is the default and it's not practical to change the color of every highlight I make.
You can change the highlight color using the Highlight Text tool, which is available from the (rather hard to find) Comment Toolbar like this:
Go to View > Tools > Comment > Open to enable the Comment Toolbar
Click on the Highlight Text tool button
The Color Picker button now turns from greyed-out (disabled) to blue (enabled)
Two options here:
Option 1. Click on the Color Picker button and select the color you want your Highlight Text tool to be (limited colors).
Option 2. Ctrl+E (Windows) or command ⌘+E (Mac) to open the Tool Properties menu (broader selection of colors, as others have pointed out).
Go forth and Highlight text
Screenshot for context:
Here's the easiest way: Ctrl + E
(If the "Highlight text" tool is not selected, select it first by clicking on it.)
Now you can choose your favorite color from color panel at left corner box
Yes it is still possible. Go to the Highlight tool and right click, and then click on tool default properties. This is where you can select the new colour.
*I tested this on Version:
2015 Release: Version 2015.009.20069
Version File Version: 15.009.20069.28170
I haven't tested it in Reader, but this works on Acrobat Pro DC:
If you need to change an annotation's color on the fly, you can click on it and then press CTRL + E (CMD + E for a Mac). After you chose the color, click "More..." and check "Make Properties Default" to permanently store your prefered color as the new highlight color.
This is almost the same as right-clicking a comment and choosing "Properties", but the interface is nicer and it's quicker to change properties this way.
An observation: if you press CTRL + E and, without having selected any specific comment, click on a comment tool (Highlight, Underline, etc.) and change its properties in the new interface opened by CTRL + E, it will make those properties the default properties for that comment tool, but only for this session of Acrobat. That is, as soons as you close all Acrobat instances and start the program again, it will revert to the "default properties" you've set as "default" through the "Make Properties Default" method above mentioned.
TO change the highlighter color in Adobe Acrobat Reader DC (2016 on Mac)
1) Select the document's tab
2) Double-click on the comment tool in the right pane -- this will open a 'comment' toolbar below the 1st toolbar. (View -> tools -> comment -> open also achieves this.)
3) Click on the paint bucket icon, and pick a new color
That color will be applied to future comments / highlights. Hopefully this is what you mean by "permanently".
For me, there were 3 ways:
Right Click on Highlight button -> Show Properties Bar. A small bar named Highlighter Tool Properties would be added on screen.
Right Click on the highlighted area, click on Properties....
Press Ctrl + E, it opens the same toolbar as in pt. 1.
I tested it on the Adobe Acrobat Reader DC, 2015 Release, Version 2015.020.20042 (Windows).

Xcode make files open in current window?

In Xcode 4, whenever I double click on a file, it opens in a new window. I'd rather it open in the existing editor pane instead. Is there an option or something that will let this happen?
It seems like if i single click on a file then that opens it.

How do you use dialog forms in Qt designer?

How do you create and access dialog forms in Qt designer?
At the risk of pointing out the blisteringly obvious...
Qt Designer -> File -> New -> Dialog [with buttons/without buttons] -> Create.
You then drag widgets from the Widget Box into the dialog. (View -> Widget Box if you can't see it.)
If you want auto-sizing support, you drag a Layout into the Dialog, then drag your Widgets into the layout.
Qt Designer -> File -> New
Click Create.
Can view code by Menu->Form->ViewCode
Generally, you create a dialog form the same way you do other widgets in Qt designer. That is to say, create a new widget, and fill it with the widgets you want. You'll need to create code files to manage how the dialog works, of course.
To show the dialog, you should create an instance of the widget and show it. Generally, a widget that has no parent will be shown as a separate window. Alternately, if your widget inherits from QDialog, you can pass a parent but it will still show as a separate window.
Launching QtDesigner with QtCreator 3.6.1
QtCreator 3.6.1
Qt 5.6
OSX Yosemite 10.10.5
I installed Qt via:
qt-unified-mac-x64-2.0.2-2-online.dmg
The default installation directory was /Users/7stud/Qt. I found QtCreator.app at the top level of that directory.
I installed sip and then pyqt from source:
PyQt-gpl-5.5.1.tar.gz
as presented here: https://www.riverbankcomputing.com/software/pyqt/download5
To access QtDesigner:
Launch QtCreator, and from the menu bar (outside QtCreator), click on:
File>New File or Project
You will be presented with a New File or Project dialog window. In the Files And Classes section, select Qt. In the middle pane, select QtDesigner Form. Then click on the Choose button in the lower right corner.
You will be presented with a QtDesigner Form dialog window. Then you can select Main Window or Dialog with Buttons Bottom, etc. Then click on the Continue button in the lower right corner.
In the Location dialog window, use a name like mainwindow1.ui, and for the path you might want to step aside and create a directory called forms, e.g. $ mkdir /Users/7stud/qt_projects/forms, then enter that as the path.
Enter any other details and click on Done. That will land you in QtCreator with the Design button selected (which means you are in QtDesigner), and you will be able to drag and drop widgets onto your window.
To convert the .ui file to a .py file that you can import into your python program:
$ pyuic5 mainwindow1.ui -o mainwindow1.py
-o => output file (default is stdout)
That command converts the .ui file mainwindow1.ui to a .py file named mainwindow1.py.

Resources