your not a PITA for asking these questions, we are happy that you want to use it and are enthusiatic about it. Makes it worth developing lol
it's also good that you have got it working.
Like i said before, it's an early version and is missing a lot of features, but we released it as it can still create a few things
Question 1)In our version, we automatically create all the signals / slots behind the scenes in c++.
So all you have to do is reference the specific callback and away you go.
For example, if you have a pushbutton called "btnButtonClick".
Then in lua create a function of that name and add "_Clicked" on the end to access its callback.
- Code: Select all
function btnButtonClick_Clicked() end
Below i will show what callbacks there are for each type so far:
QLabelno callbacks, simply set the text to this.
QPushButton / QToolButtonCheckStates = "_Toggled( state )"
Clicking = no extra words. Just use the function name with no arguments
QComboBox"_Activated( int )" - returns the index of the combo activated
"_ActivatedText( string )" - returns the text of the combo activated
Can have icons.
QLineEdit"_Return( stringtext )" - Called when the return key is pressed.
"_Changed( string )" - Called when the text is changed, passes the string through as an argument
"_Changed( string )" - Called when the text is edited, passes the string through as an argument
"_SelectionChanged()" - Called when the selection changes.
QTextEdit / QPlainTextEdit"_Changed()" - Called when the text is changed, currently has no text sent through, but i will change this.
"_SelectionChanged()" - Called when the selection changes.
QDialogButtonBox"_Accepted()" called when the ok, yes, etc.. buttons are clicked
"_Rejected()" called when the no, cancel, etc.. buttons are clicked
"_Helper()" called when the helper buttons are clicked.
Clicked callback = function name with no suffix. Argument sent is string e.g. function mydiagbox( buttonname )
returns ok, cancel, save, save as etc... This will probably change to _Clicked( text )
QDial / QSlider"_Moved( int )" - Called when ever the slider/dial is moved.
"_Pressed()" - Called whenever the slider/dial is pressed
"_Released()" - Called whenever the slider/dial is released from pressed
"_Changed( int )" - This is the ValueChanged( int ) representative.
QKeySequenceEdit"_Changed( value )" - called on the FinishedEditing signal.
QSpinBox"_Changed( int )" - This is the ValueChanged( int ) representative.
QDoubleSpinBox"_Changed( float )" - This is the ValueChanged( float ) representative.
QCheckBox / QRadioButton "_Toggled( state )" - 1 or 0 for true or false
QToolBox"_Changed( int )" - maps to the "currentChanged(int)" signal.
QListWidget"_Activated( itemText, itemRow )" - maps to the itemActivated c++ command
"_Changed( itemText, itemRow )" - maps to the itemChanged c++ command
"_Clicked( itemText, itemRow )" - maps to the itemClicked c++ command
"_DoubleClicked( itemText, itemRow )" - maps to the itemDoubleClicked c++ command
"_Entered( itemText, itemRow )" - maps to the itemEntered c++ command
"_Pressed( itemText, itemRow )" - maps to the itemPressed c++ command
"_SelectionChanged()" - maps to the itemSelectionChanged c++ command
QTreeWidget"_Activated( itemText, column, row )" - maps to the itemActivated c++ command. if top level, then row is based on top level, if sub child, index is based on childindex
"_Changed( itemText, column, row )" - maps to the itemChanged c++ command.if top level, then row is based on top level, if sub child, index is based on childindex
"_Clicked( itemText, column, row )" - maps to the itemClicked c++ command.if top level, then row is based on top level, if sub child, index is based on childindex
"_DoubleClicked( itemText, column, row )" - maps to the itemDoubleClicked c++ command.if top level, then row is based on top level, if sub child, index is based on childindex
"_Entered( itemText, column, row )" - maps to the itemEntered c++ command.if top level, then row is based on top level, if sub child, index is based on childindex
"_Pressed( itemText, column, row )" - maps to the itemPressed c++ command.if top level, then row is based on top level, if sub child, index is based on childindex
"_SelectionChanged()" - maps to the itemSelectionChanged c++ command
QMenu / QMenuBar / QToolBarFor checkstates, use the name with no suffix and pass "function actionFile( state )"
For triggered, use the name with no suffix or arguments "function actionFile()"
That is all of the ones set up for now lol
Question 2)Currently there are no commands to add / remove from the tree widget, but as shown before. You can get callbacks from widgets you set up in designer.
Question 3)i have not tried .ico files myself,
perhaps try a .png and see if that fixes it. Otherwise we must be missing something as to why it isn't working
Do you plan on implementing a generic Skyline Stylesheet? If not, is it possible to use our own ( I would prefer a generic one as it would mean that all Plugins look roughly the same
)?
We do, it will automatically overwrite the users style if they choose that option. Since it isn't done yet, i can't say for sure the best way of dealing with it, but we have planned it. For now, just roll your own
I hope this clears a few things up for you