diff options
author | kx <kx@radix.pro> | 2023-04-11 01:18:34 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-04-11 01:18:34 +0300 |
commit | 11c606a6888dc269ef018359469a7276c3ad8f67 (patch) | |
tree | 368294bb7cadcd5c44ccd082187d6a4433401027 /src/dialog-ui.h | |
parent | 8c55752ed5b29a22fdab9faaa6ff27b7cafa6791 (diff) | |
download | pkgtools-11c606a6888dc269ef018359469a7276c3ad8f67.tar.xz |
Version 0.2.1pkgtools-0.2.1
Diffstat (limited to 'src/dialog-ui.h')
-rw-r--r-- | src/dialog-ui.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/dialog-ui.h b/src/dialog-ui.h new file mode 100644 index 0000000..fb135da --- /dev/null +++ b/src/dialog-ui.h @@ -0,0 +1,59 @@ + +/********************************************************************** + + Copyright 2019 Andrey V.Kosteltsev + + Licensed under the Radix.pro License, Version 1.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://radix.pro/licenses/LICENSE-1.0-en_US.txt + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. + + **********************************************************************/ + +#ifndef _DIALOG_UI_H_ +#define _DIALOG_UI_H_ + +#include <dialog.h> + +#ifdef __cplusplus +extern "C" { +#endif + + /************************************************* + Ruler: 68 characters + 2 spaces left and right: + + | ----handy-ruler----------------------------------------------------- | */ + +extern int info_box( const char *title, const char *message, int height, int sleep, int clear_screen ); + +extern int info_pkg_box( const char *title, const char *pkgname, const char *pkgver, const char *priority, + const char *message, int height, int sleep, int clear_screen ); + +extern int ask_install_box( const char *title, const char *pkgname, const char *pkgver, const char *priority, + const char *message, int height, int sleep, int clear_screen ); + +extern int ask_remove_box( const char *title, const char *pkgname, const char *pkgver, + const char *message, int height, int sleep, int clear_screen ); + +extern int ask_reinstall_box( const char *title, const char *pkgname, const char *pkgver, + const char *message, int height, int sleep, int clear_screen ); + +extern int ask_update_box( const char *title, const char *pkgname, const char *pkgver, const char *priority, + const char *message, int height, int sleep, int clear_screen ); + +extern int select_packages_box( DIALOG_LISTITEM *items, int items_num, int sleep, int clear_screen ); + +extern void show_install_dlg_progress( int percent ); + + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif + +#endif /* _DIALOG_UI_H_ */ |