Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
146 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CRN: 92111 - 6 | ||
CRN: 99999 - None | ||
CRN: 98888 - None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Netscape HTTP Cookie File | ||
# http://www.netscape.com/newsref/std/cookie_spec.html | ||
# This is a generated file! Do not edit. | ||
|
||
.vt.edu TRUE / TRUE NATIVE_LOGIN TRUE | ||
.vt.edu TRUE / TRUE SESSID QUlVVlQzMTIwNjAxODU= | ||
banweb.banner.vt.edu FALSE /ssb/prod TRUE TESTID set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/*** | ||
* Brian Hession, Erik Wenkel, James Miller | ||
* | ||
* Error window | ||
* | ||
* Error window that pops up when something | ||
* bad happens. | ||
* | ||
*/ | ||
|
||
#ifndef ERROR_H | ||
#define ERROR_H | ||
|
||
#include <gtkmm/window.h> | ||
#include <gtkmm/box.h> | ||
#include <gtkmm/label.h> | ||
#include <gtkmm/button.h> | ||
#include <glibmm/ustring.h> | ||
|
||
|
||
class Error : public Gtk::Window { | ||
|
||
public: | ||
Error(); | ||
virtual ~Error(); | ||
|
||
void setfields( Gtk::Window* w ); | ||
void setlabel( Glib::ustring s ); | ||
|
||
protected: | ||
// Signal handlers | ||
void on_close(); | ||
|
||
// Formatting | ||
Gtk::VBox m_VBox; | ||
|
||
// Widgets | ||
Gtk::Label errorlabel; | ||
Gtk::Button close_button; | ||
|
||
// Parent | ||
Gtk::Window* parent; | ||
}; | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/*** | ||
* Brian Hession, Erik Wenkel, James Miller | ||
* | ||
* Error popup implementation | ||
* | ||
*/ | ||
|
||
#include "error.h" | ||
|
||
Error::Error() | ||
: | ||
// Initializing | ||
errorlabel( "Error: " ), | ||
close_button( "_Close", true ) | ||
{ | ||
// Window properties | ||
set_title( "Error Message" ); | ||
set_size_request( 200, 5 ); | ||
set_resizable( false ); | ||
set_border_width( 5 ); | ||
set_keep_above( true ); | ||
set_decorated( false ); | ||
|
||
m_VBox.pack_start( errorlabel, Gtk::PACK_SHRINK ); | ||
m_VBox.pack_start( close_button, Gtk::PACK_SHRINK ); | ||
|
||
add( m_VBox ); | ||
|
||
// Add signal | ||
close_button.signal_clicked().connect( sigc::mem_fun( *this, | ||
&Error::on_close ) ); | ||
|
||
show_all_children(); | ||
} | ||
|
||
Error::~Error() {} | ||
|
||
void Error::setfields( Gtk::Window* w ) { | ||
|
||
parent = w; | ||
} | ||
|
||
void Error::setlabel( Glib::ustring s ) { | ||
|
||
errorlabel.set_text( s ); | ||
} | ||
|
||
void Error::on_close() { | ||
|
||
parent->set_sensitive( true ); | ||
hide(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters