Commit graph

380 commits

Author SHA1 Message Date
dfighter1985
d19e4ecaab Studio should no longer crash when multiple plugins that use LIGO are loaded. LIGO classes are now guarded against multiple registrations. If it's tried log messages are generated. Mission Compiler and World Editor will now apply their own LIGO configs when the user switches to their tab. 2014-09-22 23:24:48 +02:00
dfighter1985
8a1821aba4 oups 2014-09-20 20:55:30 +02:00
dfighter1985
a05057bf7e GUI Editor should no longer crash on Linux 2014-09-20 20:51:08 +02:00
dfighter1985
ca250bab9b Fixed Object Viewer build. 2014-09-17 22:36:58 +02:00
dfighter1985
516d5c9a47 don't evaluate the child-nodes when there are none, directly just return () 2014-09-17 20:54:16 +02:00
dfighter1985
d6251c2a1a When removing the root node, don't retain the pointer to it... 2014-09-17 20:51:45 +02:00
dfighter1985
5578b791f3 Added the rest of the expression files. 2014-09-17 20:49:26 +02:00
dfighter1985
c2eb8e16ae Merged develop. 2014-09-17 19:51:14 +02:00
dfighter1985
6badbe5112 Added support for clearing the Expression Editor scene. 2014-09-17 19:27:06 +02:00
dfighter1985
49e8343345 Texture Chooser shouldn't have been left in the main menu... 2014-09-17 19:21:39 +02:00
dfighter1985
8ca98c91e9 Moved the Expression Editor to it's right place. 2014-09-17 19:19:43 +02:00
dfighter1985
e7f9487800 Instead of mouse move event, use the itemChange handler to move the links. 2014-09-17 16:17:41 +02:00
dfighter1985
e18e3ac358 ExpressionNode flags are now set in it's constructor. 2014-09-17 16:02:28 +02:00
dfighter1985
55264978ad Links shouldn't be selectable. 2014-09-17 16:01:23 +02:00
dfighter1985
a7b3b0f985 This is the GUI Editor not Georges... 2014-09-17 15:50:12 +02:00
dfighter1985
814fedbc4a Save expression. 2014-09-17 15:47:49 +02:00
dfighter1985
f3fbfdcb83 Expression can now be built. 2014-09-17 15:31:54 +02:00
dfighter1985
aa1ac95aae A root node can now be set. The root node is where the evaluation will start. 2014-09-17 14:41:57 +02:00
dfighter1985
4fe0b030f5 Added sample expression files. 2014-09-16 15:54:53 +02:00
dfighter1985
1e91e006c4 When changing the value of a node, change the size the node if needed. 2014-09-16 15:31:06 +02:00
dfighter1985
535e0474ad Allow to set and change values of value nodes. 2014-09-16 15:15:31 +02:00
dfighter1985
52fa0b4fa9 Only allow variable nodes to have their number of slots changed. 2014-09-16 03:45:26 +02:00
dfighter1985
cce83f371d Set the number of slots and their names from the data loaded from XMLs. 2014-09-16 03:38:21 +02:00
dfighter1985
8b0f7ddeaf Parse expression files, and build the expression tree from the expressions parsed from these files. 2014-09-16 02:32:10 +02:00
dfighter1985
8314fd5c6b Slot count can now be changed. 2014-09-15 01:25:01 +02:00
dfighter1985
79e205c6d8 Expression Editor is now a QMainWindow subclass. Also added an expression tree, with some sample nodes. 2014-09-14 21:00:40 +02:00
dfighter1985
1b913a76c1 Show the node names as title, in the link dialog. 2014-09-14 17:19:11 +02:00
dfighter1985
e37394ae20 Add serial number to nodes. 2014-09-14 17:04:42 +02:00
dfighter1985
c404e0e590 Allow painting of arbitrary number of connection slots. 2014-09-14 16:57:56 +02:00
dfighter1985
eb70ac6199 A little refactoring. 2014-09-14 16:43:45 +02:00
dfighter1985
892ca16ae3 Support for adding nodes with different slot count. 2014-09-14 16:37:17 +02:00
dfighter1985
624578c024 Added unlinking support. 2014-09-14 15:36:41 +02:00
dfighter1985
8513711d66 Improved linking 2014-09-14 15:15:20 +02:00
dfighter1985
dfe108cb82 There are more than 1 slots available now. 2014-09-13 23:54:25 +02:00
dfighter1985
594443ce3b More refactoring. 2014-09-13 22:54:50 +02:00
dfighter1985
2f92e69e9d More refactoring. 2014-09-13 22:39:00 +02:00
dfighter1985
cce08a6914 Refactoring 2014-09-13 22:31:48 +02:00
dfighter1985
1d1660c27b Connection slots are now managed by their own object, and linking is now done to their positions. 2014-09-13 22:26:11 +02:00
dfighter1985
cf42655519 Paint the connection text, boxes separately. 2014-09-13 21:34:47 +02:00
dfighter1985
f170d8854b Add a little style. 2014-09-13 18:03:02 +02:00
dfighter1985
ac9dc5638c Throw an error message when trying to link nodes that are already linked. 2014-09-13 00:54:37 +02:00
dfighter1985
a6e5f52e17 Link nodes and remove and delete the link too when deleting one of the nodes. 2014-09-13 00:43:00 +02:00
dfighter1985
f7b360f1cb Subclassed QGraphicsItem and QGraphicsItemLine. 2014-09-12 23:45:57 +02:00
dfighter1985
475bd91a0c Added link action. 2014-09-12 21:01:29 +02:00
dfighter1985
8f72f2d12f We can select multiple items 2014-09-12 19:47:28 +02:00
dfighter1985
b300bb1ee7 Added GUI for expression editor. 2014-09-12 19:19:51 +02:00
kaetemi
302c478af6 Merge with develop 2014-09-12 15:19:12 +02:00
kaetemi
b34c7cf12a When in Rome, do as the Romans do 2014-09-11 10:36:41 +02:00
dfighter1985
60205f51e8 Merged default. 2014-09-10 20:18:00 +02:00
dfighter1985
af7bff14cf Offer to save changes when closing a dialog. 2014-09-10 19:59:38 +02:00
dfighter1985
54b8bf6aa2 When closing a dialog, remove it from the docked dialogs, and delete it. 2014-09-10 19:52:35 +02:00
dfighter1985
26712697c2 Allow editing of the comment section, and save comments when saving. 2014-09-10 19:14:26 +02:00
dfighter1985
6576b3d325 Raise the widget after adding. 2014-09-10 18:50:07 +02:00
dfighter1985
912248afde WTF? 2014-09-10 18:49:34 +02:00
dfighter1985
cb0cacf3cc oups 2014-09-10 18:04:55 +02:00
dfighter1985
b69169af71 Use a file browser for setting files. 2014-09-10 17:59:22 +02:00
dfighter1985
90b3bd0338 A little refactoring 2014-09-10 17:02:51 +02:00
dfighter1985
21da4da0fa Store the filename only in the Dfn value. 2014-09-10 16:44:49 +02:00
dfighter1985
c4a9db12f9 Properly support color types. 2014-09-10 16:22:08 +02:00
nimetu
e781439e48 Fix #199 Studio object viewer plugin font 2014-09-10 12:19:11 +02:00
dfighter1985
3425c517f5 Create vstruct node when needed. 2014-09-10 00:36:55 +02:00
dfighter1985
bd508d3ef4 Instead of storing the node, store the name and the node type. 2014-09-10 00:28:03 +02:00
dfighter1985
0c3a1d7b23 Don't add Virtual Structs to the property browser! 2014-09-09 22:01:52 +02:00
dfighter1985
df02d7f7f1 Added support for Virtual Structs. 2014-09-09 21:57:30 +02:00
dfighter1985
15f6ed3c37 Merged default. 2014-09-05 22:28:11 +02:00
dfighter1985
029ebdc751 Get type info from DFN. 2014-09-05 21:42:14 +02:00
dfighter1985
ca910cf17a Added support for manipulating atoms. 2014-09-05 20:28:43 +02:00
dfighter1985
49f216ca0e Appending, resizing arrays, deleting array members should now create the proper new nodes. 2014-09-05 19:41:51 +02:00
dfighter1985
c4e01eaca6 Added support for adding atoms and virtual structs in the treeview. 2014-09-05 18:58:47 +02:00
dfighter1985
2020638e35 Do the same when readding items after a deletion. 2014-09-05 15:20:22 +02:00
dfighter1985
12996110fc Add new array entries with all their children. 2014-09-05 15:13:58 +02:00
botanic
49370fb5a4 Merge 2014-09-04 17:27:29 -07:00
dfighter1985
8d3c8de517 Enter a log entry when creating new documents. 2014-09-04 15:41:17 +02:00
dfighter1985
6457ab90eb Added support for creating new form documents 2014-09-03 19:55:46 +02:00
dfighter1985
256d72fe62 Added support for new DFN document creation. 2014-09-03 19:37:49 +02:00
dfighter1985
d139bc9f8d Added support for new typ document creation. 2014-09-03 19:28:01 +02:00
dfighter1985
3e3a9b8585 Error messages 2014-09-03 19:14:32 +02:00
dfighter1985
6954103b61 A little refactoring, dialogs are now loaded using the full filepath. 2014-09-03 19:11:38 +02:00
dfighter1985
ec20f009e7 Added GUI stub for new types/Dfns/forms. 2014-09-03 18:33:09 +02:00
dfighter1985
1be8e6f6a8 Removed m_modified, since the base widget has a field for this. 2014-09-03 17:25:11 +02:00
dfighter1985
baec2d1155 Form editor should trigger the save button properly now. 2014-09-03 17:22:09 +02:00
dfighter1985
a0194f5d24 Added missing copyright headers. 2014-09-03 17:12:25 +02:00
dfighter1985
2802f9e6cb Log changes and save log. 2014-09-03 16:42:12 +02:00
dfighter1985
c2738ecf73 Mark the typ dialog modified after a modification. 2014-09-03 16:26:52 +02:00
dfighter1985
4239748047 Apply changes. 2014-09-03 16:14:38 +02:00
dfighter1985
43bf6cebed Load type data into the property browser. 2014-09-03 16:08:13 +02:00
dfighter1985
d146d91ab1 Mark the DFN editor modified after adding / removing an element. 2014-09-03 00:00:52 +02:00
dfighter1985
5022549a0d Implemented saving. 2014-09-02 23:54:42 +02:00
dfighter1985
3d6a9fb139 Implemented add button. 2014-09-02 23:37:16 +02:00
dfighter1985
9422a67cf3 Implemented definition editing. 2014-09-02 23:25:47 +02:00
dfighter1985
8635cd3c65 Implemented remove button. 2014-09-02 23:07:55 +02:00
dfighter1985
a76a6b6e85 Load comments, log, and definitions. 2014-09-02 23:00:32 +02:00
dfighter1985
3b270c3e9e Delete DFN when destroying a DFN editor... 2014-09-02 22:47:18 +02:00
dfighter1985
a66582cff5 Load .typ file. 2014-09-02 22:46:19 +02:00
dfighter1985
62fb0ca1ae Added GUI for the Type editor. 2014-09-02 22:32:56 +02:00
dfighter1985
5fa370463b Logging DFN changes. 2014-09-02 20:13:10 +02:00
dfighter1985
0904c30803 No comment. Literally! :D 2014-09-02 19:32:05 +02:00
dfighter1985
a875e66696 Implemented add and remove buttons. 2014-09-02 19:26:02 +02:00
dfighter1985
bca9fd9347 Save changes. 2014-09-02 15:31:14 +02:00
dfighter1985
298268b88e Change the name in the list too. 2014-09-02 15:13:48 +02:00