Xcode make files open in current window? - xcode4

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.

Related

X-Mouse Button Control - Open folder in a new window

I'd like to create a macro on my mouse middle button that will open a folder in a new window using the Ctrl+ENTER combination.
I've tryed the following: {LMB}{HOLD:1}{CTRL}{ENTER}
but it doesn't seem to work.
Does anyone know what I'm doing wrong?

Redux DevTools: Can't open VS Code from Trace tab lines of code

My problem is when I am on the Trace tab of Redux DevTools on Chrome and I click on a line of code (for example a dispatch) that the Trace tab allows me to see like here, instead of opening it on VS Code at the correct number line, it opens a new tab on Chrome with the message "A website wants to open this application" with a button "Open Visual Studio Code" but the tab instantly closes/disappears!
I tried several times to click very quickly on the button "Open VS Code" but it doesn't make any difference. I also tried Ctrl + Shift + T to reopened closed tabs but it doesn't reopen that specific tab...
It seems I only need to click on that "Open VS Code" button to make it work. Also I'm a beginner so there's probably something I'm missing.
Here are the values I put on the settings :
The settings
I think you should fix the path of your project directory correctly. I've also face the same problem for a while then I found my mistake and resolved the same problem.
Here the first step you have to follow check the project directory displaying in reduxDevTool https://prnt.sc/wk4z5f
You see the file name like this .redux-starter/src/index.js:9(Please check the above screenshot link)
Open the reduxDevTools Settings by clicking on settings button from reduxDevTools.
Here you have to check the radio External ediotr radio button and type vscode inside the input field.
And finally, most important things you have to setup i.e; is path of your project directory. Copy the project directory path D:\xampp\htdocs\reactjs\redux\ where the Redux-Starter project folder exists and paste it on that textarea field.
Lastly, reload the frame, go to Trace tab and click one of the dispatch function. You will see that it opens in the vscode.

Window PopUp And Robot Framework

I have a case where I have to validate if I click on upload button, window popup appears to select the file.
Can anyone please help me in doing this using robot framework.
If you only use a Windows interface, you can use AutoIt Library that provide keyword that can do what you need to do, here are the steps to install it:
Install Pywin from this link https://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe/download
Download the AutoIt Zipfile from here:
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/robotframework-autoitlibrary/AutoItLibrary-1.1.zip
Install it as Library (If you don't know how, come back to me and i'll give you the steps)
Now you can use this keywords to upload your file:
wait for active window |WindowTitle="title of the upload window"
win active | "title of the upload window" | Open
send | "yourfile.extesion"
sleep | 1
control click | "title of the upload window" | Open | [CLASS:Button; INSTANCE:1] | LEFT
Hope this helped you.
Regards,
I'd recommend using Choose File. Here's a manual example of a File Upload that I had to do with Robot Framework.
Click Add File button on website.
Click Upload File button on website popup menu.
Click [fileName] on the OS GUI popup.
Click Upload on the OS GUI popup.
Click Upload on the website popup menu.
Click Cancel on the website popup menu.
Here's the code I used to do it.
Click Button ${ADD_FILE}
Choose File ${FILE_UPLOADS} ${DEFAULT_FILE}
Click Button ${UPLOAD_BUTTON}
Click Button ${CANCEL_BUTTON}
Notice that Choose File saved me two steps, including going outside the DOM. A huge advantage of this is that you can run this in one window while your focus is on a different window.

Not able to handle iframe and new window activity

I am not able to handle Iframe popups. In my application when i click on some buttons or link then open iframe pop up. activity which i do on that iframe popup is not recorded in selenium IDE.
select window command also not work.
When i click on link then it open in second window with same title. i am not able to handle that new window's activity.
Please provide me solution if any have.
You need to use the command Select Frame and not Select Window.

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