/* CTK - The GIMP Toolkit
 * ctknativedialog.h: Native dialog
 * Copyright (C) 2015, Red Hat, Inc.
 *
 * This library 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 2 of the License, or (at your option) any later version.
 *
 * This library 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 library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __CTK_NATIVE_DIALOG_H__
#define __CTK_NATIVE_DIALOG_H__

#if !defined (__CTK_H_INSIDE__) && !defined (CTK_COMPILATION)
#error "Only <ctk/ctk.h> can be included directly."
#endif

#include <ctk/ctkwindow.h>

G_BEGIN_DECLS

#define CTK_TYPE_NATIVE_DIALOG             (ctk_native_dialog_get_type ())

CDK_AVAILABLE_IN_3_20
G_DECLARE_DERIVABLE_TYPE (CtkNativeDialog, ctk_native_dialog, CTK, NATIVE_DIALOG, GObject)

/**
 * CtkNativeDialogClass:
 * @parent_class: The parent class.
 * @response: Signal emitted when an action widget is activated.
 */
struct _CtkNativeDialogClass
{
  GObjectClass parent_class;

  void (* response) (CtkNativeDialog *self, gint response_id);

  /* <private> */
  void (* show) (CtkNativeDialog *self);
  void (* hide) (CtkNativeDialog *self);

  /* Padding for future expansion */
  void (*_ctk_reserved1) (void);
  void (*_ctk_reserved2) (void);
  void (*_ctk_reserved3) (void);
  void (*_ctk_reserved4) (void);
};

CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_show (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_hide (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_destroy (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
gboolean              ctk_native_dialog_get_visible (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_set_modal (CtkNativeDialog *self,
                                                   gboolean modal);
CDK_AVAILABLE_IN_3_20
gboolean              ctk_native_dialog_get_modal (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_set_title (CtkNativeDialog *self,
                                                   const char *title);
CDK_AVAILABLE_IN_3_20
const char *          ctk_native_dialog_get_title (CtkNativeDialog *self);
CDK_AVAILABLE_IN_3_20
void                  ctk_native_dialog_set_transient_for (CtkNativeDialog *self,
                                                           CtkWindow *parent);
CDK_AVAILABLE_IN_3_20
CtkWindow *           ctk_native_dialog_get_transient_for (CtkNativeDialog *self);

CDK_AVAILABLE_IN_3_20
gint                  ctk_native_dialog_run (CtkNativeDialog *self);

G_END_DECLS

#endif /* __CTK_NATIVE_DIALOG_H__ */
