Author Topic: Linux Build Issue: wxListView’ has no member named ‘EnableCheckboxes’  (Read 3980 times)

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Building on a new Ubuntu 16.04 setup, wxWidgets installed at 3.1 successful.


g++ -fno-strict-aliasing -Wno-unused-local-typedefs -DwxUSE_UNICODE -O2 -std=gnu++14 -Wall `wx-config --version=3.1 --cflags` `pkg-config --cflags gstreamer-1.0 gstreamer-video-1.0` `pkg-config --cflags libavformat libavcodec libavutil  libswresample libswscale` -Winvalid-pch -DWX_PRECOMP -DLINUX -DNDEBUG -D__cdecl='' -Wno-reorder -Wno-sign-compare -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-unknown-pragmas  -Iinclude -Isequencer -I../xLights -Ieffects -Ieffects/ -Imodels -Ieffects/assist -I../include -Imodels/ -c LayoutPanel.cpp -o .objs_lr/LayoutPanel.o
LayoutPanel.cpp: In member function ‘void LayoutPanel::UpdateModelList(bool)’:
LayoutPanel.cpp:510:25: error: ‘class wxListView’ has no member named ‘EnableCheckboxes’
     ListBoxElementList->EnableCheckboxes(enableCheckboxes);
                         ^
xLights.cbp.mak:1284: recipe for target '.objs_lr/LayoutPanel.o' failed
make[1]: *** [.objs_lr/LayoutPanel.o] Error 1
make[1]: Leaving directory '/srv/Shared/Software/Christmas/linux/xLights/xLights'
Makefile:29: recipe for target 'xLights' failed
make: *** [xLights] Error 2

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
If we switch to my code in the MultipleViews branch that EnableCheckboxes code is gone.  All the "IsMyDisplay" stuff was removed so no need for those checkboxes.

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Thanks, built without issue.

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Trying to figure out why I now have 2 copies of everything in my preview window.  Once is normal sized and the other is ~50%. Also, how do you edit the contents of a group and preview?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
There were several bugs I fixed yesterday.  It's all moved over to the master branch so you should switch back and pull the latest.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
By the way you'll need to make sure you start with an xlights_rgbeffects.xml file that has never been run on this newer code.  I modified the code to do an upgrade of that file and it won't run properly if you use a file that you saved with this new code yesterday.

Let me know if you still see the duplicates.

Editing a group is same as last version.  You click on the group name and in the properties area you can change everything related to the group.  For a preview currently the only way to get a model/group into it is to change the Preview assignment for the group.  You can change it to "All Previews" if you want it to show up on all of them.  Choose the "All Models" preview to see everything.   Normally you would create a Preview and then everything you create is added to that preview or whatever is the selected preview.  If you need to move something to another preview then you gotta pull up a preview that contains what you want to move or select "All Models".

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Moved over to master and used a restored rgbeffects file, everything compiled fine and runs.

Observations:

1.  I still had the multiple copies in my house preview screen even though my model preview only showed one copy of each when my all group was selected.  I figured out it was because all of my groups in addition to the models themselves were mapped onto the preview default.  I didn't set it up that way, my guess it was due to conversion. 

2.  Once I changed all the Groups to Preview: Unassigned it removed the duplicates.

3.  Even though I could multi-select all the groups, changing the Preview would not affect them so I had to go through them one by one.  Same issue where you have models for the same prop.  Needs to be documented.

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Also, forgot to ask how to control which preview is displayed in the House Preview when you have multiple.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Yeah I'm seeing the doubles now also.  Must have been the last minute changes I was doing to fix something else.

The conversion is supposed to look at how you had the checkmarks for the groups which determined visibility.  If you had none selected then they were all visible so I add them to the Default preview.  If you had any selected then its supposed to only add those groups to Default and leave the unchecked groups as Unassigned.   Having a group in the preview and the models that may be in a group isn't supposed to make them show up twice.  The code is supposed to filter out to prevent duplicate models so I must have messed something up there.

The built-in "Default" preview will always be what shows up on your House Preview.  You launch any custom previews under the View menu.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Well that only took 10 minutes to find and fix.  ModelGroups are a subclass of models so when I did the first pass through all the models it was processing the groups also so I just had to make the first pass skip the groups.

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
New issue, on the Layout tab, nothing appears within the groups section.

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
That sounds right. If you have no model groups then it should be empty. It's part of gils changes.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
So you've been kinda building and using the code as I've been fixing bugs so I kinda have no idea the state of your xlights_rgbeffects file.  Are you starting over with a clean rgbeffects file that hasn't been polluted with upgrades yet?  If you have any groups and you don't see them then change the Preview to All Models and you will see everything.  Check the "Preview" assignment for any model or group to know where it's expected to show up.  Typically for an upgraded file it can only be "Default" or "Unassigned".

Offline stampedeboss

  • Full Member
  • ***
  • Posts: 108
    • View Profile
You are correct that I've been building along with you, as to my rgbeffects file, I have been returning to an old version in my backup as I rebuild. 

What I now realize is the following, after starting up the first time all the groups define are reflected in the group window.  After making changes and restarting they disappear from the group panel, and now appear in the element list.

I have included a screen capture so you can see the results, and my rgbeffects file if you need to review.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
You're layout looks fine on Windows so it's going to be hard for me to troubleshoot.  I have a triple boot Mac Mini that I used to build the Linux version but I haven't done that in over a year.