|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
Set of progress bars/information entries. More...


Public Member Functions | |
| ProgressWidget (int height, int width, int y, int x, short done_color, short progress_color) | |
| ~ProgressWidget () | |
| void | move (int y, int x) |
| void | resize (int height, int width) |
| unsigned | getHeight () const |
| void | update (const std::list< ProgressInfo > &info) |
Private Member Functions | |
| void | drawElapsed (size_t value_position, const std::chrono::steady_clock::duration &elapsed, int line) const |
| void | drawProgressLine (int value_position, int bar_width, int line, const std::string &label, int total, int done) const |
Private Attributes | |
| WINDOW * | m_window |
| std::chrono::steady_clock::time_point | m_started = std::chrono::steady_clock::now() |
| short | m_done_color |
| short | m_progress_color |
Set of progress bars/information entries.
Definition at line 502 of file ProgressNCurses.cpp.
|
inline |
Constructor
| height | Height in lines |
| width | Width in columns |
| y | Start line |
| x | Start column |
| done_color | Color for the done part |
| progress_color | Color for the progress bar |
Definition at line 519 of file ProgressNCurses.cpp.
References m_done_color, m_progress_color, and m_window.
|
inline |
|
inlineprivate |
Draw the elapsed counter
Definition at line 602 of file ProgressNCurses.cpp.
References std::chrono::duration_cast(), std::ostringstream::fill(), m_window, std::setw(), and std::ostringstream::str().
Referenced by update().

|
inlineprivate |
Draw the set of progress bar/report on the bottom of the screen
Definition at line 623 of file ProgressNCurses.cpp.
References std::string::c_str(), std::fixed(), m_done_color, m_progress_color, m_window, and std::setprecision().
Referenced by update().

|
inline |
Definition at line 556 of file ProgressNCurses.cpp.
References m_window.
Referenced by SourceXtractor::ProgressNCurses::Dashboard::ncursesMode().
|
inline |
Move the progress widget
| y | Line |
| x | Column |
Definition at line 536 of file ProgressNCurses.cpp.
References m_window.
Referenced by SourceXtractor::ProgressNCurses::Dashboard::ncursesMode().
|
inline |
Resize the progress widget
| height | The height in lines |
| width | The width in columns |
Definition at line 548 of file ProgressNCurses.cpp.
References m_window.
Referenced by SourceXtractor::ProgressNCurses::Dashboard::ncursesMode().
|
inline |
Update and redraw the progress information
Definition at line 563 of file ProgressNCurses.cpp.
References drawElapsed(), drawProgressLine(), m_started, m_window, and std::chrono::steady_clock::now().
Referenced by SourceXtractor::ProgressNCurses::Dashboard::ncursesMode().

|
private |
Definition at line 674 of file ProgressNCurses.cpp.
Referenced by drawProgressLine(), and ProgressWidget().
|
private |
Definition at line 675 of file ProgressNCurses.cpp.
Referenced by drawProgressLine(), and ProgressWidget().
|
private |
Definition at line 673 of file ProgressNCurses.cpp.
Referenced by update().
|
private |
Definition at line 672 of file ProgressNCurses.cpp.
Referenced by drawElapsed(), drawProgressLine(), getHeight(), move(), ProgressWidget(), resize(), update(), and ~ProgressWidget().