Some things work, some don't. Any idea why this might be?

>>> for x in dir(eu.webtoolkit.jwt):
...         try:
...             y = dir(eval('eu.webtoolkit.jwt.'+x))
...             print 'OK ', x
...         except:
...             print 'NOT OK ', x
...
OK  AbstractEventSignal
NOT OK  AbstractJSignal
OK  AbstractSignal
OK  AlignmentFlag
OK  AnchorTarget
OK  BrushStyle
OK  CheckState
NOT OK  Configuration
NOT OK  Coordinates
OK  Cursor
NOT OK  DomElement
OK  DomElementType
OK  DropAction
OK  ElementThemeRole
OK  EntryPointType
OK  EscapeOStream
OK  EventSignal
OK  EventSignal1
OK  EventType
OK  FileUtils
OK  HeaderFlag
OK  Icon
OK  ItemDataRole
OK  ItemFlag
NOT OK  JSignal
NOT OK  JSignal1
NOT OK  JSignal2
NOT OK  JSignal3
NOT OK  JSignal4
NOT OK  JSignal5
NOT OK  JSignal6
NOT OK  JSlot
OK  JavaScriptObjectType
OK  JavaScriptScope
OK  Key
OK  KeyboardModifier
OK  LayoutDirection
OK  MatchOptions
OK  MetaHeaderType
OK  Method
OK  Orientation
OK  PaintFlag
OK  PenCapStyle
OK  PenJoinStyle
OK  PenStyle
NOT OK  PopupWindow
OK  PositionScheme
OK  Property
OK  RenderFlag
OK  SelectionBehavior
OK  SelectionFlag
OK  SelectionMode
NOT OK  ServletApi
NOT OK  ServletInit
OK  Side
OK  Signal
OK  Signal1
OK  Signal2
OK  Signal3
OK  Signal4
OK  Signal5
OK  Signal6
OK  SortOrder
OK  StandardButton
OK  StringUtils
OK  TextFlag
OK  TextFormat
NOT OK  Touch
OK  Utils
OK  ValidationStyleFlag
OK  ViewItemRenderFlag
NOT OK  WAbstractArea
OK  WAbstractEvent
NOT OK  WAbstractItemDelegate
NOT OK  WAbstractItemModel
NOT OK  WAbstractItemView
NOT OK  WAbstractListModel
NOT OK  WAbstractMedia
NOT OK  WAbstractProxyModel
NOT OK  WAbstractSpinBox
NOT OK  WAbstractTableModel
NOT OK  WAbstractToggleButton
NOT OK  WAggregateProxyModel
NOT OK  WAnchor
NOT OK  WAnimation
NOT OK  WApplication
NOT OK  WAudio
NOT OK  WBatchEditProxyModel
NOT OK  WBootstrapTheme
NOT OK  WBorder
NOT OK  WBorderLayout
NOT OK  WBoxLayout
NOT OK  WBreak
NOT OK  WBrush
NOT OK  WButtonGroup
NOT OK  WCalendar
NOT OK  WCanvasPaintDevice
NOT OK  WCheckBox
NOT OK  WCircleArea
OK  WColor
NOT OK  WCombinedLocalizedStrings
NOT OK  WComboBox
NOT OK  WCompositeWidget
NOT OK  WContainerWidget
NOT OK  WCssDecorationStyle
NOT OK  WCssRule
NOT OK  WCssStyleSheet
NOT OK  WCssTemplateRule
NOT OK  WCssTextRule
NOT OK  WCssTheme
OK  WDate
NOT OK  WDateEdit
NOT OK  WDatePicker
NOT OK  WDateValidator
NOT OK  WDefaultLoadingIndicator
NOT OK  WDeferred
NOT OK  WDialog
NOT OK  WDoubleSpinBox
NOT OK  WDoubleValidator
NOT OK  WDropEvent
NOT OK  WEnumModel
NOT OK  WEnvironment
NOT OK  WEvent
NOT OK  WException
NOT OK  WFileResource
NOT OK  WFileUpload
NOT OK  WFlashObject
NOT OK  WFont
NOT OK  WFontMetrics
NOT OK  WFormModel
NOT OK  WFormWidget
NOT OK  WGestureEvent
NOT OK  WGoogleMap
NOT OK  WGridLayout
NOT OK  WGroupBox
NOT OK  WHBoxLayout
NOT OK  WIconPair
NOT OK  WImage
NOT OK  WInPlaceEdit
NOT OK  WIntValidator
NOT OK  WInteractWidget
NOT OK  WItemDelegate
NOT OK  WItemModel
NOT OK  WItemSelectionModel
NOT OK  WJavaScriptPreamble
NOT OK  WKeyEvent
NOT OK  WLabel
NOT OK  WLayout
OK  WLayoutItem
OK  WLayoutItemImpl
NOT OK  WLength
NOT OK  WLengthValidator
NOT OK  WLineEdit
NOT OK  WLineF
NOT OK  WLink
OK  WLoadingIndicator
NOT OK  WLocalizedStrings
NOT OK  WMediaPlayer
OK  WMemoryResource
NOT OK  WMenu
NOT OK  WMenuItem
NOT OK  WMessageBox
OK  WModelIndex
NOT OK  WMouseEvent
NOT OK  WNavigationBar
OK  WObject
NOT OK  WOverlayLoadingIndicator
OK  WPaintDevice
NOT OK  WPaintedWidget
NOT OK  WPainter
NOT OK  WPainterPath
NOT OK  WPanel
NOT OK  WPdfImage
NOT OK  WPen
NOT OK  WPoint
NOT OK  WPointF
NOT OK  WPolygonArea
NOT OK  WPopupMenu
NOT OK  WPopupWidget
NOT OK  WProgressBar
NOT OK  WPushButton
NOT OK  WRadioButton
NOT OK  WRasterPaintDevice
NOT OK  WReadOnlyProxyModel
NOT OK  WRectArea
NOT OK  WRectF
NOT OK  WRegExpValidator
OK  WResource
NOT OK  WScrollArea
NOT OK  WScrollBar
NOT OK  WScrollEvent
NOT OK  WSelectionBox
NOT OK  WShadow
NOT OK  WSlider
NOT OK  WSortFilterProxyModel
NOT OK  WSound
NOT OK  WSpinBox
NOT OK  WSplitButton
NOT OK  WStackedWidget
NOT OK  WStandardItem
NOT OK  WStandardItemModel
NOT OK  WStdLocalizedStrings
OK  WString
NOT OK  WStringListModel
NOT OK  WSuggestionPopup
NOT OK  WSvgImage
NOT OK  WTabWidget
NOT OK  WTable
NOT OK  WTableCell
NOT OK  WTableColumn
NOT OK  WTableRow
NOT OK  WTableView
NOT OK  WTemplate
NOT OK  WTemplateFormView
NOT OK  WTestEnvironment
NOT OK  WText
NOT OK  WTextArea
NOT OK  WTextEdit
NOT OK  WTextItem
NOT OK  WTheme
NOT OK  WTimer
NOT OK  WToolBar
NOT OK  WTouchEvent
NOT OK  WTransform
NOT OK  WTree
NOT OK  WTreeNode
NOT OK  WTreeTable
NOT OK  WTreeTableNode
NOT OK  WTreeView
NOT OK  WVBoxLayout
NOT OK  WValidationStatus
NOT OK  WValidator
OK  WVectorImage
NOT OK  WVideo
NOT OK  WViewWidget
NOT OK  WVirtualImage
NOT OK  WVmlImage
NOT OK  WWebWidget
NOT OK  WWidget
NOT OK  WWidgetItem
NOT OK  WXmlLocalizedStrings
OK  WidgetThemeRole
OK  WtException
NOT OK  WtServlet
OK  XHtmlFilter
OK  XmlMessageParser
OK  __name__
OK  chart
OK  render
OK  servlet
OK  utils
>>>


________________________________
 From: Jason H <[email protected]>
To: "[email protected]" 
<[email protected]> 
Sent: Wednesday, September 25, 2013 11:52 PM
Subject: Re: [Wt-interest] WTreeView - unable to browse very large datasets
 


If this is your first time writing models, it is extraordinarily complex and 
stunningly simple at the same time. They are over engineered, but they work 
really well. Once you get the hand of it, you'll be using models for 
everything. They are very powerful. With a data model, you an chain it to a 
sort and filter models, and wham it hits you the power at your fingers!






________________________________
 From: Nagaev Boris <[email protected]>
To: witty-interest <[email protected]> 
Sent: Wednesday, September 25, 2013 4:27 PM
Subject: Re: [Wt-interest] WTreeView - unable to browse very large datasets
 

Hi, Nigel,

WStandardItemModel is stored in memory, so it is not suitable for
large data sets. You should  implement WAbstractItemModel for your
data. Main method to implement is data(). To get information on
position of current cell in tree, use WModelIndex.parent() and
argument ``parent'' of data().

To add/remove data, use the following rule:
1. call beginInsertRows/beginRemoveRows
2. change internal data of the model
3. call endInsertRows/endRemoveRows

Model will emit all signals needed to properly update View widgets.

Table/tree models/views are implemented in Wt in the same way as in
Qt. So, you can see Qt examples (for example,
http://qt-project.org/doc/qt-4.8/itemviews-simpletreemodel.html),
replacing Q with W.

С уважением,
Нагаев Борис


On Wed, Sep 25, 2013 at 5:23 PM, Nigel Lea <[email protected]> wrote:
> Hi
>
> I'm fairly new to Wt, currently using 3.3.1 in Ubuntu
>
> I'm trying to create a WTreeView browser for a large existing database.  The
> data has an inherent tree structure of 4 levels with over 300000 items at
> the top level and over 10 million at the lowest level.
>
> I can display a subset of the data by populating the WStandardItemModel of
> the WtreeView, this looks good and behaves well but I can't find how to
> extend this to the full dataset.
>
> Obviously I can't load all of the data at once so I was hoping to
 start with
> a subset (say a 100 top level items + child data) and then respond to
> signals representing scrolling/paging. Here I would add new data (at
> beginning or end) and remove data out of scope.
>
> My problem is that I can't discover which signal I should use, None of the
> signals available in WTreeView, WStandardItemModel or WAbstractItemModel
> seem to be suitable.
>
> Possibly my strategy is incorrect, any help would be welcome.
>
> Regards
>
> Nigel
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to