Commit 7f12e233 authored by Yuriy Syrovetskiy's avatar Yuriy Syrovetskiy

Add QDateTimeEdit

parent 56e262c1
......@@ -147,6 +147,7 @@ executable qtah-generator
, Graphics.UI.Qtah.Generator.Interface.Widgets.QBoxLayout
, Graphics.UI.Qtah.Generator.Interface.Widgets.QButtonGroup
, Graphics.UI.Qtah.Generator.Interface.Widgets.QCheckBox
, Graphics.UI.Qtah.Generator.Interface.Widgets.QDateTimeEdit
, Graphics.UI.Qtah.Generator.Interface.Widgets.QDial
, Graphics.UI.Qtah.Generator.Interface.Widgets.QDialog
, Graphics.UI.Qtah.Generator.Interface.Widgets.QDialogButtonBox
......
......@@ -30,6 +30,7 @@ import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QApplication as QA
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QBoxLayout as QBoxLayout
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QButtonGroup as QButtonGroup
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QCheckBox as QCheckBox
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QDateTimeEdit as QDateTimeEdit
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QDial as QDial
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QDialog as QDialog
import qualified Graphics.UI.Qtah.Generator.Interface.Widgets.QDialogButtonBox as QDialogButtonBox
......@@ -103,6 +104,7 @@ modules =
, QBoxLayout.aModule
, QButtonGroup.aModule
, QCheckBox.aModule
, QDateTimeEdit.aModule
, QDial.aModule
, QDialog.aModule
, QDialogButtonBox.aModule
......
-- This file is part of Qtah.
--
-- Copyright 2018 The Qtah Authors.
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Lesser General Public License for more details.
--
-- You should have received a copy of the GNU Lesser General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
module Graphics.UI.Qtah.Generator.Interface.Widgets.QDateTimeEdit (
aModule,
c_QDateTimeEdit,
) where
import Foreign.Hoppy.Generator.Spec (
Export (ExportBitspace, ExportClass, ExportEnum),
addReqIncludes,
classSetEntityPrefix,
ident,
ident1,
includeStd,
makeClass,
mkBoolIsProp,
mkBoolHasProp,
mkConstMethod,
mkCtor,
mkMethod,
mkProp,
)
import Foreign.Hoppy.Generator.Types (
bitspaceT, boolT, enumT, intT, objT, ptrT, refT, voidT,
)
import Foreign.Hoppy.Generator.Version (collect, just, test)
import Graphics.UI.Qtah.Generator.Flags (qtVersion)
import Graphics.UI.Qtah.Generator.Interface.Core.QString (c_QString)
import Graphics.UI.Qtah.Generator.Interface.Core.Types (bs_Alignment)
import Graphics.UI.Qtah.Generator.Interface.Internal.Listener (c_Listener)
import Graphics.UI.Qtah.Generator.Interface.Widgets.QAbstractSpinBox (
c_QAbstractSpinBox,
)
import Graphics.UI.Qtah.Generator.Interface.Widgets.QWidget (c_QWidget)
import Graphics.UI.Qtah.Generator.Module (AModule (AQtModule), makeQtModule)
import Graphics.UI.Qtah.Generator.Types
{-# ANN module "HLint: ignore Use camelCase" #-}
aModule =
AQtModule $
makeQtModule ["Widgets", "QDateTimeEdit"] $
QtExport (ExportClass c_QDateTimeEdit) :
map QtExportSignal signals ++
(map QtExport . collect)
[
]
c_QDateTimeEdit =
addReqIncludes [includeStd "QDateTimeEdit"] $
classSetEntityPrefix "" $
makeClass (ident "QDateTimeEdit") Nothing [c_QAbstractSpinBox] $
collect
[ just $ mkCtor "new" []
]
signals =
[
]
......@@ -136,6 +136,7 @@ library
, Graphics.UI.Qtah.Widgets.QBoxLayout
, Graphics.UI.Qtah.Widgets.QButtonGroup
, Graphics.UI.Qtah.Widgets.QCheckBox
, Graphics.UI.Qtah.Widgets.QDateTimeEdit
, Graphics.UI.Qtah.Widgets.QDial
, Graphics.UI.Qtah.Widgets.QDialog
, Graphics.UI.Qtah.Widgets.QDialogButtonBox
......@@ -294,6 +295,7 @@ library
, Graphics.UI.Qtah.Generated.Widgets.QBoxLayout
, Graphics.UI.Qtah.Generated.Widgets.QButtonGroup
, Graphics.UI.Qtah.Generated.Widgets.QCheckBox
, Graphics.UI.Qtah.Generated.Widgets.QDateTimeEdit
, Graphics.UI.Qtah.Generated.Widgets.QDial
, Graphics.UI.Qtah.Generated.Widgets.QDialog
, Graphics.UI.Qtah.Generated.Widgets.QDialogButtonBox
......
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