mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
* panel.h: Simplify interdependencies between headers. Use
forward declarations for structures. * widget.h: Declare struct WListbox. * wtools.h: Use forward declaration for struct WListbox to avoid dependency on widget.h.
This commit is contained in:
parent
86436e886a
commit
e917b70e56
@ -1,3 +1,11 @@
|
||||
2002-11-11 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* panel.h: Simplify interdependencies between headers. Use
|
||||
forward declarations for structures.
|
||||
* widget.h: Declare struct WListbox.
|
||||
* wtools.h: Use forward declaration for struct WListbox to avoid
|
||||
dependency on widget.h.
|
||||
|
||||
2002-11-10 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* panel.h: Remove all unused definitions. Make format_e an
|
||||
|
10
src/panel.h
10
src/panel.h
@ -1,11 +1,8 @@
|
||||
#ifndef __PANEL_H
|
||||
#define __PANEL_H
|
||||
|
||||
#include "fs.h"
|
||||
#include "dir.h" /* file_entry */
|
||||
#include "dlg.h"
|
||||
#include "util.h"
|
||||
#include "widget.h" /* for history loading and saving */
|
||||
#include "dir.h" /* dir_list */
|
||||
#include "dlg.h" /* Widget */
|
||||
|
||||
#define selection(p) (&(p->dir.list[p->selected]))
|
||||
#define other_panel get_other_panel()
|
||||
@ -34,6 +31,7 @@ enum panel_display_enum {
|
||||
};
|
||||
|
||||
struct format_e;
|
||||
struct hist_entry;
|
||||
|
||||
typedef struct {
|
||||
Widget widget;
|
||||
@ -43,7 +41,7 @@ typedef struct {
|
||||
int active; /* If panel is currently selected */
|
||||
char cwd [MC_MAXPATHLEN];/* Current Working Directory */
|
||||
char lwd [MC_MAXPATHLEN];/* Last Working Directory */
|
||||
Hist *dir_history; /* directory history */
|
||||
struct hist_entry *dir_history; /* directory history */
|
||||
char *hist_name; /* directory history name for history file */
|
||||
int count; /* Number of files in dir structure */
|
||||
int marked; /* Count of marked files */
|
||||
|
@ -117,7 +117,7 @@ enum {
|
||||
|
||||
typedef int (*lcback) (void *);
|
||||
|
||||
typedef struct {
|
||||
typedef struct WListbox {
|
||||
Widget widget;
|
||||
WLEntry *list; /* Pointer to the circular double linked list. */
|
||||
WLEntry *top; /* The first element displayed */
|
||||
|
@ -1,10 +1,12 @@
|
||||
#ifndef __WTOOLS_H
|
||||
#define __WTOOLS_H
|
||||
|
||||
struct WListbox;
|
||||
|
||||
/* Listbox utility functions */
|
||||
typedef struct {
|
||||
Dlg_head *dlg;
|
||||
WListbox *list;
|
||||
struct WListbox *list;
|
||||
} Listbox;
|
||||
|
||||
Listbox *create_listbox_window (int cols, int lines, char *title, char *help);
|
||||
|
Loading…
Reference in New Issue
Block a user