Possible to edit for c++ code in qt creator [closed] - forms

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Forgive my ignorance on this, but I'm using QT creator 2.6 and I designed a form in QT designer. Is there no way to edit the c++ source code of the form?
If not, then does that mean when using QT creator I have to either write the code for a window, or use the designer, but I can't do both for the same window?

I don't know what do you exactly mean by "edit the c++ source code of the form" but when using designer you still can acces objects from form in code using
ui->objName
If you want to use your own widget, you can create layout for it in designer and add it later in code(in MainWindow constructor) using something like
ui->layoutName->addWidget(yourWidget)

It's Qt, not QT.
Form is described by *.ui file, which is an xml, which you can edit by any text editor (Qt Creator itself forbids to edit it, as I remember).
Usually *.ui file is accompanied with *.h and *.cpp file, where the form itself and its objects are used.
You can also create form widgets programmatically and place them on the form, that's meaned by Creator.
If you want to create UI via code i suggest you see Qt Quick and QML.

Related

Creating Excel document with dynamic header row using OfficeWriter. [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a requirement to create generic method/ class in C# to generate excel document using Office Writer. In documentation and all samples, it's mentioned to use pre-populated template and fill that template with data. Since I need to create header dynamically, I cannot have template file with fixed header columns. Can we create template dynamically in runtime?
Can someone help me here?
Yes, since a template for OfficeWriter is just a normal Excel document with special symbols in it to mark where data should go, you can create or modify them like any Excel document with the ExcelApplication library.
The documentation has a good write up on creating templates with the ExcelApplication library (it was hidden deep within the Advanced Tutorials section).

Rubymine Live Templates cheat sheet [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Does anyone know if there is a cheat sheet available for the acronyms that trigger Live Templates in Rubymine? For example "ifth" plus tab inserts an if-then-else clause.
Or does there exist a config file somewhere that I could print out? Searching haven't gotten me anywhere.
You can find live templates with the description in File | Settings | Live Templates.
There is no printable reference available, however one can try to generate one basing on the XML files that can be found in RUBYMINE\lib\rubymine.jar\liveTemplates.
There is a plug-in generating PDF keymap reference, one can use it as a starting point for a new plug-in that will export PDF for the live templates.

Editor for new programming language in Eclipse [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I really hope someone can help me out with this!
For the GOAL Agent Programming language, there is an existing IDE written in JEdit, which is not that good. Thus, we wanted to migrate the editing (at least) to the Eclipse platform.
The GOAL programming language involves several other filetypes on its own, including Prolog files for instance. To this end, a few grammars written in ANTLR exist, which work quite well.
My question now is, using these pre-existing grammars and built lexers/parsers and such, is it possible to easily create an Eclipse editor for this?
I have looked at some existing stuff, like Xtext (would have to write a new grammar, which probably is not even possible for GOAL or Prolog), IMP (abandoned a few years ago already?), etcetera. None of these seem to suffice.
Does anyone have any ideas/suggestions?
Thanks in advance!
Another option is http://www.eclipse.org/dltk/ not sure if you evaluated it already or not.
It doesn't pretend to generate the whole IDE for you :-) However, it abstracts common functionality, so you can focus mostly on your language features.
It is unfortunate that IMP indeed seems abandoned, as it covers exactly your scenario: your language, compiler, etc. is working already and now you need "just" the IDE.
Nevertheless, IMP is still working, and recently, it has been used to implement the IDE for the Frege programming language.

Customized Bootstrap into Less format [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there anyway to download a customised version of twitter boostrap (where you can edit the colours, grid widths etc) that gives you the css in .less format?
Bootstrap is in Less: https://github.com/twbs/bootstrap/tree/master/less (as of 3.0.0)
There is a SASS version here: https://github.com/jlong/sass-twitter-bootstrap
Edit: You can "fork" one of those versions, & add your own edits to it. You can use GitHub for free if you do not mind if your fork is available to others publicly.
The bootstrap package comes with the less sheets already included so you can download the whole package from GitHub and start working right away. You can also modify most of the styles on the bootstrap by customizing your download over at the Customize section on the Bootstrap documentation page that will also render the changes you make in less.
Here is the bootstrap less documentation.

Aghhh!!! I lost interface builder to code [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
So this is probably a noob question, but my interface builder turned into red code. I think the "version editor" somehow did it, but I just want it back. I am a noob and can't write the interface in code. Any help?
You mean in the left pane that lists your files, the .xib filename turned red? That means the file is gone, and usually XCode didn't do it, or it would have removed it from the list too. Maybe you deleted it from the file system, maybe it was done by a version control system as you are suggesting. If you have it in a version control system you should be able to get back the last version of it.
If all else fails, File > New > New File. Choose User Interface under iOS, and pick usually View. Re-create your interface using Interface Builder from scratch.