Commit 39ee4a96 authored by Bryan Gardiner's avatar Bryan Gardiner

Change "YMD" to "Ymd" in QDate methods; add some todos.

- QDate: Changes "newWithYMD" to "newWithYmd" (and ditto for "isValidYMD")
  for consistency with similarly named "Rgb" methods in QColor.

- Adds a bunch of todo comments to fill out methods and signals for new
  classes.
parent 483a6bcd
...@@ -66,7 +66,7 @@ c_QDate = ...@@ -66,7 +66,7 @@ c_QDate =
[ [
-- Public Functions -- Public Functions
just $ mkCtor "new" [] just $ mkCtor "new" []
, just $ mkCtor "newWithYMD" [intT, intT, intT] , just $ mkCtor "newWithYmd" [intT, intT, intT]
, just $ mkConstMethod "addDays" [int64T] (objT c_QDate) , just $ mkConstMethod "addDays" [int64T] (objT c_QDate)
, just $ mkConstMethod "addMonths" [intT] (objT c_QDate) , just $ mkConstMethod "addMonths" [intT] (objT c_QDate)
, just $ mkConstMethod "addYears" [intT] (objT c_QDate) , just $ mkConstMethod "addYears" [intT] (objT c_QDate)
...@@ -104,5 +104,5 @@ c_QDate = ...@@ -104,5 +104,5 @@ c_QDate =
, just $ mkStaticMethod' "fromString" "fromStringWithStringFormat" , just $ mkStaticMethod' "fromString" "fromStringWithStringFormat"
[objT c_QString, objT c_QString] (objT c_QDate) [objT c_QString, objT c_QString] (objT c_QDate)
, just $ mkStaticMethod "isLeapYear" [intT] boolT , just $ mkStaticMethod "isLeapYear" [intT] boolT
, just $ mkStaticMethod' "isValid" "isValidYMD" [intT, intT, intT] boolT , just $ mkStaticMethod' "isValid" "isValidYmd" [intT, intT, intT] boolT
] ]
...@@ -66,4 +66,5 @@ c_QSettings = ...@@ -66,4 +66,5 @@ c_QSettings =
, mkMethod "setValue" [objT c_QString, objT c_QVariant] voidT , mkMethod "setValue" [objT c_QString, objT c_QVariant] voidT
, mkConstMethod "value" [objT c_QString] (objT c_QVariant) , mkConstMethod "value" [objT c_QString] (objT c_QVariant)
, mkConstMethod' "value" "valueWithDefault" [objT c_QString, objT c_QVariant] (objT c_QVariant) , mkConstMethod' "value" "valueWithDefault" [objT c_QString, objT c_QVariant] (objT c_QVariant)
-- TODO Other methods.
] ]
...@@ -44,9 +44,9 @@ c_QAbstractItemDelegate = ...@@ -44,9 +44,9 @@ c_QAbstractItemDelegate =
addReqIncludes [includeStd "QAbstractItemDelegate"] $ addReqIncludes [includeStd "QAbstractItemDelegate"] $
classSetEntityPrefix "" $ classSetEntityPrefix "" $
makeClass (ident "QAbstractItemDelegate") Nothing [c_QObject] $ makeClass (ident "QAbstractItemDelegate") Nothing [c_QObject] $
[ [ -- TODO Methods.
] ]
signals = signals =
[ [ -- TODO Signals.
] ]
...@@ -43,12 +43,8 @@ import Graphics.UI.Qtah.Generator.Types ...@@ -43,12 +43,8 @@ import Graphics.UI.Qtah.Generator.Types
aModule = aModule =
AQtModule $ AQtModule $
makeQtModule ["Widgets", "QDateEdit"] $ makeQtModule ["Widgets", "QDateEdit"]
QtExport (ExportClass c_QDateEdit) : [ QtExport $ ExportClass c_QDateEdit ]
map QtExportSignal signals ++
(map QtExport . collect)
[
]
c_QDateEdit = c_QDateEdit =
addReqIncludes [includeStd "QDateEdit"] $ addReqIncludes [includeStd "QDateEdit"] $
...@@ -60,7 +56,3 @@ c_QDateEdit = ...@@ -60,7 +56,3 @@ c_QDateEdit =
, just $ mkCtor "newWithDate" [objT c_QDate] , just $ mkCtor "newWithDate" [objT c_QDate]
, just $ mkCtor "newWithDateAndParent" [objT c_QDate, ptrT $ objT c_QWidget] , just $ mkCtor "newWithDateAndParent" [objT c_QDate, ptrT $ objT c_QWidget]
] ]
signals =
[
]
...@@ -83,6 +83,7 @@ c_QDateTimeEdit = ...@@ -83,6 +83,7 @@ c_QDateTimeEdit =
-- TODO test (qtVersion >= [4, 4]) $ mkProp "timeSpec" Qt.TimeSpec -- TODO test (qtVersion >= [4, 4]) $ mkProp "timeSpec" Qt.TimeSpec
-- Public Functions -- Public Functions
, just $ mkCtor "new" [] , just $ mkCtor "new" []
-- TODO Other methods.
] ]
signals = signals =
......
...@@ -42,9 +42,8 @@ minVersion = [4, 4] ...@@ -42,9 +42,8 @@ minVersion = [4, 4]
aModule = aModule =
AQtModule $ AQtModule $
makeQtModuleWithMinVersion ["Widgets", "QStyledItemDelegate"] minVersion $ makeQtModuleWithMinVersion ["Widgets", "QStyledItemDelegate"] minVersion
QtExport (ExportClass c_QStyledItemDelegate) : [ QtExport $ ExportClass c_QStyledItemDelegate ]
map QtExportSignal signals
c_QStyledItemDelegate = c_QStyledItemDelegate =
addReqIncludes [includeStd "QStyledItemDelegate"] $ addReqIncludes [includeStd "QStyledItemDelegate"] $
...@@ -59,7 +58,3 @@ c_QStyledItemDelegate = ...@@ -59,7 +58,3 @@ c_QStyledItemDelegate =
-- TODO QItemEditorFactory * itemEditorFactory() const -- TODO QItemEditorFactory * itemEditorFactory() const
-- TODO void setItemEditorFactory(QItemEditorFactory *factory) -- TODO void setItemEditorFactory(QItemEditorFactory *factory)
] ]
signals =
[
]
...@@ -80,6 +80,7 @@ c_QTreeView = ...@@ -80,6 +80,7 @@ c_QTreeView =
, just $ mkMethod "hideColumn" [intT] voidT , just $ mkMethod "hideColumn" [intT] voidT
, just $ mkMethod "resizeColumnToContents" [intT] voidT , just $ mkMethod "resizeColumnToContents" [intT] voidT
, just $ mkMethod "showColumn" [intT] voidT , just $ mkMethod "showColumn" [intT] voidT
-- TODO Other methods.
] ]
signals :: [Signal] signals :: [Signal]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment