Commit Graph

27 Commits

Author SHA1 Message Date
baldurk 94dfb9890b Allow registering window, panel and context menu items with callbacks 2018-10-23 14:23:12 +01:00
baldurk cf1bd99d21 Add box frame shape around events list 2018-02-19 00:52:14 +00:00
baldurk f23adfbb41 find previous button should be left of the find next button 2017-08-15 17:36:28 +01:00
baldurk d57cc1b188 Add more consistency to docking panels and widgets
* Dock panels shouldn't have any frame border or anything like that.
* They should have an external margin of 3 pixels at their border,
  but then no further margins on the layouts (like sub-controls for
  the pipeline state views.
* Toolbars should be Raised & Panel frames. Later we'll replace them
  with actual QToolBars to better customise the painting.
2017-07-28 19:06:46 +01:00
baldurk b63c91da0f Remove fake box frames around find/goto. Superceded by custom style 2017-07-28 19:06:45 +01:00
baldurk d44528794a Change qrenderdoc icons to Farm-Fresh, to add high-DPI versions. 2017-06-19 16:17:20 +01:00
baldurk d515c69a9f Remove alternating row colors in most places.
* This was only added because the default tree widget controls don't
  render any grid lines. Now that we're custom drawing them, the row
  colors are distracting and can be confusing on themes where the
  selected row is very faint.
2017-06-13 18:19:02 +01:00
baldurk 199c26adbf Put the MainWindow in charge of handling 'global' type shortcuts
* QShortcut falls down on duplicates. It can have activatedAmbiguously
  events, but these happen in arbitrary order and the shortcuts on
  menu items just swallow the ambiguous activate so it's not useful.
* Instead we just let MainWindow pick up ShortcutOverride events and
  consult a mapping of which shortcuts to use. We can use a smarter
  selection method to choose the more 'local' shortcut if two shortcuts
  that conflict exist.
2017-06-08 18:23:10 +01:00
baldurk a4fe376c32 Add column selection popup for event browser and persist column state
* We can add in the Draw # column now, and set up the default state to
  not include the duration column.
2017-06-03 00:53:54 +01:00
baldurk 3b6f63be0d Make event browser columns properly resizable and re-orderable
* Annoyingly although Qt has an internal bool allowUserMoveOfSection0
  which does exactly what we want allowing the tree column to be
  movable, we can't enable it because it's private. So instead we have
  to re-implement section moving ourselves.
* Minor tweak - also made RDTreeWidgets non-movable by default since
  usually we don't want to allow it.
2017-06-03 00:38:02 +01:00
baldurk f65f5ea9da Use new RDTreeWidget everywhere in favour of QTreeWidget
* Since we're promoting everything, we reset the behaviour of
  RDTreeWidget so that it's not doing anything different by default.
* RDTreeWidget's interface is a bit different, exposing some useful
  things like a single selected item and so on.
* We also can't set columns in the Qt Creator UI anymore, so we set them
  from code.
2017-04-21 18:44:52 +01:00
baldurk 143d35ff31 Add export-to-text function for event browser 2017-04-20 13:04:28 +01:00
Dimitris Kapnopoulos 6e06eb5164 Added tooltips for all QToolButtons. RDSplitter checks for valid index.
handleDoubleClicked in RDSplitter checks if the index argument is less than zero or bigger than count
2017-03-28 02:54:15 -07:00
baldurk 1100f36d77 Add toolbar buttons for previous/next drawcall step 2017-02-13 19:20:20 +00:00
baldurk 0c79d778e9 Add shortcuts for functionality in event browser 2017-02-13 19:20:13 +00:00
baldurk 55e5bcca61 Implement bookmark handling in the event browser 2017-02-13 14:29:13 +00:00
baldurk 9e47ed53b5 Move resources.qrc into Resources/ folder 2017-02-09 19:28:22 +00:00
baldurk 48a60104bb Create more of a directory structure for qrenderdoc files 2016-10-11 21:31:57 +02:00
baldurk a1e9554e66 Implement the ctrl-g texture goto popup 2016-10-10 16:41:48 +02:00
baldurk 7ec3049844 Rename LineEditFocusWidget to RDLineEdit
* It seems due to deficiencies in Qt's design, there will be a
  substantial need for these small custom subclasses just to add basic
  functionality that should have been present in the original. So we'll
  adopt a naming scheme of QFooBar -> RDFooBar for this 'almost the
  same widget' type subclassing, compared to more custom/changed ones.
2016-10-04 19:54:24 +02:00
baldurk c1344c2ff3 Implement jump and find functionality in event browser 2015-07-10 16:38:42 +02:00
baldurk 9276cb875f Hook up the jump/find bars 2015-07-10 16:38:41 +02:00
baldurk fa4e98d1f7 Add UI for find, jump to event and bookmark toolbars (not implemented) 2015-07-10 16:38:40 +02:00
baldurk 7eded723a9 Implement event browser time drawcalls button 2015-07-10 16:38:39 +02:00
baldurk a405ee13ca Loads of changes, fix thread & invoke helpers, skeleton of Core working
* GUIInvoke helper changed to use QMetaObject::invokeMethod which works
  on threads better.
* LambdaThread helper class now has a thread member, it doesn't derive
  from thread (this seems to be recommended practice).
2015-07-10 16:38:34 +02:00
baldurk 93dfd014a2 Fix pathing on resources.qrc from EventBrowser being moved 2015-07-10 16:38:29 +02:00
baldurk 56c4b23c7a Organise source files a bit more, add Core class 2015-07-10 16:38:26 +02:00