Move TextTable from pkgman to libshared
This commit is contained in:
@@ -11,6 +11,9 @@
|
|||||||
#include <StringList.h>
|
#include <StringList.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
class TextTable {
|
class TextTable {
|
||||||
public:
|
public:
|
||||||
TextTable();
|
TextTable();
|
||||||
@@ -39,4 +42,10 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace BPrivate
|
||||||
|
|
||||||
|
|
||||||
|
using ::BPrivate::TextTable;
|
||||||
|
|
||||||
|
|
||||||
#endif // TEXT_TABLE_H
|
#endif // TEXT_TABLE_H
|
||||||
@@ -17,8 +17,7 @@ BinCommand pkgman :
|
|||||||
JobStateListener.cpp
|
JobStateListener.cpp
|
||||||
PackageManager.cpp
|
PackageManager.cpp
|
||||||
pkgman.cpp
|
pkgman.cpp
|
||||||
TextTable.cpp
|
|
||||||
:
|
:
|
||||||
package be
|
libshared.a package be
|
||||||
$(TARGET_LIBSUPC++) $(TARGET_LIBSTDC++)
|
$(TARGET_LIBSUPC++) $(TARGET_LIBSTDC++)
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include <package/solver/SolverPackage.h>
|
#include <package/solver/SolverPackage.h>
|
||||||
|
#include <TextTable.h>
|
||||||
|
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
#include "PackageManager.h"
|
#include "PackageManager.h"
|
||||||
#include "pkgman.h"
|
#include "pkgman.h"
|
||||||
#include "TextTable.h"
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: internationalization!
|
// TODO: internationalization!
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
ShakeTrackingFilter.cpp
|
ShakeTrackingFilter.cpp
|
||||||
StringForRate.cpp
|
StringForRate.cpp
|
||||||
StringForSize.cpp
|
StringForSize.cpp
|
||||||
|
TextTable.cpp
|
||||||
Thread.cpp
|
Thread.cpp
|
||||||
Variant.cpp
|
Variant.cpp
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -4,13 +4,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "TextTable.h"
|
#include <TextTable.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - Column
|
// #pragma mark - Column
|
||||||
|
|
||||||
|
|
||||||
@@ -272,3 +275,6 @@ TextTable::Print(int32 maxWidth)
|
|||||||
fputs(line.String(), stdout);
|
fputs(line.String(), stdout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace BPrivate
|
||||||
Reference in New Issue
Block a user