CursesDialog: include what you use

This commit is contained in:
Daniel Pfeifer 2016-09-01 21:55:09 +02:00
parent bfdf1322e7
commit 32f756c822
26 changed files with 117 additions and 37 deletions

View File

@ -9,19 +9,22 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "cmCursesStandardIncludes.h"
#include "../cmDocumentation.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
#include <signal.h>
#include <sys/ioctl.h>
#include <cmConfigure.h>
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include <cmsys/Encoding.hxx>
#include "cmCursesStandardIncludes.h"
#include "cmDocumentation.h"
#include "cmDocumentationEntry.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <form.h>
#include <cmsys/Encoding.hxx>
#include <iostream>
#include <signal.h>
#include <string.h>
#include <string>
#include <vector>
static const char* cmDocumentationName[][2] = {
{ CM_NULLPTR, " ccmake - Curses Interface for CMake." },

View File

@ -11,7 +11,10 @@
============================================================================*/
#include "cmCursesBoolWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include <string>
cmCursesBoolWidget::cmCursesBoolWidget(int width, int height, int left,
int top)

View File

@ -12,6 +12,9 @@
#ifndef cmCursesBoolWidget_h
#define cmCursesBoolWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
class cmCursesMainForm;

View File

@ -11,18 +11,20 @@
============================================================================*/
#include "cmCursesCacheEntryComposite.h"
#include "../cmState.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
#include "cmCursesBoolWidget.h"
#include "cmCursesDummyWidget.h"
#include "cmCursesFilePathWidget.h"
#include "cmCursesLabelWidget.h"
#include "cmCursesOptionsWidget.h"
#include "cmCursesPathWidget.h"
#include "cmCursesStringWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include <assert.h>
#include <cmConfigure.h>
#include <vector>
cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
const std::string& key, int labelwidth, int entrywidth)

View File

@ -12,8 +12,12 @@
#ifndef cmCursesCacheEntryComposite_h
#define cmCursesCacheEntryComposite_h
#include "cmCursesLabelWidget.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include <string>
class cmCursesLabelWidget;
class cmCursesWidget;
class cmake;
class cmCursesCacheEntryComposite

View File

@ -11,6 +11,9 @@
============================================================================*/
#include "cmCursesDummyWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
cmCursesDummyWidget::cmCursesDummyWidget(int width, int height, int left,
int top)
: cmCursesWidget(width, height, left, top)

View File

@ -12,6 +12,9 @@
#ifndef cmCursesDummyWidget_h
#define cmCursesDummyWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
class cmCursesMainForm;

View File

@ -11,6 +11,9 @@
============================================================================*/
#include "cmCursesFilePathWidget.h"
#include "cmCursesPathWidget.h"
#include "cmState.h"
cmCursesFilePathWidget::cmCursesFilePathWidget(int width, int height, int left,
int top)
: cmCursesPathWidget(width, height, left, top)

View File

@ -12,6 +12,8 @@
#ifndef cmCursesFilePathWidget_h
#define cmCursesFilePathWidget_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmCursesPathWidget.h"
class cmCursesFilePathWidget : public cmCursesPathWidget

View File

@ -11,6 +11,8 @@
============================================================================*/
#include "cmCursesForm.h"
#include <cmConfigure.h>
cmsys::ofstream cmCursesForm::DebugFile;
bool cmCursesForm::Debug = false;

View File

@ -12,6 +12,8 @@
#ifndef cmCursesForm_h
#define cmCursesForm_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmCursesStandardIncludes.h"
#include <cmsys/FStream.hxx>

View File

@ -11,6 +11,8 @@
============================================================================*/
#include "cmCursesLabelWidget.h"
#include "cmCursesWidget.h"
cmCursesLabelWidget::cmCursesLabelWidget(int width, int height, int left,
int top, const std::string& name)
: cmCursesWidget(width, height, left, top)

View File

@ -12,8 +12,13 @@
#ifndef cmCursesLabelWidget_h
#define cmCursesLabelWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include <string>
class cmCursesMainForm;
class cmCursesLabelWidget : public cmCursesWidget

View File

@ -11,10 +11,13 @@
============================================================================*/
#include "cmCursesLongMessageForm.h"
#include "../cmSystemTools.h"
#include "../cmVersion.h"
#include "../cmake.h"
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include "cmCursesStandardIncludes.h"
#include "cmVersion.h"
#include <stdio.h>
#include <string.h>
inline int ctrl(int z)
{

View File

@ -12,11 +12,13 @@
#ifndef cmCursesLongMessageForm_h
#define cmCursesLongMessageForm_h
#include "cmCursesStandardIncludes.h"
#include <cmConfigure.h>
#include "cmCursesForm.h"
#include "cmCursesStandardIncludes.h"
class cmCursesCacheEntryComposite;
#include <string>
#include <vector>
class cmCursesLongMessageForm : public cmCursesForm
{

View File

@ -11,19 +11,22 @@
============================================================================*/
#include "cmCursesMainForm.h"
#include "../cmSystemTools.h"
#include "../cmVersion.h"
#include "../cmake.h"
#include "cmAlgorithms.h"
#include "cmCursesBoolWidget.h"
#include "cmCursesCacheEntryComposite.h"
#include "cmCursesDummyWidget.h"
#include "cmCursesFilePathWidget.h"
#include "cmCursesForm.h"
#include "cmCursesLabelWidget.h"
#include "cmCursesLongMessageForm.h"
#include "cmCursesPathWidget.h"
#include "cmCursesStandardIncludes.h"
#include "cmCursesStringWidget.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include "cmVersion.h"
#include "cmake.h"
#include <stdio.h>
#include <string.h>
inline int ctrl(int z)
{
@ -742,8 +745,6 @@ void cmCursesMainForm::FixValue(cmState::CacheEntryType type,
}
}
#include <unistd.h>
void cmCursesMainForm::HandleInput()
{
int x = 0, y = 0;

View File

@ -12,13 +12,17 @@
#ifndef cmCursesMainForm_h
#define cmCursesMainForm_h
#include "cmCursesStandardIncludes.h"
#include <cmConfigure.h>
#include "../cmState.h"
#include "cmCursesForm.h"
#include "cmCursesStandardIncludes.h"
#include "cmState.h"
#include <stddef.h>
#include <string>
#include <vector>
class cmCursesCacheEntryComposite;
class cmCursesWidget;
class cmake;
/** \class cmCursesMainForm

View File

@ -11,7 +11,8 @@
============================================================================*/
#include "cmCursesOptionsWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#define ctrl(z) ((z)&037)

View File

@ -12,8 +12,14 @@
#ifndef cmCursesOptionsWidget_h
#define cmCursesOptionsWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include <string>
#include <vector>
class cmCursesMainForm;
class cmCursesOptionsWidget : public cmCursesWidget

View File

@ -12,8 +12,12 @@
#include "cmCursesPathWidget.h"
#include "cmCursesMainForm.h"
#include "cmCursesStringWidget.h"
#include "cmState.h"
#include "cmSystemTools.h"
#include <vector>
cmCursesPathWidget::cmCursesPathWidget(int width, int height, int left,
int top)
: cmCursesStringWidget(width, height, left, top)

View File

@ -12,8 +12,15 @@
#ifndef cmCursesPathWidget_h
#define cmCursesPathWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesStringWidget.h"
#include <string>
class cmCursesMainForm;
class cmCursesPathWidget : public cmCursesStringWidget
{
public:

View File

@ -14,8 +14,6 @@
#include <cmConfigure.h>
#include "../cmStandardIncludes.h"
#if defined(__sun__) && defined(__GNUC__)
#define _MSE_INT_H
#endif

View File

@ -11,7 +11,14 @@
============================================================================*/
#include "cmCursesStringWidget.h"
#include "cmCursesForm.h"
#include "cmCursesMainForm.h"
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include "cmState.h"
#include <stdio.h>
#include <string.h>
inline int ctrl(int z)
{

View File

@ -12,8 +12,13 @@
#ifndef cmCursesStringWidget_h
#define cmCursesStringWidget_h
#include <cmConfigure.h>
#include "cmCursesStandardIncludes.h"
#include "cmCursesWidget.h"
#include <string>
class cmCursesMainForm;
/** \class cmCursesStringWidget

View File

@ -11,6 +11,8 @@
============================================================================*/
#include "cmCursesWidget.h"
#include <cmConfigure.h>
cmCursesWidget::cmCursesWidget(int width, int height, int left, int top)
{
this->Field = new_field(height, width, top, left, 0, 0);

View File

@ -12,9 +12,12 @@
#ifndef cmCursesWidget_h
#define cmCursesWidget_h
#include "cmCursesStandardIncludes.h"
#include <cmConfigure.h> // IWYU pragma: keep
#include "../cmState.h"
#include "cmCursesStandardIncludes.h"
#include "cmState.h"
#include <string>
class cmCursesMainForm;